Skip to contentSkip to conversation

Linux 5.4.260

DISCUSSION Greg Kroah-Hartman 1 participant 2 messages Nov 8, 2023 Stable branch

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

I'm announcing the release of the 5.4.260 kernel.

All users of the 5.4 kernel series must upgrade.

The updated 5.4.y git tree can be found at:
git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.4.y
and can be browsed at the normal kernel.org git web browser:
https://git.kernel.org/?p=linux/kernel/git/stable/linux-stable.git;a=summary

thanks,

greg k-h

------------

 Makefile                                                               |    2 
 arch/arm/boot/dts/am335x-baltos.dtsi                                   |    2 
 arch/arm/boot/dts/am335x-boneblack-common.dtsi                         |    1 
 arch/arm/boot/dts/am335x-boneblack-wireless.dts                        |    1 
 arch/arm/boot/dts/am335x-boneblue.dts                                  |    1 
 arch/arm/boot/dts/am335x-bonegreen-wireless.dts                        |    1 
 arch/arm/boot/dts/am335x-evm.dts                                       |    3 
 arch/arm/boot/dts/am335x-evmsk.dts                                     |    2 
 arch/arm/boot/dts/am335x-lxm.dts                                       |    2 
 arch/arm/boot/dts/am335x-moxa-uc-2100-common.dtsi                      |    2 
 arch/arm/boot/dts/am335x-moxa-uc-8100-me-t.dts                         |    2 
 arch/arm/boot/dts/am335x-pepper.dts                                    |    4 
 arch/arm/boot/dts/am335x-phycore-som.dtsi                              |    2 
 arch/arm/boot/dts/am33xx-l4.dtsi                                       |    6 
 arch/arm/boot/dts/am33xx.dtsi                                          |    3 
 arch/arm/boot/dts/am4372.dtsi                                          |    3 
 arch/arm/boot/dts/am437x-cm-t43.dts                                    |    2 
 arch/arm/boot/dts/am437x-gp-evm.dts                                    |    4 
 arch/arm/boot/dts/am437x-l4.dtsi                                       |    5 
 arch/arm/boot/dts/am437x-sk-evm.dts                                    |    2 
 arch/arm64/kernel/armv8_deprecated.c                                   |    6 
 arch/x86/include/asm/i8259.h                                           |    2 
 arch/x86/include/asm/setup.h                                           |   46 
 arch/x86/kernel/acpi/boot.c                                            |    3 
 arch/x86/kernel/i8259.c                                                |   38 
 arch/x86/kernel/vmlinux.lds.S                                          |    2 
 drivers/ata/ahci.h                                                     |  245 -
 drivers/base/driver.c                                                  |   69 
 drivers/base/platform.c                                                |   28 
 drivers/block/Kconfig                                                  |    9 
 drivers/block/Makefile                                                 |    2 
 drivers/block/sx8.c                                                    | 1586 ----------
 drivers/clk/clk.c                                                      |   21 
 drivers/dma/ste_dma40.c                                                |    1 
 drivers/gpu/drm/drm_dp_mst_topology.c                                  |    6 
 drivers/i2c/busses/i2c-aspeed.c                                        |    3 
 drivers/i2c/busses/i2c-stm32f7.c                                       |    9 
 drivers/i2c/muxes/i2c-demux-pinctrl.c                                  |    2 
 drivers/i2c/muxes/i2c-mux-gpmux.c                                      |    2 
 drivers/i2c/muxes/i2c-mux-pinctrl.c                                    |    2 
 drivers/iio/adc/exynos_adc.c                                           |   24 
 drivers/input/mouse/synaptics.c                                        |    1 
 drivers/input/rmi4/rmi_smbus.c                                         |   50 
 drivers/input/serio/i8042-x86ia64io.h                                  |    8 
 drivers/irqchip/irq-stm32-exti.c                                       |    1 
 drivers/mcb/mcb-lpc.c                                                  |   35 
 drivers/mcb/mcb-parse.c                                                |   15 
 drivers/mtd/nand/raw/marvell_nand.c                                    |   23 
 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c                             |    2 
 drivers/net/ethernet/intel/i40e/i40e_txrx.c                            |    2 
 drivers/net/ethernet/intel/igb/igb_ethtool.c                           |    6 
 drivers/net/ethernet/intel/igc/igc_ethtool.c                           |   35 
 drivers/net/ethernet/realtek/r8169_main.c                              |    4 
 drivers/net/ethernet/toshiba/ps3_gelic_wireless.c                      |    2 
 drivers/net/gtp.c                                                      |    5 
 drivers/net/ieee802154/adf7242.c                                       |    5 
 drivers/net/usb/r8152.c                                                |   10 
 drivers/nvme/target/tcp.c                                              |   50 
 drivers/nvmem/imx-ocotp.c                                              |    6 
 drivers/pci/quirks.c                                                   |    8 
 drivers/platform/mellanox/mlxbf-tmfifo.c                               |   21 
 drivers/platform/x86/asus-wmi.h                                        |    2 
 drivers/rpmsg/qcom_glink_native.c                                      |    1 
 drivers/rpmsg/rpmsg_core.c                                             |   37 
 drivers/rpmsg/rpmsg_internal.h                                         |    5 
 drivers/scsi/mpt3sas/mpt3sas_scsih.c                                   |    4 
 drivers/spi/spi-npcm-fiu.c                                             |    5 
 drivers/tty/serial/8250/8250_pci.c                                     |  122 
 drivers/usb/storage/unusual_cypress.h                                  |    2 
 drivers/video/fbdev/aty/atyfb_base.c                                   |    4 
 drivers/video/fbdev/uvesafb.c                                          |    2 
 drivers/virtio/virtio_balloon.c                                        |    6 
 drivers/virtio/virtio_mmio.c                                           |   19 
 fs/cifs/smbdirect.c                                                    |   14 
 fs/ext4/mballoc.c                                                      |   51 
 fs/ext4/mballoc.h                                                      |   14 
 fs/f2fs/gc.c                                                           |    3 
 fs/nfsd/vfs.c                                                          |   12 
 include/linux/device.h                                                 |    2 
 include/linux/pci_ids.h                                                |    1 
 include/linux/platform_device.h                                        |    6 
 include/linux/rpmsg.h                                                  |   14 
 include/uapi/linux/gtp.h                                               |    2 
 kernel/events/core.c                                                   |    3 
 lib/kobject.c                                                          |   12 
 net/core/neighbour.c                                                   |   67 
 net/ipv4/tcp_input.c                                                   |    9 
 net/netfilter/nfnetlink_log.c                                          |    2 
 sound/soc/codecs/rt5645.c                                              |    2 
 tools/testing/selftests/ftrace/test.d/kprobe/kprobe_non_uniq_symbol.tc |   13 
 90 files changed, 851 insertions(+), 2030 deletions(-)

Al Viro (1):
nfsd: lock_rename() needs both directories to live on the same fs

Alain Volmat (1):
i2c: stm32f7: Fix PEC handling in case of SMBUS transfers

Alessandro Carminati (1):
clk: Sanitize possible_parent_show to Handle Return Value of of_clk_get_parent_name

Arnd Bergmann (2):
fbdev: atyfb: only use ioremap_uc() on i386 and ia64
ata: ahci: fix enum constants for gcc-13

Baokun Li (3):
ext4: add two helper functions extent_logical_end() and pa_logical_end()
ext4: avoid overlapping preallocations due to overflow
ext4: fix BUG in ext4_mb_new_inode_pa() due to overflow

Ben Wolsieffer (1):
irqchip/stm32-exti: add missing DT IRQ flag translation

Bjorn Andersson (1):
rpmsg: glink: Release driver_override

Cameron Williams (4):
tty: 8250: Remove UC-257 and UC-431
tty: 8250: Add support for additional Brainboxes UC cards
tty: 8250: Add support for Brainboxes UP cards
tty: 8250: Add support for Intashield IS-100

