]> git.baikalelectronics.ru Git - uboot.git/commit
spi: synquacer: simplify tx completion checking
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Tue, 17 May 2022 08:41:39 +0000 (17:41 +0900)
committerTom Rini <trini@konsulko.com>
Fri, 10 Jun 2022 17:37:32 +0000 (13:37 -0400)
commit044cfe1e2d92d6dfbe98fff4a24d6f6fe22571f0
tree5e5e53f7ec2e17ec8785f3dfd914b03638a44da2
parent35b36284eaffab2c48f43402f2a112922fa54afe
spi: synquacer: simplify tx completion checking

There is a TX-FIFO and Shift Register empty(TFES) status
bit in spi controller. This commit checks the TFES bit
to wait the TX transfer completes.

Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Signed-off-by: Satoru Okamoto <okamoto.satoru@socionext.com>
Acked-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/spi/spi-synquacer.c