[PATCH 2/2] spi: soft_spi: Parse cs-gpios only if num-chipselects is not <0>

2024-07-02 Thread Mikhail Kshevetskiy
From: Michael Polyntsov 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 Signed-off

[PATCH 2/2] spi: soft_spi: Parse cs-gpios only if num-chipselects is not <0>

2024-06-27 Thread Mikhail Kshevetskiy
From: Michael Polyntsov 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 Signed-off