Chao Yu (1):
f2fs: fix to do sanity check on inode type during garbage collection

Christoph Hellwig (1):
remove the sx8 block driver

Christophe JAILLET (1):
net: ieee802154: adf7242: Fix some potential buffer overflow in adf7242_stats_show()

Dmitry Torokhov (1):
Input: synaptics-rmi4 - handle reset delay when using SMBus trsnsport

Douglas Anderson (3):
r8152: Increase USB control msg timeout to 5000ms as per spec
r8152: Run the unload routine if we have errors during probe
r8152: Cancel hw_phy_work if we have an error in probe

Eric Dumazet (1):
neighbour: fix various data-races

Florian Westphal (1):
netfilter: nfnetlink_log: silence bogus compiler warning

Francis Laniel (1):
selftests/ftrace: Add new test case which checks non unique symbol

Fred Chen (1):
tcp: fix wrong RTO timeout when received SACK reneging

Gavin Shan (1):
virtio_balloon: Fix endless deflation and inflation on arm64

Greg Kroah-Hartman (1):

      Linux 5.4.260

Hangyu Hua (1):
rpmsg: Fix possible refcount leak in rpmsg_register_device_override()

Hans de Goede (1):

      platform/x86: asus-wmi: Change ASUS_WMI_BRN_DOWN code from 0x20 to 0x2e

Herve Codina (3):
i2c: muxes: i2c-mux-pinctrl: Use of_get_i2c_adapter_by_node()
i2c: muxes: i2c-mux-gpmux: Use of_get_i2c_adapter_by_node()
i2c: muxes: i2c-demux-pinctrl: Use of_get_i2c_adapter_by_node()

Ivan Vecera (1):
i40e: Fix wrong check for I40E_TXR_FLAGS_WB_ON_ITR

Jian Zhang (1):
i2c: aspeed: Fix i2c bus hang in slave read

Jinjie Ruan (1):
arm64: fix a concurrency issue in emulation_proc_handler()

Jorge Maidana (1):
fbdev: uvesafb: Call cn_del_callback() at the end of uvesafb_exit()

Josh Poimboeuf (2):
x86/mm: Simplify RESERVE_BRK() x86/mm: Fix RESERVE_BRK() for older binutils

Juergen Gross (1):
x86: Fix .brk attribute in linker script

Krzysztof Kozlowski (4):
driver: platform: Add helper for safer setting of driver_override
rpmsg: Constify local variable in field store macro
rpmsg: Fix kfree() of static memory on setting driver_override
rpmsg: Fix calling device_lock() on non-initialized device

Kunwu Chan (1):
treewide: Spelling fix in comment

LihaSika (1):
usb: storage: set 1.50 as the lower bcdDevice for older "Super Top" compatibility

Liming Sun (1):
platform/mellanox: mlxbf-tmfifo: Fix a warning message

Lukasz Majczak (1):
drm/dp_mst: Fix NULL deref in get_mst_branch_device_by_guid_helper()

Marek Szyprowski (1):
iio: exynos-adc: request second interupt only when touchscreen mode is used

Mateusz Palczewski (1):
igb: Fix potential memory leak in igb_add_ethtool_nfc_entry

Matthias Schiffer (1):
Revert "ARM: dts: Move am33xx and am43xx mmc nodes to sdhci-omap driver"

Maximilian Heyne (1):
virtio-mmio: fix memory leak of vm_dev

Miquel Raynal (1):
mtd: rawnand: marvell: Ensure program page operations are successful

Mirsad Goran Todorovac (2):
r8169: fix the KCSAN reported data-race in rtl_tx while reading TxDescArray[entry].opts1
r8169: fix the KCSAN reported data race in rtl_rx while reading desc->opts1

Pablo Neira Ayuso (2):
gtp: uapi: fix GTPA_MAX
gtp: fix fragmentation needed check with gso

Peng Fan (3):
nvmem: imx: correct nregs for i.MX6ULL
nvmem: imx: correct nregs for i.MX6SLL
nvmem: imx: correct nregs for i.MX6UL

Peter Zijlstra (1):
perf/core: Fix potential NULL deref

Rodríguez Barbarin, José Javier (2):
mcb: Return actual parsed size when reading chameleon table
mcb-lpc: Reallocate memory region to avoid memory overlapping

Sagi Grimberg (2):
nvmet-tcp: move send/recv error handling in the send/recv methods instead of call-sites
nvmet-tcp: Fix a possible UAF in queue intialization setup

Sasha Neftin (1):
igc: Fix ambiguity in the ethtool advertising

Shuming Fan (1):
ASoC: rt5650: fix the wrong result of key button

Steve French (1):
smbdirect: missing rc checks while waiting for rdma events

Su Hui (1):
net: chelsio: cxgb4: add an error code check in t4_load_phy_fw

Szilard Fabian (1):
Input: i8042 - add Fujitsu Lifebook E5411 to i8042 quirk table

Thomas Gleixner (1):
x86/i8259: Skip probing when ACPI/MADT advertises PCAT compatibility

Tomas Henzl (1):
scsi: mpt3sas: Fix in error path

Vicki Pfau (1):
PCI: Prevent xHCI driver from claiming AMD VanGogh USB3 DRD device

Wang Hai (1):
kobject: Fix slab-out-of-bounds in fill_kobj_path()

William A. Kennington III (1):

      spi: npcm-fiu: Fix UMA reads when dummy.nbytes == 0

Zhang Shurong (1):
dmaengine: ste_dma40: Fix PM disable depth imbalance in d40_probe

author maintainer
#1 lore raw
Makefile +1 -1
index b30442d90389..24dc30cd2472 100644
@@ -1,7 +1,7 @@
 # SPDX-License-Identifier: GPL-2.0
 VERSION = 5
 PATCHLEVEL = 4
-SUBLEVEL = 259
+SUBLEVEL = 260
 EXTRAVERSION =
 NAME = Kleptomaniac Octopus
 
arch/arm/boot/dts/am335x-baltos.dtsi +1 -1
index ee84155844ad..ed235f263e29 100644
@@ -381,7 +381,7 @@
 &mmc2 {
 	status = "okay";
 	vmmc-supply = <&wl12xx_vmmc>;
-	non-removable;
+	ti,non-removable;
 	bus-width = <4>;
 	cap-power-off-card;
 	pinctrl-names = "default";
arch/arm/boot/dts/am335x-boneblack-common.dtsi +0 -1
index dd932220a8bf..91f93bc89716 100644
@@ -22,7 +22,6 @@
 	pinctrl-0 = <&emmc_pins>;
 	bus-width = <8>;
 	status = "okay";
-	non-removable;
 };
 
 &am33xx_pinmux {
arch/arm/boot/dts/am335x-boneblack-wireless.dts +1 -0
index e07dd7979586..3124d94c0b3c 100644
@@ -75,6 +75,7 @@
 	bus-width = <4>;
 	non-removable;
 	cap-power-off-card;
+	ti,needs-special-hs-handling;
 	keep-power-in-suspend;
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc3_pins &wl18xx_pins>;
arch/arm/boot/dts/am335x-boneblue.dts +1 -0
index 30b62de86b5b..2f6652ef9a15 100644
@@ -389,6 +389,7 @@
 	bus-width = <4>;
 	non-removable;
 	cap-power-off-card;
+	ti,needs-special-hs-handling;
 	keep-power-in-suspend;
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc3_pins &wl18xx_pins>;
arch/arm/boot/dts/am335x-bonegreen-wireless.dts +1 -0
index 609c8db687ec..4092cd193b8a 100644
@@ -75,6 +75,7 @@
 	bus-width = <4>;
 	non-removable;
 	cap-power-off-card;
+	ti,needs-special-hs-handling;
 	keep-power-in-suspend;
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc3_pins &wl18xx_pins>;
arch/arm/boot/dts/am335x-evm.dts +2 -1
index af25b42e85f4..a00145705c9b 100644
@@ -782,7 +782,8 @@
 	bus-width = <4>;
 	pinctrl-names = "default";
 	pinctrl-0 = <&mmc3_pins &wlan_pins>;
-	non-removable;
+	ti,non-removable;
+	ti,needs-special-hs-handling;
 	cap-power-off-card;
 	keep-power-in-suspend;
 
arch/arm/boot/dts/am335x-evmsk.dts +1 -1
index 7805b0618a4f..e28a5b82fdf3 100644
@@ -700,7 +700,7 @@
 &mmc2 {
 	status = "okay";
 	vmmc-supply = <&wl12xx_vmmc>;
-	non-removable;
+	ti,non-removable;
 	bus-width = <4>;
 	cap-power-off-card;
 	keep-power-in-suspend;
arch/arm/boot/dts/am335x-lxm.dts +1 -1
index c3bfd8ed5f88..a8005e975ea2 100644
@@ -361,7 +361,7 @@
 	pinctrl-0 = <&emmc_pins>;
 	vmmc-supply = <&vmmcsd_fixed>;
 	bus-width = <8>;
-	non-removable;
+	ti,non-removable;
 	status = "okay";
 };
 
arch/arm/boot/dts/am335x-moxa-uc-2100-common.dtsi +1 -1
index 7749122dad71..671d4a5da9c4 100644
@@ -176,7 +176,7 @@
 	vmmc-supply = <&vmmcsd_fixed>;
 	bus-width = <8>;
 	pinctrl-0 = <&mmc1_pins_default>;
-	non-removable;
+	ti,non-removable;
 	status = "okay";
 };
 
