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
..
2023-03-18 12:52:17 +01:00
2023-03-26 16:39:37 +02:00
2023-03-20 22:44:28 +01:00
2023-03-27 00:27:59 +02:00
2023-04-01 19:58:44 +02:00
2022-12-23 19:44:20 +01:00
2023-03-18 12:52:17 +01:00
2023-03-24 00:42:47 +01:00
2023-03-18 12:52:17 +01:00
2023-01-30 11:13:14 +01:00
2023-03-18 12:52:17 +01:00
2023-03-20 22:44:28 +01:00
2023-01-07 01:30:31 +01:00
2023-02-26 22:22:48 +01:00
2023-01-30 18:01:14 +08:00