spi: fsl_spi: Convert to transfer_one
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Thu, 18 Aug 2022 13:38:37 +0000 (15:38 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 14 Sep 2022 17:34:53 +0000 (18:34 +0100)
commit64ca1a034f00bf6366701df0af9194a6425d5406
tree5d2b30d3be5447b7232b2ad7be35dd376bbe90b7
parent83e5335bf58b090b1fc0b30cb1a1fedf07f0c217
spi: fsl_spi: Convert to transfer_one

Let the core handle all the chipselect bakery and replace
transfer_one_message() by transfer_one() and prepare_message().

At the time being, there is fsl_spi_cs_control() to handle
chipselects. That function handles both GPIO and non-GPIO
chipselects. The GPIO chipselects will now be handled by
the core directly, so only handle non-GPIO chipselects and
hook it to ->set_cs

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Link: https://lore.kernel.org/r/753266abafe81722d86c3ddb8bac8ef1cb00fe8c.1660829841.git.christophe.leroy@csgroup.eu
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-spi.c