openwrtv4/target/linux/lantiq/patches-4.9
Andrea Merello b81c04382b lantiq: fix sleep with spinlock held in xrx200 network driver
In the xrx200_close() function we call napi_disable(), that could
sleep, with priv->hw->chan[i].lock held. This could lead to deadlock
and causes the kernel to complain.

Look at the code I couldn't convince myself about why we
need to protect that specific code part with the lock. IMHO there
seems no reason to protect the refcount variables, because AFAIK
ndo_close() and ndo_open() callbacks are already called with a
semaphore held. Neither I could figure out why napi_disable() have to
be called with that lock held. The only remaining code part for
which I could guess the lock is useful for is ltq_dma_close()
function call.

This patch reduces the lock to the said function call, avoiding the
sleep-with-spinlock-held situation

Signed-off-by: Andrea Merello <andrea.merello@gmail.com>
[fold into 0025-NET-MIPS-lantiq-adds-xrx200-net.patch, backport to
kernel 4.4]
Signed-off-by: Mathias Kresin <dev@kresin.me>
2017-07-20 19:10:29 +02:00
..
0001-MIPS-lantiq-add-pcie-driver.patch kernel: update kernel 4.9 to 4.9.34 2017-06-27 07:21:03 +02:00
0004-MIPS-lantiq-add-atm-hack.patch lantiq: add support for kernel 4.9 2017-02-11 23:44:13 +01:00
0008-MIPS-lantiq-backport-old-timer-code.patch lantiq: fix 0008-MIPS-lantiq-backport-old-timer-code.patch for Amazon-SE 2017-06-03 21:35:53 +02:00
0018-MTD-nand-lots-of-xrx200-fixes.patch lantiq: add support for kernel 4.9 2017-02-11 23:44:13 +01:00
0020-MTD-lantiq-handle-NO_XIP-on-cfi0001-flash.patch lantiq: add support for kernel 4.9 2017-02-11 23:44:13 +01:00
0022-MTD-m25p80-allow-loading-mtd-name-from-OF.patch lantiq: add support for kernel 4.9 2017-02-11 23:44:13 +01:00
0023-NET-PHY-adds-driver-for-lantiq-PHY11G.patch lantiq: add support for kernel 4.9 2017-02-11 23:44:13 +01:00
0024-NET-lantiq-adds-PHY11G-firmware-blobs.patch lantiq: add support for kernel 4.9 2017-02-11 23:44:13 +01:00
0025-NET-MIPS-lantiq-adds-xrx200-net.patch lantiq: fix sleep with spinlock held in xrx200 network driver 2017-07-20 19:10:29 +02:00
0026-NET-multi-phy-support.patch kernel: update kernel 4.9 to 4.9.29 2017-05-21 21:51:22 +02:00
0028-NET-lantiq-various-etop-fixes.patch lantiq: add support for kernel 4.9 2017-02-11 23:44:13 +01:00
0030-GPIO-add-named-gpio-exports.patch lantiq: add support for kernel 4.9 2017-02-11 23:44:13 +01:00
0031-I2C-MIPS-lantiq-add-FALC-ON-i2c-bus-master.patch lantiq: add support for kernel 4.9 2017-02-11 23:44:13 +01:00
0035-owrt-lantiq-wifi-and-ethernet-eeprom-handling.patch lantiq: fix 0008-MIPS-lantiq-backport-old-timer-code.patch for Amazon-SE 2017-06-03 21:35:53 +02:00
0040-USB-DWC2-enable-usb-power-gpio.patch lantiq: add support for kernel 4.9 2017-02-11 23:44:13 +01:00
0042-arch-mips-increase-io_space_limit.patch lantiq: add support for kernel 4.9 2017-02-11 23:44:13 +01:00
0044-pinctrl-xway-fix-copy-paste-error-in-xrx200_grps.patch lantiq: pinctrl: xway: fix copy/paste error in xrx200_grps 2017-05-29 09:51:19 +02:00
0047-poweroff.patch lantiq: add support for kernel 4.9 2017-02-11 23:44:13 +01:00
0050-MIPS-Lantiq-Fix-cascaded-IRQ-setup.patch lantiq: add support for kernel 4.9 2017-02-11 23:44:13 +01:00
0061-USB-DWC2-make-the-lantiq-settings-match-vendor-drive.patch lantiq: add support for kernel 4.9 2017-02-11 23:44:13 +01:00
0065-MIPS-lantiq-improve-USB-initialization.patch lantiq: add support for kernel 4.9 2017-02-11 23:44:13 +01:00
0090-spi-lantiq-ssc-add-support-for-Lantiq-SSC-SPI-contro.patch lantiq: update spi driver to upstream version 2017-03-26 15:58:17 +02:00
0091-spi-lantiq-ssc-fix-platform_no_drv_owner.cocci-warni.patch lantiq: update spi driver to upstream version 2017-03-26 15:58:17 +02:00
0092-spi-lantiq-ssc-add-LTQ_-prefix-to-defines.patch lantiq: update spi driver to upstream version 2017-03-26 15:58:17 +02:00
0101-find_active_root.patch kernel: update kernel 4.9 to 4.9.34 2017-06-27 07:21:03 +02:00
0151-lantiq-ifxmips_pcie-use-of.patch lantiq: fix section mismatch in PCIe driver 2017-02-12 01:29:41 +01:00
0152-lantiq-VPE.patch kernel: update kernel 4.9 to 4.9.30 2017-05-27 00:48:37 +02:00
0154-lantiq-pci-bar11mask-fix.patch lantiq: add support for kernel 4.9 2017-02-11 23:44:13 +01:00
0155-lantiq-VPE-nosmp.patch lantiq: vr9 fxs support: fixed check of SMP state within vpe-mt.c 2017-03-17 08:58:50 +01:00
0160-owrt-lantiq-multiple-flash.patch lantiq: add support for kernel 4.9 2017-02-11 23:44:13 +01:00
0170-MIPS-lantiq-lock-DMA-register-accesses-for-SMP.patch lantiq: add support for kernel 4.9 2017-02-11 23:44:13 +01:00
0300-MTD-cfi-cmdset-0001-disable-buffered-writes.patch lantiq: add support for kernel 4.9 2017-02-11 23:44:13 +01:00
0301-xrx200-add-gphy-clk-src-device-tree-binding.patch lantiq: add support for kernel 4.9 2017-02-11 23:44:13 +01:00
0302-xrx200-add-sensors-driver.patch lantiq: add support for kernel 4.9 2017-02-11 23:44:13 +01:00