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 d3b47909b199b876f67a0387b5545cb73bd6b815)
2023-04-02 22:07:26 +02:00
..
2023-01-28 20:08:14 +01:00
2023-03-27 18:58:34 +02:00
2022-08-28 07:24:59 +02:00
2023-04-01 19:46:06 +02:00
2023-03-27 18:59:50 +02:00
2023-03-27 18:57:41 +02:00
2023-01-28 20:08:14 +01:00
2023-01-28 20:07:11 +01:00
2023-03-27 09:03:24 +02:00
2023-03-27 18:58:34 +02:00
2023-03-27 18:59:53 +02:00
2023-03-27 18:59:50 +02:00
2023-03-27 18:59:50 +02:00
2023-01-28 20:07:11 +01:00
2023-03-27 18:58:34 +02:00
2022-11-01 13:56:10 +01:00
2023-03-27 18:58:34 +02:00
2022-11-11 16:25:29 +02:00
2023-02-05 20:43:19 +01:00
2022-12-15 01:26:25 +01:00
2022-07-30 17:21:47 +02:00
2023-01-03 01:24:21 +01:00