Skip to content

Commit 874391c

Browse files
committed
Merge 4.19.325 into android-4.19-stable
Changes in 4.19.325 netlink: terminate outstanding dump on socket close ocfs2: uncache inode which has failed entering the group nilfs2: fix null-ptr-deref in block_touch_buffer tracepoint ocfs2: fix UBSAN warning in ocfs2_verify_volume() nilfs2: fix null-ptr-deref in block_dirty_buffer tracepoint Revert "mmc: dw_mmc: Fix IDMAC operation with pages bigger than 4K" media: dvbdev: fix the logic when DVB_DYNAMIC_MINORS is not set kbuild: Use uname for LINUX_COMPILE_HOST detection mm: revert "mm: shmem: fix data-race in shmem_getattr()" ASoC: Intel: bytcr_rt5640: Add DMI quirk for Vexia Edu Atla 10 tablet mac80211: fix user-power when emulating chanctx selftests/watchdog-test: Fix system accidentally reset after watchdog-test x86/amd_nb: Fix compile-testing without CONFIG_AMD_NB net: usb: qmi_wwan: add Quectel RG650V proc/softirqs: replace seq_printf with seq_put_decimal_ull_width nvme: fix metadata handling in nvme-passthrough initramfs: avoid filename buffer overrun m68k: mvme147: Fix SCSI controller IRQ numbers m68k: mvme16x: Add and use "mvme16x.h" m68k: mvme147: Reinstate early console acpi/arm64: Adjust error handling procedure in gtdt_parse_timer_block() s390/syscalls: Avoid creation of arch/arch/ directory hfsplus: don't query the device logical block size multiple times EDAC/fsl_ddr: Fix bad bit shift operations crypto: pcrypt - Call crypto layer directly when padata_do_parallel() return -EBUSY crypto: cavium - Fix the if condition to exit loop after timeout crypto: bcm - add error check in the ahash_hmac_init function crypto: cavium - Fix an error handling path in cpt_ucode_load_fw() time: Fix references to _msecs_to_jiffies() handling of values soc: qcom: geni-se: fix array underflow in geni_se_clk_tbl_get() mmc: mmc_spi: drop buggy snprintf() ARM: dts: cubieboard4: Fix DCDC5 regulator constraints regmap: irq: Set lockdep class for hierarchical IRQ domains firmware: arm_scpi: Check the DVFS OPP count returned by the firmware drm/mm: Mark drm_mm_interval_tree*() functions with __maybe_unused wifi: ath9k: add range check for conn_rsp_epid in htc_connect_service() drm/omap: Fix locking in omap_gem_new_dmabuf() bpf: Fix the xdp_adjust_tail sample prog issue wifi: mwifiex: Fix memcpy() field-spanning write warning in mwifiex_config_scan() drm/etnaviv: consolidate hardware fence handling in etnaviv_gpu drm/etnaviv: dump: fix sparse warnings drm/etnaviv: fix power register offset on GC300 drm/etnaviv: hold GPU lock across perfmon sampling net: rfkill: gpio: Add check for clk_enable() ALSA: us122l: Use snd_card_free_when_closed() at disconnection ALSA: caiaq: Use snd_card_free_when_closed() at disconnection ALSA: 6fire: Release resources at card release netpoll: Use rcu_access_pointer() in netpoll_poll_lock trace/trace_event_perf: remove duplicate samples on the first tracepoint event powerpc/vdso: Flag VDSO64 entry points as functions mfd: da9052-spi: Change read-mask to write-mask cpufreq: loongson2: Unregister platform_driver on failure mtd: rawnand: atmel: Fix possible memory leak RDMA/bnxt_re: Check cqe flags to know imm_data vs inv_irkey mfd: rt5033: Fix missing regmap_del_irq_chip() scsi: bfa: Fix use-after-free in bfad_im_module_exit() scsi: fusion: Remove unused variable 'rc' scsi: qedi: Fix a possible memory leak in qedi_alloc_and_init_sb() ocfs2: fix uninitialized value in ocfs2_file_read_iter() powerpc/sstep: make emulate_vsx_load and emulate_vsx_store static fbdev/sh7760fb: Alloc DMA memory from hardware device fbdev: sh7760fb: Fix a possible memory leak in sh7760fb_alloc_mem() dt-bindings: clock: adi,axi-clkgen: convert old binding to yaml format dt-bindings: clock: axi-clkgen: include AXI clk clk: axi-clkgen: use devm_platform_ioremap_resource() short-hand clk: clk-axi-clkgen: make sure to enable the AXI bus clock perf probe: Correct demangled symbols in C++ program PCI: cpqphp: Use PCI_POSSIBLE_ERROR() to check config reads PCI: cpqphp: Fix PCIBIOS_* return value confusion m68k: mcfgpio: Fix incorrect register offset for CONFIG_M5441x m68k: coldfire/device.c: only build FEC when HW macros are defined rpmsg: glink: Add TX_DATA_CONT command while sending rpmsg: glink: Send READ_NOTIFY command in FIFO full case rpmsg: glink: Fix GLINK command prefix rpmsg: glink: use only lower 16-bits of param2 for CMD_OPEN name length NFSD: Prevent NULL dereference in nfsd4_process_cb_update() NFSD: Cap the number of bytes copied by nfs4_reset_recoverydir() vfio/pci: Properly hide first-in-list PCIe extended capability power: supply: core: Remove might_sleep() from power_supply_put() net: usb: lan78xx: Fix memory leak on device unplug by freeing PHY device tg3: Set coherent DMA mask bits to 31 for BCM57766 chipsets net: usb: lan78xx: Fix refcounting and autosuspend on invalid WoL configuration marvell: pxa168_eth: fix call balance of pep->clk handling routines net: stmmac: dwmac-socfpga: Set RX watchdog interrupt as broken usb: using mutex lock and supporting O_NONBLOCK flag in iowarrior_read() USB: chaoskey: fail open after removal USB: chaoskey: Fix possible deadlock chaoskey_list_lock misc: apds990x: Fix missing pm_runtime_disable() apparmor: fix 'Do simple duplicate message elimination' usb: ehci-spear: fix call balance of sehci clk handling routines ext4: supress data-race warnings in ext4_free_inodes_{count,set}() ext4: fix FS_IOC_GETFSMAP handling jfs: xattr: check invalid xattr size more strictly ASoC: codecs: Fix atomicity violation in snd_soc_component_get_drvdata() PCI: Fix use-after-free of slot->bus on hot remove tty: ldsic: fix tty_ldisc_autoload sysctl's proc_handler Bluetooth: Fix type of len in rfcomm_sock_getsockopt{,_old}() ALSA: usb-audio: Fix potential out-of-bound accesses for Extigy and Mbox devices Revert "usb: gadget: composite: fix OS descriptors w_value logic" serial: sh-sci: Clean sci_ports[0] after at earlycon exit Revert "serial: sh-sci: Clean sci_ports[0] after at earlycon exit" netfilter: ipset: add missing range check in bitmap_ip_uadt spi: Fix acpi deferred irq probe ubi: wl: Put source PEB into correct list if trying locking LEB failed um: ubd: Do not use drvdata in release um: net: Do not use drvdata in release serial: 8250: omap: Move pm_runtime_get_sync um: vector: Do not use drvdata in release sh: cpuinfo: Fix a warning for CONFIG_CPUMASK_OFFSTACK arm64: tls: Fix context-switching of tpidrro_el0 when kpti is enabled block: fix ordering between checking BLK_MQ_S_STOPPED request adding HID: wacom: Interpret tilt data from Intuos Pro BT as signed values media: wl128x: Fix atomicity violation in fmc_send_cmd() usb: dwc3: gadget: Fix checking for number of TRBs left lib: string_helpers: silence snprintf() output truncation warning NFSD: Prevent a potential integer overflow rpmsg: glink: Propagate TX failures in intentless mode as well um: Fix the return value of elf_core_copy_task_fpregs NFSv4.0: Fix a use-after-free problem in the asynchronous open() rtc: check if __rtc_read_time was successful in rtc_timer_do_work() ubifs: Correct the total block count by deducting journal reservation ubi: fastmap: Fix duplicate slab cache names while attaching jffs2: fix use of uninitialized variable block: return unsigned int from bdev_io_min 9p/xen: fix init sequence 9p/xen: fix release of IRQ modpost: remove incorrect code in do_eisa_entry() sh: intc: Fix use-after-free bug in register_intc_controller() Linux 4.19.325 Change-Id: I50250c8bd11f9ff4b40da75225c1cfb060e0c258 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
2 parents 4f94b88 + a67e7cd commit 874391c

