]> Git Repo - linux.git/commit
spi: dw: Fix default polarity of native chipselect
authorLinus Walleij <[email protected]>
Wed, 16 Jan 2019 08:21:08 +0000 (09:21 +0100)
committerMark Brown <[email protected]>
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 <[email protected]>
Reported-by: Jan Kotas <[email protected]>
Tested-by: Jan Kotas <[email protected]>
Fixes: 9400c41e77b8 ("spi: dw: Convert to use CS GPIO descriptors")
Signed-off-by: Linus Walleij <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
drivers/spi/spi-dw.c
This page took 0.056768 seconds and 4 git commands to generate.