projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a146fb
)
ACPI / gpio: do not fall back to parsing _CRS when we get a deferral
author
Dmitry Torokhov
<
[email protected]
>
Thu, 23 Mar 2017 20:21:38 +0000
(13:21 -0700)
committer
Linus Walleij
<
[email protected]
>
Thu, 30 Mar 2017 09:08:46 +0000
(11:08 +0200)
If, while locating GPIOs by name, we get probe deferral, we should
immediately report it to caller rather than trying to fall back to parsing
unnamed GPIOs from _CRS block.
Cc:
[email protected]
Signed-off-by: Dmitry Torokhov <
[email protected]
>
Acked-by: Mika Westerberg <
[email protected]
>
Acked-and-Tested-by: Hans de Goede <
[email protected]
>
Signed-off-by: Linus Walleij <
[email protected]
>
drivers/gpio/gpiolib-acpi.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpiolib-acpi.c
b/drivers/gpio/gpiolib-acpi.c
index 8e318f449d23b4d01d01789572fd48bde55d9b15..2bd683e2be022dd2c9a2b5c6cd7285d4c68e69eb 100644
(file)
--- a/
drivers/gpio/gpiolib-acpi.c
+++ b/
drivers/gpio/gpiolib-acpi.c
@@
-577,8
+577,10
@@
struct gpio_desc *acpi_find_gpio(struct device *dev,
}
desc = acpi_get_gpiod_by_index(adev, propname, idx, &info);
- if (!IS_ERR(desc)
|| (PTR_ERR(desc) == -EPROBE_DEFER)
)
+ if (!IS_ERR(desc))
break;
+ if (PTR_ERR(desc) == -EPROBE_DEFER)
+ return ERR_CAST(desc);
}
/* Then from plain _CRS GPIOs */