openwrt/target/linux/lantiq
Thomas Nixon 354ad1084a lantiq: nand: don't yield while holding spinlock
The nand driver normally while waiting for the device to become ready;
this is normally fine, but xway_nand holds the ebu_lock spinlock, and
this can cause lockups if other threads which use ebu_lock are
interleaved. Fix this by waiting instead of polling.

This mainly showed up as crashes in ath9k_pci_owl_loader (see
https://github.com/openwrt/openwrt/issues/9829 ), but turning on
spinlock debugging shows this happening in other places too.

This doesn't seem to measurably impact boot time.

Tested on bt_homehub-v5a with 5.10 and 5.15.

Signed-off-by: Thomas Nixon <tom@tomn.co.uk>
[Add commit description into patch]
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit d3b47909b1)
2023-04-02 22:07:26 +02:00
..
ase lantiq: drop kernel 5.4 support 2021-11-27 21:45:04 +01:00
base-files lantiq: xrx200: switch the subtarget to the mainline DSA driver 2021-06-26 16:05:36 +02:00
falcon lantiq: drop kernel 5.4 support 2021-11-27 21:45:04 +01:00
files lantiq: xrx200: Fix wifi LED on o2 box 6431 2023-01-20 16:14:22 +01:00
image lantiq: vr9: include usb driver for fritz 7430 2022-12-22 00:14:30 +01:00
patches-5.10 lantiq: nand: don't yield while holding spinlock 2023-04-02 22:07:26 +02:00
xrx200 lantiq: xrx200: Fix wifi LED on o2 box 6431 2023-01-20 16:14:22 +01:00
xway lantiq: xway: disable unused switch drivers 2022-05-15 11:17:31 +02:00
xway_legacy lantiq: xway_legacy: disable unused switches 2021-11-30 22:29:24 +01:00
config-5.10 generic: enable CRYPTO_LIB_BLAKE2S[_X86|_ARM] 2022-06-27 22:34:07 +02:00
Makefile lantiq: switch to kernel 5.10 2021-11-27 21:40:12 +01:00
modules.mk target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00