spi: spi-geni-qcom: enable SPI_CONTROLLER_MUST_TX for GPI DMA mode
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Thu, 29 Jun 2023 09:58:47 +0000 (12:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jul 2023 14:22:01 +0000 (16:22 +0200)
commita252547c8920a5b790d609b28d1702a01ea8ff57
tree6ad1ca65200ede27ce4dec58ffc1516618e7450f
parent946edfb7d436df99e02d3d18bc8972b5542354d9
spi: spi-geni-qcom: enable SPI_CONTROLLER_MUST_TX for GPI DMA mode

[ Upstream commit d10005837be83906bbd2078c3b4f9dfcbd6c95b6 ]

The GPI DMA mode requires for TX DMA to be prepared. Force SPI core to
provide TX buffer even if the caller didn't provide one by setting the
SPI_CONTROLLER_MUST_TX flag.

Fixes: b59c122484ec ("spi: spi-geni-qcom: Add support for GPI dma")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20230629095847.3648597-1-dmitry.baryshkov@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/spi/spi-geni-qcom.c