brcm63xx: fix ephy reset gpio lookup
authorJonas Gorski <jonas.gorski@gmail.com>
Sat, 13 Jan 2018 17:41:14 +0000 (18:41 +0100)
committerJonas Gorski <jonas.gorski@gmail.com>
Sun, 11 Feb 2018 22:14:56 +0000 (23:14 +0100)
The lookup needs to be called just "reset" for the common code.

Fixes: 054c0d4e3193 ("brcm63xx: backport mdio-bus reset gpio support")
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
target/linux/brcm63xx/patches-4.4/377-MIPS-BCM63XX-register-lookup-for-ephy-reset-gpio.patch

index 2259b024abbf2c84af09e4b327da0df16b0a863b..e277bea139e66931bf3fde4ac2f74ed310d83364 100644 (file)
@@ -87,7 +87,7 @@ Signed-off-by: Jonas Gorski <jogo@openwrt.org>
 +
 +      ephy_reset.table[0].chip_label = gpio_chip_labels[hw_gpio / 32];
 +      ephy_reset.table[0].chip_hwnum = hw_gpio % 32;
-+      ephy_reset.table[0].con_id = "ephy-reset";
++      ephy_reset.table[0].con_id = "reset";
 +      ephy_reset.table[0].flags = flags;
 +
 +      gpiod_add_lookup_table(&ephy_reset);