spi: dw: Set GPIO_SS flag to toggle Slave Select on GPIO CS
authorThor Thayer <tthayer@opensource.altera.com>
Mon, 10 Oct 2016 14:25:25 +0000 (09:25 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 11 Oct 2016 10:29:04 +0000 (12:29 +0200)
commit80b444e57948ea4bd5a89fb1f8c404ddab6c1973
treeda5bdce842dda312d02453d0a7823d1759db5747
parent6b1576aa875347c6454d911a2e001138c2cec7d5
spi: dw: Set GPIO_SS flag to toggle Slave Select on GPIO CS

The Designware SPI master requires slave selection before the transfer
can begin [1].

This patch uses the new master flag to indicate both the GPIO CS and
the internal chip select should be used.

Tested On:
    Altera CycloneV development kit
    Compile tested for build errors on x86_64 (allyesconfigs)

[1] DesignWare dw_apb_ssi Databook, Version 3.20a (page 39)

Signed-off-by: Thor Thayer <tthayer@opensource.altera.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw.c