summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpiolib-of.c
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2019-06-12 10:47:15 +0300
committerLinus Walleij <linus.walleij@linaro.org>2019-06-12 10:47:15 +0300
commit74a36e4a038b417bb579e86bb769fddf674ca1a1 (patch)
treeb89a5c9a09c32075a51170785ab674b9c69e4818 /drivers/gpio/gpiolib-of.c
parent9d373acadaf676e3733ba57c7294ec60e9a358a9 (diff)
parentedc1ef3ff34202e6ffdd51644356bca033d729f8 (diff)
downloadlinux-74a36e4a038b417bb579e86bb769fddf674ca1a1.tar.xz
Merge branch 'ib-snps-reset-gpio' into devel
Diffstat (limited to 'drivers/gpio/gpiolib-of.c')
-rw-r--r--drivers/gpio/gpiolib-of.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c
index 00deb885409c..a8f02f551d6b 100644
--- a/drivers/gpio/gpiolib-of.c
+++ b/drivers/gpio/gpiolib-of.c
@@ -158,6 +158,12 @@ static void of_gpio_flags_quirks(struct device_node *np,
}
}
}
+
+ /* Legacy handling of stmmac's active-low PHY reset line */
+ if (IS_ENABLED(CONFIG_STMMAC_ETH) &&
+ !strcmp(propname, "snps,reset-gpio") &&
+ of_property_read_bool(np, "snps,reset-active-low"))
+ *flags |= OF_GPIO_ACTIVE_LOW;
}
/**