spi: spi-mem: fallback to using transfers when CS gpios are used
authorChris Packham <chris.packham@alliedtelesis.co.nz>
Thu, 7 Nov 2019 04:42:35 +0000 (17:42 +1300)
committerMark Brown <broonie@kernel.org>
Thu, 7 Nov 2019 13:11:18 +0000 (13:11 +0000)
commit05766050d5bd9af24dcaec6b29255a6f2b324543
tree4a13becaf069e37f8241de308126980d5a1c7068
parent27fb2313f28d8c82adace68bf49f12fe810ba58c
spi: spi-mem: fallback to using transfers when CS gpios are used

Devices with chip selects driven via GPIO are not compatible with the
spi-mem operations. Fallback to using standard spi transfers when the
device is connected with a gpio CS.

Signed-off-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Link: https://lore.kernel.org/r/20191107044235.4864-3-chris.packham@alliedtelesis.co.nz
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-mem.c