openwrt/target/linux/lantiq
Thomas Nixon d3b47909b1 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>
2023-04-02 17:08:45 +02:00
..
ase lantiq: copy Linux 5.10 files in preparation for Linux 5.15 support 2022-10-22 19:44:45 +02:00
base-files lantiq: xrx200: switch the subtarget to the mainline DSA driver 2021-06-26 16:05:36 +02:00
falcon lantiq: copy Linux 5.10 files in preparation for Linux 5.15 support 2022-10-22 19:44:45 +02:00
files lantiq: xrx200: convert FritzBox 7360v2's wifi to nvmem 2023-03-26 16:39:37 +02:00
image lantiq: xway: add support for AVM FRITZ!Box 7330 2023-03-27 00:31:47 +02:00
patches-5.10 lantiq: nand: don't yield while holding spinlock 2023-04-02 17:08:45 +02:00
patches-5.15 lantiq: nand: don't yield while holding spinlock 2023-04-02 17:08:45 +02:00
xrx200 lantiq: xrx200: convert FritzBox 7360v2's wifi to nvmem 2023-03-26 16:39:37 +02:00
xway lantiq: xway: kernel: enable SMP support 2022-11-18 20:27:52 +01:00
xway_legacy lantiq: copy Linux 5.10 files in preparation for Linux 5.15 support 2022-10-22 19:44:45 +02:00
config-5.10 kernel: Activate CONFIG_GPIOLIB in generic configuration 2022-08-10 21:36:17 +02:00
config-5.15 lantiq: copy Linux 5.10 files in preparation for Linux 5.15 support 2022-10-22 19:44:45 +02:00
Makefile lantiq: Add Linux 5.15 as testing kernel version 2022-10-22 19:44:46 +02:00
modules.mk target: use SPDX license identifiers on Makefiles 2021-02-10 15:47:18 +01:00