aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq40xx
diff options
context:
space:
mode:
authorThomas Nixon <tom@tomn.co.uk>2023-03-26 10:19:21 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2023-04-02 22:07:26 +0200
commit354ad1084a074392e72d61e68e9bdbf16b4b774b (patch)
tree2e7381ca2e6d90296e372cab6eb9d19534ea90c0 /target/linux/ipq40xx
parent6035401f46461bcbe4f0a78d6a751f9ae09557ae (diff)
downloadupstream-354ad1084a074392e72d61e68e9bdbf16b4b774b.tar.gz
upstream-354ad1084a074392e72d61e68e9bdbf16b4b774b.tar.bz2
upstream-354ad1084a074392e72d61e68e9bdbf16b4b774b.zip
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)
Diffstat (limited to 'target/linux/ipq40xx')
0 files changed, 0 insertions, 0 deletions