135 files changed

Lines changed: 898 additions & 426 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/clock/adi,axi-clkgen.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Binding for Analog Devices AXI clkgen pcore clock generator
8+
9+
maintainers:
10+
- Lars-Peter Clausen <lars@metafoo.de>
11+
- Michael Hennerich <michael.hennerich@analog.com>
12+
13+
description: |
14+
The axi_clkgen IP core is a software programmable clock generator,
15+
that can be synthesized on various FPGA platforms.
16+
17+
Link: https://wiki.analog.com/resources/fpga/docs/axi_clkgen
18+
19+
properties:
20+
compatible:
21+
enum:
22+
- adi,axi-clkgen-2.00.a
23+
24+
clocks:
25+
description:
26+
Specifies the reference clock(s) from which the output frequency is
27+
derived. This must either reference one clock if only the first clock
28+
input is connected or two if both clock inputs are connected. The last
29+
clock is the AXI bus clock that needs to be enabled so we can access the
30+
core registers.
31+
minItems: 2
32+
maxItems: 3
33+
34+
clock-names:
35+
oneOf:
36+
- items:
37+
- const: clkin1
38+
- const: s_axi_aclk
39+
- items:
40+
- const: clkin1
41+
- const: clkin2
42+
- const: s_axi_aclk
43+
44+
'#clock-cells':
45+
const: 0
46+
47+
reg:
48+
maxItems: 1
49+
50+
required:
51+
- compatible
52+
- reg
53+
- clocks
54+
- clock-names
55+
- '#clock-cells'
56+
57+
additionalProperties: false
58+
59+
examples:
60+
- |
61+
clock-controller@ff000000 {
62+
compatible = "adi,axi-clkgen-2.00.a";
63+
#clock-cells = <0>;
64+
reg = <0xff000000 0x1000>;
65+
clocks = <&osc 1>, <&clkc 15>;
66+
clock-names = "clkin1", "s_axi_aclk";
67+
};

