]> git.dujemihanovic.xyz Git - u-boot.git/commit
spi: soft_spi: Parse cs-gpios only if num-chipselects is not <0>
authorMichael Polyntsov <michael.polyntsov@iopsys.eu>
Wed, 31 Jul 2024 04:11:29 +0000 (08:11 +0400)
committerTom Rini <trini@konsulko.com>
Thu, 15 Aug 2024 17:28:47 +0000 (11:28 -0600)
commit3d7f19459745262c54472e9c909b9e2f8daacea2
treebc54818b3a4ea9f75ee24a4bb15c75d2825d2b41
parent1d662a64a74115fa2897d07c3294b903afcafe6e
spi: soft_spi: Parse cs-gpios only if num-chipselects is not <0>

Some boards don't have chipselect lines for leds so cs-gpios is not
specified in the dts leading to probing error. Fix it by making
behavior similar to the one in Linux, parse num-chipselects and
if it is zero, ignore cs-gpios.

Signed-off-by: Michael Polyntsov <michael.polyntsov@iopsys.eu>
Signed-off-by: Mikhail Kshevetskiy <mikhail.kshevetskiy@iopsys.eu>
doc/device-tree-bindings/spi/soft-spi.txt
drivers/spi/soft_spi.c