]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
spi: hisi-kunpeng: Add timeout warning in FIFO flush function
authorPei Xiao <xiaopei01@kylinos.cn>
Thu, 19 Mar 2026 03:06:42 +0000 (11:06 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 23 Mar 2026 22:02:40 +0000 (22:02 +0000)
commit579a49aaab0814c55595cddf0be9651e37972f6a
tree5949d959930158086bc6cac42286da84e579e0a8
parent9f61daf2c2debe9f5cf4e1a4471e56a89a6fe45a
spi: hisi-kunpeng: Add timeout warning in FIFO flush function

When flushing the FIFO, the driver waits for the busy flag to clear
with a timeout. Change the loop condition to use pre-decrement (--limit)
instead of post-decrement (limit--) so that warning message can show. Add a
ratelimited warning message to log SPI busy timeout events, aiding in
debugging.

Signed-off-by: Pei Xiao <xiaopei01@kylinos.cn>
Link: https://patch.msgid.link/dad95ce42fb5677edfed32bc1f9b3e54df2cf8de.1773889292.git.xiaopei01@kylinos.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-hisi-kunpeng.c