Unverified Commit c1c04cea authored by Linus Walleij's avatar Linus Walleij Committed by Mark Brown
Browse files

gpio: of: Fix logic inversion



The SPI chip selects were not properly inspected due to
a logic inversion. This made SPI GPIOs not work.

Cc: Jan Kotas <jank@cadence.com>
Reported-by: default avatarJan Kotas <jank@cadence.com>
Tested-by: default avatarJan Kotas <jank@cadence.com>
Fixes: f3186dd8 ("spi: Optionally use GPIO descriptors for CS GPIOs")
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 6046f540
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -125,7 +125,7 @@ static void of_gpio_flags_quirks(struct device_node *np,


		for_each_child_of_node(np, child) {
		for_each_child_of_node(np, child) {
			ret = of_property_read_u32(child, "reg", &cs);
			ret = of_property_read_u32(child, "reg", &cs);
			if (!ret)
			if (ret)
				continue;
				continue;
			if (cs == index) {
			if (cs == index) {
				/*
				/*