]> www.infradead.org Git - users/dwmw2/linux.git/commit
qca_spi: Improve reset mechanism
authorStefan Wahren <wahrenst@gmx.net>
Mon, 7 Oct 2024 11:33:12 +0000 (13:33 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 10 Oct 2024 01:00:27 +0000 (18:00 -0700)
commitc81cdba6406f1b638188d881d1a6cd5ef112442b
treef41f4ecdd8845d28694d317c4f928df6007f8c69
parent234b526896a949a183271b10e4cd9addc10900c1
qca_spi: Improve reset mechanism

The commit 92717c2356cb ("net: qca_spi: Avoid high load if QCA7000 is not
available") fixed the high load in case the QCA7000 is not available
but introduced sync delays for some corner cases like buffer errors.

So add the reset requests to the atomics flags, which are polled by
the SPI thread. As a result reset requests and sync state are now
separated. This has the nice benefit to make the code easier to
understand.

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Link: https://patch.msgid.link/20241007113312.38728-3-wahrenst@gmx.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/qualcomm/qca_debug.c
drivers/net/ethernet/qualcomm/qca_spi.c
drivers/net/ethernet/qualcomm/qca_spi.h