spi: dw: Fix default polarity of native chipselect
authorLinus Walleij <linus.walleij@linaro.org>
Wed, 16 Jan 2019 08:21:08 +0000 (09:21 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 24 Jan 2019 19:02:58 +0000 (19:02 +0000)
commit6e0a32d6f376ea22a34ae3a8df60adafbcdb0c86
tree97abe4357d91d81169d11709a97bdc7834eb3c82
parent2df201e0067d84db5955d07cc0d7ccc3b7295aef
spi: dw: Fix default polarity of native chipselect

The DW controller also supports platforms specifying
native chipselects. When I enforce the use of high CS
for drivers opting in for using GPIO descriptors, I
inadvertedly switched the driver to also use active
high chip select for native chip selects.

As it turns out, the DW hardware driving chip selects
also thinks it is weird with active low chip selects
so all we need to do is remove an inversion in the
driver.

Cc: Jan Kotas <jank@cadence.com>
Reported-by: Jan Kotas <jank@cadence.com>
Tested-by: Jan Kotas <jank@cadence.com>
Fixes: 9400c41e77b8 ("spi: dw: Convert to use CS GPIO descriptors")
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw.c