]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit23f901914f15921f734193e22058b46bb2a692c2
treee1dbfdbe0f4dd711e285ffa1ece7c0911241e455
parent67d3c796f0fa444225431726fee2af3c06e616ab
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