spi: gpio: Fix spi-gpio to correctly implement sck-idle-input
authorNick Hollinghurst <nick.hollinghurst@raspberrypi.com>
Wed, 1 Mar 2023 17:57:11 +0000 (17:57 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 19 Feb 2024 11:34:50 +0000 (11:34 +0000)
commit650a0dbab024f72d78a053c93878b60b6d47040b
treeaa0d394d6ab806f7ad7f56ae9c2830032541c5f5
parent516e55b74547815964545791d1e1bad1008de3e2
spi: gpio: Fix spi-gpio to correctly implement sck-idle-input

Formerly, if configured using DT, CS GPIOs were driven from spi.c
and it was possible for CS to be asserted (low) *before* starting
to drive SCK. CS GPIOs have been brought under control of this
driver in both ACPI and DT cases, with a fixup for GPIO polarity.

Signed-off-by: Nick Hollinghurst <nick.hollinghurst@raspberrypi.com>
drivers/spi/spi-gpio.c