Documentation/devicetree/bindings/clock/axi-clkgen.txt

Lines changed: 0 additions & 25 deletions
This file was deleted.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0
22
VERSION = 4
33
PATCHLEVEL = 19
4-
SUBLEVEL = 324
4+
SUBLEVEL = 325
55
EXTRAVERSION =
66
NAME = "People's Front"
77

arch/arm/boot/dts/sun9i-a80-cubieboard4.dts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,8 @@
253253

254254
reg_dcdc5: dcdc5 {
255255
regulator-always-on;
256-
regulator-min-microvolt = <1425000>;
257-
regulator-max-microvolt = <1575000>;
256+
regulator-min-microvolt = <1450000>;
257+
regulator-max-microvolt = <1550000>;
258258
regulator-name = "vcc-dram";
259259
};
260260

arch/arm64/kernel/process.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ static void tls_thread_switch(struct task_struct *next)
393393

394394
if (is_compat_thread(task_thread_info(next)))
395395
write_sysreg(next->thread.uw.tp_value, tpidrro_el0);
396-
else if (!arm64_kernel_unmapped_at_el0())
396+
else
397397
write_sysreg(0, tpidrro_el0);
398398

399399
write_sysreg(*task_user_tls(next), tpidr_el0);

arch/m68k/coldfire/device.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static struct platform_device mcf_uart = {
8989
.dev.platform_data = mcf_uart_platform_data,
9090
};
9191

92-
#if IS_ENABLED(CONFIG_FEC)
92+
#ifdef MCFFEC_BASE0
9393

9494
#ifdef CONFIG_M5441x
9595
#define FEC_NAME "enet-fec"
@@ -141,6 +141,7 @@ static struct platform_device mcf_fec0 = {
141141
.platform_data = FEC_PDATA,
142142
}
143143
};
144+
#endif /* MCFFEC_BASE0 */
144145

145146
#ifdef MCFFEC_BASE1
146147
static struct resource mcf_fec1_resources[] = {
@@ -178,7 +179,6 @@ static struct platform_device mcf_fec1 = {
178179
}
179180
};
180181
#endif /* MCFFEC_BASE1 */
181-
#endif /* CONFIG_FEC */
182182

