]> Git Repo - linux.git/commit
spi: Fix SPI_CS_HIGH setting when using native and GPIO CS
authorGregory CLEMENT <[email protected]>
Fri, 18 Oct 2019 15:29:29 +0000 (17:29 +0200)
committerMark Brown <[email protected]>
Fri, 18 Oct 2019 17:23:43 +0000 (18:23 +0100)
commit3e5ec1db8bfee845d9f8560d1c64aeaccd586398
treefc9119f21fe58116693061ad364eb7985eb3e639
parentb2662a164f9dc48da8822e56600686d639056282
spi: Fix SPI_CS_HIGH setting when using native and GPIO CS

When improving the CS GPIO support at core level, the SPI_CS_HIGH
has been enabled for all the CS lines used for a given SPI controller.

However, the SPI framework allows to have on the same controller native
CS and GPIO CS. The native CS may not support the SPI_CS_HIGH, so they
should not be setup automatically.

With this patch the setting is done only for the CS that will use a
GPIO as CS

Fixes: f3186dd87669 ("spi: Optionally use GPIO descriptors for CS GPIOs")
Cc: <[email protected]>
Signed-off-by: Gregory CLEMENT <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
drivers/spi/spi.c
This page took 0.054524 seconds and 4 git commands to generate.