]> 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)
commitca0ee830459841fb7f72220523874a5f0d302e0c
tree97abe4357d91d81169d11709a97bdc7834eb3c82
parente306380e5eae07dd1e78d4f9363c2a03dfa69d28
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: ddf2ae797680 ("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