You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/target/linux/lantiq
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>
7 years ago
..
ase lantiq: add Amazon-SE subtarget 7 years ago
base-files treewide: populate boardname and model earlier 7 years ago
dts lantiq: fix typo in EASY80920.dtsi 7 years ago
falcon build: remove mips16 feature flag from target makefiles 8 years ago
files/firmware/lantiq move GPHY FW blobs to non versioned folder 11 years ago
image lantiq: add Netgear DM200 support 7 years ago
patches-4.4 lantiq: fix sleep with spinlock held in xrx200 network driver 7 years ago
patches-4.9 lantiq: fix sleep with spinlock held in xrx200 network driver 7 years ago
xrx200 lantiq: add support for kernel 4.9 7 years ago
xway build: remove mips16 feature flag from target makefiles 8 years ago
xway_legacy build: remove mips16 feature flag from target makefiles 8 years ago
Makefile lantiq: add Amazon-SE subtarget 7 years ago
config-4.4 kernel: cleanup CONFIG_SCHED_HRTICK 7 years ago
config-4.9 kernel: cleanup CONFIG_SCHED_HRTICK 7 years ago
modules.mk fix i2c-lantiq module 12 years ago