]> git.baikalelectronics.ru Git - kernel.git/commit
spi: Assume GPIO CS active high in ACPI case
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 11 May 2021 14:09:12 +0000 (17:09 +0300)
committerMark Brown <broonie@kernel.org>
Wed, 12 May 2021 12:01:44 +0000 (13:01 +0100)
commit0f4cbf5af5510c51e7360abda22284f525c9b312
treed27ec41009d6318f17c14a877645adb8cf504dcf
parent72231284ac7527d1b700bf117d3ae4c02a2a0b6e
spi: Assume GPIO CS active high in ACPI case

Currently GPIO CS handling, when descriptors are in use, doesn't
take into consideration that in ACPI case the default polarity
is Active High and can't be altered. Instead we have to use the
per-chip definition provided by SPISerialBus() resource.

Fixes: edacd062417e ("spi: fix client driver breakages when using GPIO descriptors")
Cc: Liguang Zhang <zhangliguang@linux.alibaba.com>
Cc: Jay Fang <f.fangjian@huawei.com>
Cc: Sven Van Asbroeck <thesven73@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Xin Hao <xhao@linux.alibaba.com>
Link: https://lore.kernel.org/r/20210511140912.30757-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi.c