183183
#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)
184184
/*
@@ -478,12 +478,12 @@ static struct platform_device mcf_i2c5 = {
478478

479479
static struct platform_device *mcf_devices[] __initdata = {
480480
&mcf_uart,
481-
#if IS_ENABLED(CONFIG_FEC)
481+
#ifdef MCFFEC_BASE0
482482
&mcf_fec0,
483+
#endif
483484
#ifdef MCFFEC_BASE1
484485
&mcf_fec1,
485486
#endif
486-
#endif
487487
#if IS_ENABLED(CONFIG_SPI_COLDFIRE_QSPI)
488488
&mcf_qspi,
489489
#endif

arch/m68k/include/asm/mcfgpio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ static inline void gpio_free(unsigned gpio)
152152
* read-modify-write as well as those controlled by the EPORT and GPIO modules.
153153
*/
154154
#define MCFGPIO_SCR_START 40
155-
#elif defined(CONFIGM5441x)
155+
#elif defined(CONFIG_M5441x)
156156
/* The m5441x EPORT doesn't have its own GPIO port, uses PORT C */
157157
#define MCFGPIO_SCR_START 0
158158
#else

arch/m68k/include/asm/mvme147hw.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ struct pcc_regs {
9090
#define M147_SCC_B_ADDR 0xfffe3000
9191
#define M147_SCC_PCLK 5000000
9292

93-
#define MVME147_IRQ_SCSI_PORT (IRQ_USER+0x45)
94-
#define MVME147_IRQ_SCSI_DMA (IRQ_USER+0x46)
93+
#define MVME147_IRQ_SCSI_PORT (IRQ_USER + 5)
94+
#define MVME147_IRQ_SCSI_DMA (IRQ_USER + 6)
9595

9696
/* SCC interrupts, for MVME147 */
9797

arch/m68k/kernel/early_printk.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@
1212
#include <linux/string.h>
1313
#include <asm/setup.h>
1414

15-
extern void mvme16x_cons_write(struct console *co,
16-
const char *str, unsigned count);
15+
16+
#include "../mvme147/mvme147.h"
17+
#include "../mvme16x/mvme16x.h"
1718

1819
asmlinkage void __init debug_cons_nputs(const char *s, unsigned n);
1920

@@ -22,7 +23,9 @@ static void __ref debug_cons_write(struct console *c,
2223
{
2324
#if !(defined(CONFIG_SUN3) || defined(CONFIG_M68000) || \
2425
defined(CONFIG_COLDFIRE))
25-
if (MACH_IS_MVME16x)
26+
if (MACH_IS_MVME147)
27+
mvme147_scc_write(c, s, n);
28+
else if (MACH_IS_MVME16x)
2629
mvme16x_cons_write(c, s, n);
2730
else
2831
debug_cons_nputs(s, n);

arch/m68k/mvme147/config.c

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#include <asm/machdep.h>
3636
#include <asm/mvme147hw.h>
3737

38+
#include "mvme147.h"
3839

3940
static void mvme147_get_model(char *model);
4041
extern void mvme147_sched_init(irq_handler_t handler);
@@ -164,3 +165,32 @@ int mvme147_hwclk(int op, struct rtc_time *t)
164165
}
165166
return 0;
166167
}
168+
169+
static void scc_delay(void)
170+
{
171+
__asm__ __volatile__ ("nop; nop;");
172+
}
173+
174+
static void scc_write(char ch)
175+
{
176+
do {
177+
scc_delay();
178+
} while (!(in_8(M147_SCC_A_ADDR) & BIT(2)));
179+
scc_delay();
180+
out_8(M147_SCC_A_ADDR, 8);
181+
scc_delay();
182+
out_8(M147_SCC_A_ADDR, ch);
183+
}
184+
185+
void mvme147_scc_write(struct console *co, const char *str, unsigned int count)
186+
{
187+
unsigned long flags;
188+
189+
local_irq_save(flags);
190+
while (count--) {
191+
if (*str == '\n')
192+
scc_write('\r');
193+
scc_write(*str++);
194+
}
195+
local_irq_restore(flags);
196+
}

0 commit comments

Comments
 (0)