arch/arm/boot/dts/am335x-moxa-uc-8100-me-t.dts +1 -1
index 66a5c09ff388..783d411f2cef 100644
@@ -473,7 +473,7 @@
 	vmmc-supply = <&vmmcsd_fixed>;
 	bus-width = <8>;
 	pinctrl-0 = <&mmc2_pins_default>;
-	non-removable;
+	ti,non-removable;
 	status = "okay";
 };
 
arch/arm/boot/dts/am335x-pepper.dts +2 -2
index 03852eff2b3c..e7764ecdf65f 100644
@@ -341,7 +341,7 @@
 	pinctrl-0 = <&emmc_pins>;
 	vmmc-supply = <&ldo3_reg>;
 	bus-width = <8>;
-	non-removable;
+	ti,non-removable;
 };
 
 &mmc3 {
@@ -351,7 +351,7 @@
 	pinctrl-0 = <&wireless_pins>;
 	vmmmc-supply = <&v3v3c_reg>;
 	bus-width = <4>;
-	non-removable;
+	ti,non-removable;
 	dmas = <&edma_xbar 12 0 1
 		&edma_xbar 13 0 2>;
 	dma-names = "tx", "rx";
arch/arm/boot/dts/am335x-phycore-som.dtsi +1 -1
index 7e46b4c02709..3d0672b53d77 100644
@@ -69,7 +69,7 @@
 	pinctrl-0 = <&emmc_pins>;
 	vmmc-supply = <&vmmc_reg>;
 	bus-width = <8>;
-	non-removable;
+	ti,non-removable;
 	status = "disabled";
 };
 
arch/arm/boot/dts/am33xx-l4.dtsi +4 -2
index cacd564b4d28..8ec6c4500fd5 100644
@@ -1333,8 +1333,10 @@
 			ranges = <0x0 0x60000 0x1000>;
 
 			mmc1: mmc@0 {
-				compatible = "ti,am335-sdhci";
+				compatible = "ti,omap4-hsmmc";
+				ti,dual-volt;
 				ti,needs-special-reset;
+				ti,needs-special-hs-handling;
 				dmas = <&edma 24 0>, <&edma 25 0>;
 				dma-names = "tx", "rx";
 				interrupts = <64>;
@@ -1824,7 +1826,7 @@
 			ranges = <0x0 0xd8000 0x1000>;
 
 			mmc2: mmc@0 {
-				compatible = "ti,am335-sdhci";
+				compatible = "ti,omap4-hsmmc";
 				ti,needs-special-reset;
 				dmas = <&edma 2 0
 					&edma 3 0>;
arch/arm/boot/dts/am33xx.dtsi +1 -2
index efe36f395bdd..77fa7c0f2104 100644
@@ -259,11 +259,10 @@
 			ranges = <0x0 0x47810000 0x1000>;
 
 			mmc3: mmc@0 {
-				compatible = "ti,am335-sdhci";
+				compatible = "ti,omap4-hsmmc";
 				ti,needs-special-reset;
 				interrupts = <29>;
 				reg = <0x0 0x1000>;
-				status = "disabled";
 			};
 		};
 
arch/arm/boot/dts/am4372.dtsi +1 -2
index c5b67993743d..14bbc438055f 100644
@@ -250,11 +250,10 @@
 			ranges = <0x0 0x47810000 0x1000>;
 
 			mmc3: mmc@0 {
-				compatible = "ti,am437-sdhci";
+				compatible = "ti,omap4-hsmmc";
 				ti,needs-special-reset;
 				interrupts = <GIC_SPI 29 IRQ_TYPE_LEVEL_HIGH>;
 				reg = <0x0 0x1000>;
-				status = "disabled";
 			};
 		};
 
arch/arm/boot/dts/am437x-cm-t43.dts +1 -1
index a6b4fca8626a..063113a5da2d 100644
@@ -291,7 +291,7 @@
 	pinctrl-0 = <&emmc_pins>;
 	vmmc-supply = <&vmmc_3v3>;
 	bus-width = <8>;
