]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite004072215ac23d07b6068b19a418ea35a7ce679
tree97abe4357d91d81169d11709a97bdc7834eb3c82
parentd27df6b0976dfef917fb1575294e869062347d79
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: 634ceb9ea110 ("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