spi: cadence-quadspi: Add flag for direct mode writes
authorDhruva Gole <d-gole@ti.com>
Wed, 25 Jan 2023 08:10:21 +0000 (13:40 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 14 Feb 2023 13:25:24 +0000 (13:25 +0000)
commite8c51b164355c1d519a4b8ad0873f131035d26b7
tree13ea47abf10ee6931ac016299fbfab13467873c9
parentd4f43a2d05faf7febb839edb2e9e8f85dfb9d2d2
spi: cadence-quadspi: Add flag for direct mode writes

Create new flag inorder to avoid playing with use_direct_mode
flag currently being used throughout the driver.
Disable DAC write if auto polling is disabled or CQSPI_DISABLE_DAC_MODE
is set.

Signed-off-by: Dhruva Gole <d-gole@ti.com>
Link: https://lore.kernel.org/r/20230125081023.1573712-3-d-gole@ti.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-cadence-quadspi.c