spi: amd: Don't wait for a write-only transfer to finish
authorLucas Tanure <tanureal@opensource.cirrus.com>
Fri, 10 Sep 2021 11:15:29 +0000 (12:15 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 13 Sep 2021 01:00:32 +0000 (02:00 +0100)
commit777a2cbbaf1c6685ace7e2ce846796e9425ab320
tree747a28bc5d2720a1d1cf2a891b428f97a9ece739
parent3b02d2890bc5eb974346cc287e1732f62a096598
spi: amd: Don't wait for a write-only transfer to finish

Return from a write-only transfer without waiting for
it to finish
But wait before a new transfer as the previous may
still happening and also wait before reading the data
from the FIFO

Signed-off-by: Lucas Tanure <tanureal@opensource.cirrus.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210910111529.12539-4-tanureal@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-amd.c