spi: hisi-sfc-v3xx: factor out bus config and transfer functions
authorYicong Yang <yangyicong@hisilicon.com>
Thu, 24 Sep 2020 12:24:28 +0000 (20:24 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 25 Sep 2020 20:26:27 +0000 (21:26 +0100)
commitf6d2737720d6f6e5f4825b7203ad8b5cfcf9906c
treee1dbfdbe0f4dd711e285ffa1ece7c0911241e455
parent2c8af6a59744b242a193118c799a45621476f8ed
spi: hisi-sfc-v3xx: factor out bus config and transfer functions

In hisi_sfc_v3xx_generic_exec_op(), we will write the data to the buffer,
configure and start the transfer, read the data to the buffer and check
whether occurs an error. Factor out the config and transfer start codes
as individual functions, to make the process a bit clearer.

Acked-by: John Garry <john.garry@huawei.com>
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Link: https://lore.kernel.org/r/1600950270-52536-3-git-send-email-yangyicong@hisilicon.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-hisi-sfc-v3xx.c