]> www.infradead.org Git - users/jedix/linux-maple.git/commit
spi: rockchip-sfc: Optimize the judgment mechanism completed by the controller
authorJon Lin <jon.lin@rock-chips.com>
Tue, 3 Dec 2024 01:35:13 +0000 (09:35 +0800)
committerMark Brown <broonie@kernel.org>
Wed, 4 Dec 2024 13:44:17 +0000 (13:44 +0000)
commit577f1cf76ceedb5fbdc9aca4f712b21864ac15ee
treeb972bb3fbf46fe3b7e31f045d8e9383151268813
parentba257e7006867ab1844a6449bdfa3b5aea94fe29
spi: rockchip-sfc: Optimize the judgment mechanism completed by the controller

There is very little data left in fifo, and the controller will
complete the transmission in a short period of time, so
use readl_poll_timeout() for busy wait 10us to accelerate response.

Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
Link: https://patch.msgid.link/20241203013513.2628810-1-jon.lin@rock-chips.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip-sfc.c