-	non-removable;
+	ti,non-removable;
 };
 
 &spi0 {
arch/arm/boot/dts/am437x-gp-evm.dts +2 -2
index 448853701d3d..126965a34841 100644
@@ -872,7 +872,7 @@
 	pinctrl-names = "default", "sleep";
 	pinctrl-0 = <&emmc_pins_default>;
 	pinctrl-1 = <&emmc_pins_sleep>;
-	non-removable;
+	ti,non-removable;
 };
 
 &mmc3 {
@@ -889,7 +889,7 @@
 	pinctrl-1 = <&mmc3_pins_sleep>;
 	cap-power-off-card;
 	keep-power-in-suspend;
-	non-removable;
+	ti,non-removable;
 
 	#address-cells = <1>;
 	#size-cells = <0>;
arch/arm/boot/dts/am437x-l4.dtsi +3 -2
index 8c9e7e723fc9..64fdd5079d49 100644
@@ -1104,8 +1104,9 @@
 			ranges = <0x0 0x60000 0x1000>;
 
 			mmc1: mmc@0 {
-				compatible = "ti,am437-sdhci";
+				compatible = "ti,omap4-hsmmc";
 				reg = <0x0 0x1000>;
+				ti,dual-volt;
 				ti,needs-special-reset;
 				dmas = <&edma 24 0>,
 					<&edma 25 0>;
@@ -1640,7 +1641,7 @@
 			ranges = <0x0 0xd8000 0x1000>;
 
 			mmc2: mmc@0 {
-				compatible = "ti,am437-sdhci";
+				compatible = "ti,omap4-hsmmc";
 				reg = <0x0 0x1000>;
 				ti,needs-special-reset;
 				dmas = <&edma 2 0>,
arch/arm/boot/dts/am437x-sk-evm.dts +1 -1
index 292153c6cb5d..74eaa6a3b258 100644
@@ -694,7 +694,7 @@
 	pinctrl-1 = <&mmc3_pins_sleep>;
 	cap-power-off-card;
 	keep-power-in-suspend;
-	non-removable;
+	ti,non-removable;
 
 	#address-cells = <1>;
 	#size-cells = <0>;
arch/arm64/kernel/armv8_deprecated.c +4 -2
index fbf66e0973aa..12b545f7fb32 100644
@@ -208,10 +208,12 @@ static int emulation_proc_handler(struct ctl_table *table, int write,
 				  loff_t *ppos)
 {
 	int ret = 0;
-	struct insn_emulation *insn = container_of(table->data, struct insn_emulation, current_mode);
-	enum insn_emulation_mode prev_mode = insn->current_mode;
+	struct insn_emulation *insn;
+	enum insn_emulation_mode prev_mode;
 
 	mutex_lock(&insn_emulation_mutex);
+	insn = container_of(table->data, struct insn_emulation, current_mode);
+	prev_mode = insn->current_mode;
 	ret = proc_dointvec_minmax(table, write, buffer, lenp, ppos);
 
 	if (ret || !write || prev_mode == insn->current_mode)
arch/x86/include/asm/i8259.h +2 -0
index 89789e8c80f6..e16574c16e93 100644
@@ -67,6 +67,8 @@ struct legacy_pic {
 	void (*make_irq)(unsigned int irq);
 };
 
+void legacy_pic_pcat_compat(void);
+
 extern struct legacy_pic *legacy_pic;
 extern struct legacy_pic null_legacy_pic;
 
arch/x86/include/asm/setup.h +21 -25

60 lines not on this page · raw message

arch/x86/kernel/acpi/boot.c +3 -0
index 7b75658b7e9a..a5e41e66fcbd 100644
@@ -140,6 +140,9 @@ static int __init acpi_parse_madt(struct acpi_table_header *table)
 		       madt->address);
 	}
 
+	if (madt->flags & ACPI_MADT_PCAT_COMPAT)
+		legacy_pic_pcat_compat();
+
 	default_acpi_madt_oem_check(madt->header.oem_id,
 				    madt->header.oem_table_id);
 
arch/x86/kernel/i8259.c +30 -8
index 8821d0ab0a08..82753622f489 100644
@@ -32,6 +32,7 @@
  */
 static void init_8259A(int auto_eoi);
 
+static bool pcat_compat __ro_after_init;
 static int i8259A_auto_eoi;
 DEFINE_RAW_SPINLOCK(i8259A_lock);
 
@@ -301,15 +302,32 @@ static void unmask_8259A(void)
 
 static int probe_8259A(void)
 {
+	unsigned char new_val, probe_val = ~(1 << PIC_CASCADE_IR);
 	unsigned long flags;
-	unsigned char probe_val = ~(1 << PIC_CASCADE_IR);
-	unsigned char new_val;
+
+	/*
+	 * If MADT has the PCAT_COMPAT flag set, then do not bother probing
+	 * for the PIC. Some BIOSes leave the PIC uninitialized and probing
+	 * fails.
+	 *
+	 * Right now this causes problems as quite some code depends on
+	 * nr_legacy_irqs() > 0 or has_legacy_pic() == true. This is silly
+	 * when the system has an IO/APIC because then PIC is not required
+	 * at all, except for really old machines where the timer interrupt
+	 * must be routed through the PIC. So just pretend that the PIC is
+	 * there and let legacy_pic->init() initialize it for nothing.
+	 *
+	 * Alternatively this could just try to initialize the PIC and
+	 * repeat the probe, but for cases where there is no PIC that's
+	 * just pointless.
+	 */
+	if (pcat_compat)
+		return nr_legacy_irqs();
+
 	/*
-	 * Check to see if we have a PIC.
-	 * Mask all except the cascade and read
-	 * back the value we just wrote. If we don't
-	 * have a PIC, we will read 0xff as opposed to the
-	 * value we wrote.
+	 * Check to see if we have a PIC.  Mask all except the cascade and
+	 * read back the value we just wrote. If we don't have a PIC, we
+	 * will read 0xff as opposed to the value we wrote.
 	 */
 	raw_spin_lock_irqsave(&i8259A_lock, flags);
 
@@ -431,5 +449,9 @@ static int __init i8259A_init_ops(void)
 
 	return 0;
 }
-
 device_initcall(i8259A_init_ops);
+
+void __init legacy_pic_pcat_compat(void)
+{
+	pcat_compat = true;
+}
arch/x86/kernel/vmlinux.lds.S +1 -1
index 7e0e21082c93..09506e492f1d 100644
@@ -383,7 +383,7 @@ SECTIONS
 	.brk : AT(ADDR(.brk) - LOAD_OFFSET) {
 		__brk_base = .;
 		. += 64 * 1024;		/* 64k alignment slop space */
-		*(.brk_reservation)	/* areas brk users have reserved */
+		*(.bss..brk)		/* areas brk users have reserved */
 		__brk_limit = .;
 	}
 
drivers/ata/ahci.h +123 -122

310 lines not on this page · raw message

drivers/base/driver.c +69 -0

75 lines not on this page · raw message

drivers/base/platform.c +4 -24
index 75623b914b8c..0ed43d185a90 100644
@@ -973,31 +973,11 @@ static ssize_t driver_override_store(struct device *dev,
 				     const char *buf, size_t count)
 {
 	struct platform_device *pdev = to_platform_device(dev);
-	char *driver_override, *old, *cp;
-
-	/* We need to keep extra room for a newline */
-	if (count >= (PAGE_SIZE - 1))
-		return -EINVAL;
-
-	driver_override = kstrndup(buf, count, GFP_KERNEL);
-	if (!driver_override)
-		return -ENOMEM;
-
-	cp = strchr(driver_override, '\n');
-	if (cp)
-		*cp = '\0';
-
-	device_lock(dev);
-	old = pdev->driver_override;
-	if (strlen(driver_override)) {
-		pdev->driver_override = driver_override;
-	} else {
-		kfree(driver_override);
-		pdev->driver_override = NULL;
-	}
-	device_unlock(dev);
+	int ret;
 
-	kfree(old);
+	ret = driver_set_override(dev, &pdev->driver_override, buf, count);
+	if (ret)
+		return ret;
 
 	return count;
 }
drivers/block/Kconfig +0 -9
index 8a08cbb958d1..c867211f5ed7 100644
@@ -299,15 +299,6 @@ config BLK_DEV_SKD
 
 	Use device /dev/skd$N amd /dev/skd$Np$M.
 
-config BLK_DEV_SX8
-	tristate "Promise SATA SX8 support"
-	depends on PCI
-	---help---
-	  Saying Y or M here will enable support for the 
-	  Promise SATA SX8 controllers.
-
-	  Use devices /dev/sx8/$N and /dev/sx8/$Np$M.
-
 config BLK_DEV_RAM
 	tristate "RAM block device support"
 	---help---
drivers/block/Makefile +0 -2
index a53cc1e3a2d3..d8f2f72c3b62 100644
@@ -26,8 +26,6 @@ obj-$(CONFIG_BLK_DEV_NBD)	+= nbd.o
 obj-$(CONFIG_BLK_DEV_CRYPTOLOOP) += cryptoloop.o
 obj-$(CONFIG_VIRTIO_BLK)	+= virtio_blk.o
 
-obj-$(CONFIG_BLK_DEV_SX8)	+= sx8.o
-
 obj-$(CONFIG_XEN_BLKDEV_FRONTEND)	+= xen-blkfront.o
 obj-$(CONFIG_XEN_BLKDEV_BACKEND)	+= xen-blkback/
 obj-$(CONFIG_BLK_DEV_DRBD)     += drbd/
drivers/block/sx8.c deleted +0 -1586

1,586 lines not on this page · raw message

drivers/clk/clk.c +12 -9
index 1c73668b4375..661d456fb0ad 100644
@@ -3080,6 +3080,7 @@ static void possible_parent_show(struct seq_file *s, struct clk_core *core,
 				 unsigned int i, char terminator)
 {
 	struct clk_core *parent;
+	const char *name = NULL;
 
 	/*
 	 * Go through the following options to fetch a parent's name.
@@ -3094,18 +3095,20 @@ static void possible_parent_show(struct seq_file *s, struct clk_core *core,
 	 * registered (yet).
 	 */
 	parent = clk_core_get_parent_by_index(core, i);
-	if (parent)
+	if (parent) {
 		seq_puts(s, parent->name);
-	else if (core->parents[i].name)
+	} else if (core->parents[i].name) {
 		seq_puts(s, core->parents[i].name);
-	else if (core->parents[i].fw_name)
+	} else if (core->parents[i].fw_name) {
 		seq_printf(s, "<%s>(fw)", core->parents[i].fw_name);
-	else if (core->parents[i].index >= 0)
-		seq_puts(s,
-			 of_clk_get_parent_name(core->of_node,
-						core->parents[i].index));
-	else
-		seq_puts(s, "(missing)");
+	} else {
+		if (core->parents[i].index >= 0)
+			name = of_clk_get_parent_name(core->of_node, core->parents[i].index);
+		if (!name)
+			name = "(missing)";
+
+		seq_puts(s, name);
+	}
 
 	seq_putc(s, terminator);
 }
drivers/dma/ste_dma40.c +1 -0
index 96a808b487cb..fa0ad8581edc 100644
@@ -3700,6 +3700,7 @@ static int __init d40_probe(struct platform_device *pdev)
 		regulator_disable(base->lcpa_regulator);
 		regulator_put(base->lcpa_regulator);
 	}
+	pm_runtime_disable(base->dev);
 
 	kfree(base->lcla_pool.alloc_map);
 	kfree(base->lookup_log_chans);
drivers/gpu/drm/drm_dp_mst_topology.c +3 -3
index 1ff13af13324..7b396b7277ee 100644
@@ -1806,14 +1806,14 @@ static struct drm_dp_mst_branch *get_mst_branch_device_by_guid_helper(
 	struct drm_dp_mst_branch *found_mstb;
 	struct drm_dp_mst_port *port;
 
+	if (!mstb)
+		return NULL;
+
 	if (memcmp(mstb->guid, guid, 16) == 0)
 		return mstb;
 
 
 	list_for_each_entry(port, &mstb->ports, next) {
-		if (!port->mstb)
-			continue;
-
 		found_mstb = get_mst_branch_device_by_guid_helper(port->mstb, guid);
 
 		if (found_mstb)
drivers/i2c/busses/i2c-aspeed.c +2 -1
index 8e04db09d787..ff08bcb09a68 100644
@@ -740,6 +740,8 @@ static void __aspeed_i2c_reg_slave(struct aspeed_i2c_bus *bus, u16 slave_addr)
 	func_ctrl_reg_val = readl(bus->base + ASPEED_I2C_FUN_CTRL_REG);
 	func_ctrl_reg_val |= ASPEED_I2CD_SLAVE_EN;
 	writel(func_ctrl_reg_val, bus->base + ASPEED_I2C_FUN_CTRL_REG);
+
+	bus->slave_state = ASPEED_I2C_SLAVE_INACTIVE;
 }
 
 static int aspeed_i2c_reg_slave(struct i2c_client *client)
@@ -756,7 +758,6 @@ static int aspeed_i2c_reg_slave(struct i2c_client *client)
 	__aspeed_i2c_reg_slave(bus, client->addr);
 
 	bus->slave = client;
-	bus->slave_state = ASPEED_I2C_SLAVE_INACTIVE;
 	spin_unlock_irqrestore(&bus->lock, flags);
 
 	return 0;
drivers/i2c/busses/i2c-stm32f7.c +6 -3
index 0f0c41174ddd..74dd2c15e34c 100644
@@ -974,9 +974,10 @@ static int stm32f7_i2c_smbus_xfer_msg(struct stm32f7_i2c_dev *i2c_dev,
 	/* Configure PEC */
 	if ((flags & I2C_CLIENT_PEC) && f7_msg->size != I2C_SMBUS_QUICK) {
 		cr1 |= STM32F7_I2C_CR1_PECEN;
-		cr2 |= STM32F7_I2C_CR2_PECBYTE;
-		if (!f7_msg->read_write)
+		if (!f7_msg->read_write) {
+			cr2 |= STM32F7_I2C_CR2_PECBYTE;
 			f7_msg->count++;
+		}
 	} else {
 		cr1 &= ~STM32F7_I2C_CR1_PECEN;
 		cr2 &= ~STM32F7_I2C_CR2_PECBYTE;
@@ -1064,8 +1065,10 @@ static void stm32f7_i2c_smbus_rep_start(struct stm32f7_i2c_dev *i2c_dev)
 	f7_msg->stop = true;
 
 	/* Add one byte for PEC if needed */
-	if (cr1 & STM32F7_I2C_CR1_PECEN)
+	if (cr1 & STM32F7_I2C_CR1_PECEN) {
+		cr2 |= STM32F7_I2C_CR2_PECBYTE;
 		f7_msg->count++;
+	}
 
 	/* Set number of bytes to be transferred */
 	cr2 &= ~(STM32F7_I2C_CR2_NBYTES_MASK);
drivers/i2c/muxes/i2c-demux-pinctrl.c +1 -1
index 8e8688e8de0f..45a3f7e7b3f6 100644
@@ -61,7 +61,7 @@ static int i2c_demux_activate_master(struct i2c_demux_pinctrl_priv *priv, u32 ne
 	if (ret)
 		goto err;
 
-	adap = of_find_i2c_adapter_by_node(priv->chan[new_chan].parent_np);
+	adap = of_get_i2c_adapter_by_node(priv->chan[new_chan].parent_np);
 	if (!adap) {
 		ret = -ENODEV;
 		goto err_with_revert;
drivers/i2c/muxes/i2c-mux-gpmux.c +1 -1
index 480ec74e6134..fed7d17e0190 100644
@@ -52,7 +52,7 @@ static struct i2c_adapter *mux_parent_adapter(struct device *dev)
 		dev_err(dev, "Cannot parse i2c-parent\n");
 		return ERR_PTR(-ENODEV);
 	}
-	parent = of_find_i2c_adapter_by_node(parent_np);
+	parent = of_get_i2c_adapter_by_node(parent_np);
 	of_node_put(parent_np);
 	if (!parent)
 		return ERR_PTR(-EPROBE_DEFER);
drivers/i2c/muxes/i2c-mux-pinctrl.c +1 -1
index f1bb00a11ad6..fc991cf002af 100644
@@ -62,7 +62,7 @@ static struct i2c_adapter *i2c_mux_pinctrl_parent_adapter(struct device *dev)
 		dev_err(dev, "Cannot parse i2c-parent\n");
 		return ERR_PTR(-ENODEV);
 	}
-	parent = of_find_i2c_adapter_by_node(parent_np);
+	parent = of_get_i2c_adapter_by_node(parent_np);
 	of_node_put(parent_np);
 	if (!parent)
 		return ERR_PTR(-EPROBE_DEFER);
drivers/iio/adc/exynos_adc.c +14 -10
index 42a3ced11fbd..234f9c37aa10 100644
@@ -804,16 +804,26 @@ static int exynos_adc_probe(struct platform_device *pdev)
 		}
 	}
 
+	/* leave out any TS related code if unreachable */
+	if (IS_REACHABLE(CONFIG_INPUT)) {
+		has_ts = of_property_read_bool(pdev->dev.of_node,
+					       "has-touchscreen") || pdata;
+	}
+
 	irq = platform_get_irq(pdev, 0);
 	if (irq < 0)
 		return irq;
 	info->irq = irq;
 
-	irq = platform_get_irq(pdev, 1);
-	if (irq == -EPROBE_DEFER)
-		return irq;
+	if (has_ts) {
+		irq = platform_get_irq(pdev, 1);
+		if (irq == -EPROBE_DEFER)
+			return irq;
 
-	info->tsirq = irq;
+		info->tsirq = irq;
+	} else {
+		info->tsirq = -1;
+	}
 
 	info->dev = &pdev->dev;
 
@@ -880,12 +890,6 @@ static int exynos_adc_probe(struct platform_device *pdev)
 	if (info->data->init_hw)
 		info->data->init_hw(info);
 
-	/* leave out any TS related code if unreachable */
-	if (IS_REACHABLE(CONFIG_INPUT)) {
-		has_ts = of_property_read_bool(pdev->dev.of_node,
-					       "has-touchscreen") || pdata;
-	}
-
 	if (pdata)
 		info->delay = pdata->delay;
 	else
drivers/input/mouse/synaptics.c +1 -0
index f2383c91113c..9cfd2c1d4e3a 100644
@@ -1747,6 +1747,7 @@ static int synaptics_create_intertouch(struct psmouse *psmouse,
 		psmouse_matches_pnp_id(psmouse, topbuttonpad_pnp_ids) &&
 		!SYN_CAP_EXT_BUTTONS_STICK(info->ext_cap_10);
 	const struct rmi_device_platform_data pdata = {
+		.reset_delay_ms = 30,
 		.sensor_pdata = {
 			.sensor_type = rmi_sensor_touchpad,
 			.axis_align.flip_y = true,
drivers/input/rmi4/rmi_smbus.c +28 -22

76 lines not on this page · raw message

drivers/input/serio/i8042-x86ia64io.h +8 -0
index 700655741bf2..5df6eef18228 100644
@@ -609,6 +609,14 @@ static const struct dmi_system_id i8042_dmi_quirk_table[] __initconst = {
 		},
 		.driver_data = (void *)(SERIO_QUIRK_NOMUX)
 	},
+	{
+		/* Fujitsu Lifebook E5411 */
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "FUJITSU CLIENT COMPUTING LIMITED"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "LIFEBOOK E5411"),
+		},
+		.driver_data = (void *)(SERIO_QUIRK_NOAUX)
+	},
 	{
 		/* Gigabyte M912 */
 		.matches = {
drivers/irqchip/irq-stm32-exti.c +1 -0
index a8322a4e18d3..df18465a0985 100644
@@ -414,6 +414,7 @@ static const struct irq_domain_ops irq_exti_domain_ops = {
 	.map	= irq_map_generic_chip,
 	.alloc  = stm32_exti_alloc,
 	.free	= stm32_exti_free,
+	.xlate	= irq_domain_xlate_twocell,
 };
 
 static void stm32_irq_ack(struct irq_data *d)
drivers/mcb/mcb-lpc.c +31 -4
index 8f1bde437a7e..92915d2c2d46 100644
@@ -23,7 +23,7 @@ static int mcb_lpc_probe(struct platform_device *pdev)
 {
 	struct resource *res;
 	struct priv *priv;
-	int ret = 0;
+	int ret = 0, table_size;
 
 	priv = devm_kzalloc(&pdev->dev, sizeof(*priv), GFP_KERNEL);
 	if (!priv)
@@ -58,16 +58,43 @@ static int mcb_lpc_probe(struct platform_device *pdev)
 
 	ret = chameleon_parse_cells(priv->bus, priv->mem->start, priv->base);
 	if (ret < 0) {
-		mcb_release_bus(priv->bus);
-		return ret;
+		goto out_mcb_bus;
 	}
 
-	dev_dbg(&pdev->dev, "Found %d cells\n", ret);
+	table_size = ret;
+
+	if (table_size < CHAM_HEADER_SIZE) {
+		/* Release the previous resources */
+		devm_iounmap(&pdev->dev, priv->base);
+		devm_release_mem_region(&pdev->dev, priv->mem->start, resource_size(priv->mem));
+
+		/* Then, allocate it again with the actual chameleon table size */
+		res = devm_request_mem_region(&pdev->dev, priv->mem->start,
+					      table_size,
+					      KBUILD_MODNAME);
+		if (!res) {
+			dev_err(&pdev->dev, "Failed to request PCI memory\n");
+			ret = -EBUSY;
+			goto out_mcb_bus;
+		}
+
+		priv->base = devm_ioremap(&pdev->dev, priv->mem->start, table_size);
+		if (!priv->base) {
+			dev_err(&pdev->dev, "Cannot ioremap\n");
+			ret = -ENOMEM;
+			goto out_mcb_bus;
+		}
+
+		platform_set_drvdata(pdev, priv);
+	}
 
 	mcb_bus_add_devices(priv->bus);
 
 	return 0;
 
+out_mcb_bus:
+	mcb_release_bus(priv->bus);
+	return ret;
 }
 
 static int mcb_lpc_remove(struct platform_device *pdev)
drivers/mcb/mcb-parse.c +10 -5
index c111025f23c5..a88862ff8507 100644
@@ -128,7 +128,7 @@ static void chameleon_parse_bar(void __iomem *base,
 	}
 }
 
-static int chameleon_get_bar(char __iomem **base, phys_addr_t mapbase,
+static int chameleon_get_bar(void __iomem **base, phys_addr_t mapbase,
 			     struct chameleon_bar **cb)
 {
 	struct chameleon_bar *c;
@@ -177,12 +177,13 @@ int chameleon_parse_cells(struct mcb_bus *bus, phys_addr_t mapbase,
 {
 	struct chameleon_fpga_header *header;
 	struct chameleon_bar *cb;
-	char __iomem *p = base;
+	void __iomem *p = base;
 	int num_cells = 0;
 	uint32_t dtype;
 	int bar_count;
 	int ret;
 	u32 hsize;
+	u32 table_size;
 
 	hsize = sizeof(struct chameleon_fpga_header);
 
@@ -237,12 +238,16 @@ int chameleon_parse_cells(struct mcb_bus *bus, phys_addr_t mapbase,
 		num_cells++;
 	}
 
-	if (num_cells == 0)
-		num_cells = -EINVAL;
+	if (num_cells == 0) {
+		ret = -EINVAL;
+		goto free_bar;
+	}
 
+	table_size = p - base;
+	pr_debug("%d cell(s) found. Chameleon table size: 0x%04x bytes\n", num_cells, table_size);
 	kfree(cb);
 	kfree(header);
-	return num_cells;
+	return table_size;
 
 free_bar:
 	kfree(cb);
drivers/mtd/nand/raw/marvell_nand.c +22 -1
index c49a3e105b42..9a119688c0a6 100644
@@ -1109,6 +1109,7 @@ static int marvell_nfc_hw_ecc_hmg_do_write_page(struct nand_chip *chip,
 		.ndcb[2] = NDCB2_ADDR5_PAGE(page),
 	};
 	unsigned int oob_bytes = lt->spare_bytes + (raw ? lt->ecc_bytes : 0);
+	u8 status;
 	int ret;
 
 	/* NFCv2 needs more information about the operation being executed */
@@ -1142,7 +1143,18 @@ static int marvell_nfc_hw_ecc_hmg_do_write_page(struct nand_chip *chip,
 
 	ret = marvell_nfc_wait_op(chip,
 				  PSEC_TO_MSEC(chip->data_interface.timings.sdr.tPROG_max));
-	return ret;
+	if (ret)
+		return ret;
+
+	/* Check write status on the chip side */
+	ret = nand_status_op(chip, &status);
+	if (ret)
+		return ret;
+
+	if (status & NAND_STATUS_FAIL)
+		return -EIO;
+
+	return 0;
 }
 
 static int marvell_nfc_hw_ecc_hmg_write_page_raw(struct nand_chip *chip,
@@ -1570,6 +1582,7 @@ static int marvell_nfc_hw_ecc_bch_write_page(struct nand_chip *chip,
 	int data_len = lt->data_bytes;
 	int spare_len = lt->spare_bytes;
 	int chunk, ret;
+	u8 status;
 
 	marvell_nfc_select_target(chip, chip->cur_cs);
 
@@ -1607,6 +1620,14 @@ static int marvell_nfc_hw_ecc_bch_write_page(struct nand_chip *chip,
 	if (ret)
 		return ret;
 
+	/* Check write status on the chip side */
+	ret = nand_status_op(chip, &status);
+	if (ret)
+		return ret;
+
+	if (status & NAND_STATUS_FAIL)
+		return -EIO;
+
 	return 0;
 }
 
drivers/net/ethernet/chelsio/cxgb4/t4_hw.c +2 -0
index 42374859b9d3..cb3f515559c2 100644
@@ -3850,6 +3850,8 @@ int t4_load_phy_fw(struct adapter *adap,
 		 FW_PARAMS_PARAM_Z_V(FW_PARAMS_PARAM_DEV_PHYFW_DOWNLOAD));
 	ret = t4_set_params_timeout(adap, adap->mbox, adap->pf, 0, 1,
 				    &param, &val, 30000);
+	if (ret)
+		return ret;
 
 	/* If we have version number support, then check to see that the new
 	 * firmware got loaded properly.
drivers/net/ethernet/intel/i40e/i40e_txrx.c +1 -1
index 06987913837a..6067c8866834 100644
@@ -2669,7 +2669,7 @@ int i40e_napi_poll(struct napi_struct *napi, int budget)
 		return budget;
 	}
 
-	if (vsi->back->flags & I40E_TXR_FLAGS_WB_ON_ITR)
+	if (q_vector->tx.ring[0].flags & I40E_TXR_FLAGS_WB_ON_ITR)
 		q_vector->arm_wb_state = false;
 
 	/* Exit the polling mode, but don't re-enable interrupts if stack might
drivers/net/ethernet/intel/igb/igb_ethtool.c +5 -1
index 50f61b18ae1e..de2c39436fe0 100644
@@ -2997,11 +2997,15 @@ static int igb_add_ethtool_nfc_entry(struct igb_adapter *adapter,
 	if (err)
 		goto err_out_w_lock;
 
-	igb_update_ethtool_nfc_entry(adapter, input, input->sw_idx);
+	err = igb_update_ethtool_nfc_entry(adapter, input, input->sw_idx);
+	if (err)
+		goto err_out_input_filter;
 
 	spin_unlock(&adapter->nfc_lock);
 	return 0;
 
+err_out_input_filter:
+	igb_erase_filter(adapter, input);
 err_out_w_lock:
 	spin_unlock(&adapter->nfc_lock);
 err_out:
drivers/net/ethernet/intel/igc/igc_ethtool.c +25 -10
index 0a4e7f5f292a..a307b737dd0c 100644
@@ -1768,7 +1768,7 @@ static int igc_set_link_ksettings(struct net_device *netdev,
 {
 	struct igc_adapter *adapter = netdev_priv(netdev);
 	struct igc_hw *hw = &adapter->hw;
-	u32 advertising;
+	u16 advertised = 0;
 
 	/* When adapter in resetting mode, autoneg/speed/duplex
 	 * cannot be changed
@@ -1794,18 +1794,33 @@ static int igc_set_link_ksettings(struct net_device *netdev,
 	while (test_and_set_bit(__IGC_RESETTING, &adapter->state))
 		usleep_range(1000, 2000);
 
-	ethtool_convert_link_mode_to_legacy_u32(&advertising,
-						cmd->link_modes.advertising);
-	/* Converting to legacy u32 drops ETHTOOL_LINK_MODE_2500baseT_Full_BIT.
-	 * We have to check this and convert it to ADVERTISE_2500_FULL
-	 * (aka ETHTOOL_LINK_MODE_2500baseX_Full_BIT) explicitly.
-	 */
-	if (ethtool_link_ksettings_test_link_mode(cmd, advertising, 2500baseT_Full))
-		advertising |= ADVERTISE_2500_FULL;
+	if (ethtool_link_ksettings_test_link_mode(cmd, advertising,
+						  2500baseT_Full))
+		advertised |= ADVERTISE_2500_FULL;
+
+	if (ethtool_link_ksettings_test_link_mode(cmd, advertising,
+						  1000baseT_Full))
+		advertised |= ADVERTISE_1000_FULL;
+
+	if (ethtool_link_ksettings_test_link_mode(cmd, advertising,
+						  100baseT_Full))
+		advertised |= ADVERTISE_100_FULL;
+
+	if (ethtool_link_ksettings_test_link_mode(cmd, advertising,
+						  100baseT_Half))
+		advertised |= ADVERTISE_100_HALF;
+
+	if (ethtool_link_ksettings_test_link_mode(cmd, advertising,
+						  10baseT_Full))
+		advertised |= ADVERTISE_10_FULL;
+
+	if (ethtool_link_ksettings_test_link_mode(cmd, advertising,
+						  10baseT_Half))
+		advertised |= ADVERTISE_10_HALF;
 
 	if (cmd->base.autoneg == AUTONEG_ENABLE) {
 		hw->mac.autoneg = 1;
-		hw->phy.autoneg_advertised = advertising;
+		hw->phy.autoneg_advertised = advertised;
 		if (adapter->fc_autoneg)
 			hw->fc.requested_mode = igc_fc_default;
 	} else {
drivers/net/ethernet/realtek/r8169_main.c +2 -2
index 8d2b184ff575..fca2dbdd37af 100644
@@ -6031,7 +6031,7 @@ static void rtl_tx(struct net_device *dev, struct rtl8169_private *tp,
 		struct ring_info *tx_skb = tp->tx_skb + entry;
 		u32 status;
 
-		status = le32_to_cpu(tp->TxDescArray[entry].opts1);
+		status = le32_to_cpu(READ_ONCE(tp->TxDescArray[entry].opts1));
 		if (status & DescOwn)
 			break;
 
@@ -6114,7 +6114,7 @@ static int rtl_rx(struct net_device *dev, struct rtl8169_private *tp, u32 budget
 		struct RxDesc *desc = tp->RxDescArray + entry;
 		u32 status;
 
-		status = le32_to_cpu(desc->opts1);
+		status = le32_to_cpu(READ_ONCE(desc->opts1));
 		if (status & DescOwn)
 			break;
 
drivers/net/ethernet/toshiba/ps3_gelic_wireless.c +1 -1
index 2db546b27ee0..411b2a6091c9 100644
@@ -1217,7 +1217,7 @@ static int gelic_wl_set_encodeext(struct net_device *netdev,
 		key_index = wl->current_key;
 
 	if (!enc->length && (ext->ext_flags & IW_ENCODE_EXT_SET_TX_KEY)) {
-		/* reques to change default key index */
+		/* request to change default key index */
 		pr_debug("%s: request to change default key to %d\n",
 			 __func__, key_index);
 		wl->current_key = key_index;
drivers/net/gtp.c +3 -2
index 0409afe9a53d..c2e649a4f1bf 100644
@@ -544,8 +544,9 @@ static int gtp_build_skb_ip4(struct sk_buff *skb, struct net_device *dev,
 
 	rt->dst.ops->update_pmtu(&rt->dst, NULL, skb, mtu, false);
 
-	if (!skb_is_gso(skb) && (iph->frag_off & htons(IP_DF)) &&
-	    mtu < ntohs(iph->tot_len)) {
+	if (iph->frag_off & htons(IP_DF) &&
+	    ((!skb_is_gso(skb) && skb->len > mtu) ||
+	     (skb_is_gso(skb) && !skb_gso_validate_network_len(skb, mtu)))) {
 		netdev_dbg(dev, "packet too big, fragmentation needed\n");
 		icmp_ndo_send(skb, ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED,
 			      htonl(mtu));
drivers/net/ieee802154/adf7242.c +3 -2
index cb29da961e12..179e3e42b5f0 100644
@@ -1162,9 +1162,10 @@ static int adf7242_stats_show(struct seq_file *file, void *offset)
 
 static void adf7242_debugfs_init(struct adf7242_local *lp)
 {
-	char debugfs_dir_name[DNAME_INLINE_LEN + 1] = "adf7242-";
+	char debugfs_dir_name[DNAME_INLINE_LEN + 1];
 
-	strncat(debugfs_dir_name, dev_name(&lp->spi->dev), DNAME_INLINE_LEN);
+	snprintf(debugfs_dir_name, sizeof(debugfs_dir_name),
+		 "adf7242-%s", dev_name(&lp->spi->dev));
 
 	lp->debugfs_root = debugfs_create_dir(debugfs_dir_name, NULL);
 
drivers/net/usb/r8152.c +7 -3
index a19f0431e6f9..472b02bcfcbf 100644
@@ -850,7 +850,7 @@ int get_registers(struct r8152 *tp, u16 value, u16 index, u16 size, void *data)
 
 	ret = usb_control_msg(tp->udev, usb_rcvctrlpipe(tp->udev, 0),
 			      RTL8152_REQ_GET_REGS, RTL8152_REQT_READ,
-			      value, index, tmp, size, 500);
+			      value, index, tmp, size, USB_CTRL_GET_TIMEOUT);
 	if (ret < 0)
 		memset(data, 0xff, size);
 	else
@@ -873,7 +873,7 @@ int set_registers(struct r8152 *tp, u16 value, u16 index, u16 size, void *data)
 
 	ret = usb_control_msg(tp->udev, usb_sndctrlpipe(tp->udev, 0),
 			      RTL8152_REQ_SET_REGS, RTL8152_REQT_WRITE,
-			      value, index, tmp, size, 500);
+			      value, index, tmp, size, USB_CTRL_SET_TIMEOUT);
 
 	kfree(tmp);
 
@@ -5584,7 +5584,8 @@ static u8 rtl_get_version(struct usb_interface *intf)
 
 	ret = usb_control_msg(udev, usb_rcvctrlpipe(udev, 0),
 			      RTL8152_REQ_GET_REGS, RTL8152_REQT_READ,
-			      PLA_TCR0, MCU_TYPE_PLA, tmp, sizeof(*tmp), 500);
+			      PLA_TCR0, MCU_TYPE_PLA, tmp, sizeof(*tmp),
+			      USB_CTRL_GET_TIMEOUT);
 	if (ret > 0)
 		ocp_data = (__le32_to_cpu(*tmp) >> 16) & VERSION_MASK;
 
@@ -5778,6 +5779,9 @@ static int rtl8152_probe(struct usb_interface *intf,
 
 out1:
 	tasklet_kill(&tp->tx_tl);
+	cancel_delayed_work_sync(&tp->hw_phy_work);
+	if (tp->rtl_ops.unload)
+		tp->rtl_ops.unload(tp);
 	usb_set_intfdata(intf, NULL);
 out:
 	free_netdev(netdev);
drivers/nvme/target/tcp.c +26 -24

41 lines not on this page · raw message

drivers/nvmem/imx-ocotp.c +3 -3
index fc40555ca4cd..3297ced943ea 100644

Lines of this file are not shown. View the raw message.

drivers/pci/quirks.c +5 -3
index 73260bd21727..780223694c00 100644

Lines of this file are not shown. View the raw message.

drivers/platform/mellanox/mlxbf-tmfifo.c +11 -10
index 194f3205e559..767f4406e55f 100644

Lines of this file are not shown. View the raw message.

drivers/platform/x86/asus-wmi.h +1 -1
index 4f31b68642a0..6faf213f687a 100644

Lines of this file are not shown. View the raw message.

drivers/rpmsg/qcom_glink_native.c +1 -0
index f65db95e78aa..2dea1e7487bb 100644

Lines of this file are not shown. View the raw message.

drivers/rpmsg/rpmsg_core.c +33 -4
index c1d4990beab0..865d977668cc 100644

Lines of this file are not shown. View the raw message.

drivers/rpmsg/rpmsg_internal.h +1 -4
index 3fc83cd50e98..f305279e2e24 100644

Lines of this file are not shown. View the raw message.

drivers/scsi/mpt3sas/mpt3sas_scsih.c +3 -1
index 044a00edb545..4731e464dfb9 100644

Lines of this file are not shown. View the raw message.

drivers/spi/spi-npcm-fiu.c +3 -2
index 1e770d673905..cc4e29cd86da 100644

Lines of this file are not shown. View the raw message.

drivers/tty/serial/8250/8250_pci.c +119 -3

122 lines not on this page · raw message

drivers/usb/storage/unusual_cypress.h +1 -1
index fb99e526cd48..7f7534098d53 100644

Lines of this file are not shown. View the raw message.

drivers/video/fbdev/aty/atyfb_base.c +4 -0
index 6dda5d885a03..bb9ecf12e763 100644

Lines of this file are not shown. View the raw message.

drivers/video/fbdev/uvesafb.c +1 -1
index 7d3af1d19ad3..115653ba761c 100644

Lines of this file are not shown. View the raw message.

drivers/virtio/virtio_balloon.c +5 -1
index 1e444826a66e..4c44bbe1ae7c 100644

Lines of this file are not shown. View the raw message.

drivers/virtio/virtio_mmio.c +14 -5
index aee8b5ce8b63..db1015db07b5 100644

Lines of this file are not shown. View the raw message.

fs/cifs/smbdirect.c +12 -2
index 2f2a1d980cdf..0842a1af0b98 100644

Lines of this file are not shown. View the raw message.

fs/ext4/mballoc.c +22 -29

51 lines not on this page · raw message

fs/ext4/mballoc.h +14 -0
index 88c98f17e3d9..4e442bad6d73 100644

Lines of this file are not shown. View the raw message.

fs/f2fs/gc.c +2 -1
index 939be9df0207..d26b3fe38bd9 100644

Lines of this file are not shown. View the raw message.

fs/nfsd/vfs.c +6 -6
index b6f4b552c9af..6aa968bee0ce 100644

Lines of this file are not shown. View the raw message.

include/linux/device.h +2 -0
index c7be3a8073ec..af4ecbf88910 100644

Lines of this file are not shown. View the raw message.

include/linux/pci_ids.h +1 -0
index d35000669db5..fcacf2334704 100644

Lines of this file are not shown. View the raw message.

include/linux/platform_device.h +5 -1
index 569f446502be..c7bd8a1a6097 100644

Lines of this file are not shown. View the raw message.

include/linux/rpmsg.h +12 -2
index a68972b097b7..267533fecbdd 100644

Lines of this file are not shown. View the raw message.

include/uapi/linux/gtp.h +1 -1
index c7d66755d212..78bd62014efd 100644

Lines of this file are not shown. View the raw message.

kernel/events/core.c +2 -1
index 884cb4aaf342..cd32c7e55568 100644

Lines of this file are not shown. View the raw message.

lib/kobject.c +10 -2
index c4025a880d75..6666c48f125c 100644

Lines of this file are not shown. View the raw message.

net/core/neighbour.c +35 -32

67 lines not on this page · raw message

net/ipv4/tcp_input.c +5 -4
index ec3c23adbab4..c3f227c4c356 100644

Lines of this file are not shown. View the raw message.

net/netfilter/nfnetlink_log.c +1 -1
index f087baa95b07..80c09070ea9f 100644

Lines of this file are not shown. View the raw message.

sound/soc/codecs/rt5645.c +2 -0
index a66e93a3af74..9fda0e5548dc 100644

Lines of this file are not shown. View the raw message.

tools/testing/selftests/ftrace/test.d/kprobe/kprobe_non_uniq_symbol.tc new file +13 -0
new file mode 100644
index 000000000000..bc9514428dba

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.