diff options
author | Jonas Gorski <jonas.gorski@gmail.com> | 2017-02-01 12:11:07 +0100 |
---|---|---|
committer | Jonas Gorski <jonas.gorski@gmail.com> | 2017-02-10 10:51:09 +0100 |
commit | f49efcd325d57a202bf50e7f59bca00e980d61f9 (patch) | |
tree | a5c08d72b77d03066cf577a0797e94f003e65b89 /target/linux | |
parent | 921cecbdf859df4a8df4e1005ce58e1c9672d6a8 (diff) | |
download | upstream-f49efcd325d57a202bf50e7f59bca00e980d61f9.tar.gz upstream-f49efcd325d57a202bf50e7f59bca00e980d61f9.tar.bz2 upstream-f49efcd325d57a202bf50e7f59bca00e980d61f9.zip |
brcm63xx: do a full reset phy cycle
Make sure we do a proper reset of the phy, if the phy reset is defined.
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/brcm63xx/patches-4.4/381-net-bcm63xx_enet-fully-reset-ephy.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/target/linux/brcm63xx/patches-4.4/381-net-bcm63xx_enet-fully-reset-ephy.patch b/target/linux/brcm63xx/patches-4.4/381-net-bcm63xx_enet-fully-reset-ephy.patch new file mode 100644 index 0000000000..dc9e3c1344 --- /dev/null +++ b/target/linux/brcm63xx/patches-4.4/381-net-bcm63xx_enet-fully-reset-ephy.patch @@ -0,0 +1,28 @@ +From: Jonas Gorski <jonas.gorski@gmail.com> +Subject: [PATCH] net: bcm63xx_enet: fully reset ephy + +Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com> +--- + drivers/net/ethernet/broadcom/bcm63xx_enet.c | 4 ++-- + 1 file changed, 2 insertions(+), , 1 deletions(-) + +--- a/drivers/net/ethernet/broadcom/bcm63xx_enet.c ++++ b/drivers/net/ethernet/broadcom/bcm63xx_enet.c +@@ -2857,7 +2857,7 @@ static int bcm_enet_shared_probe(struct + + memset(bcm_enet_shared_base, 0, sizeof(bcm_enet_shared_base)); + +- ephy_reset = devm_gpiod_get_optional(&pdev->dev, "ephy-reset", GPIOD_ASIS); ++ ephy_reset = devm_gpiod_get_optional(&pdev->dev, "ephy-reset", GPIOD_OUT_HIGH); + if (IS_ERR(ephy_reset)) + return PTR_ERR(ephy_reset); + +@@ -2871,7 +2871,7 @@ static int bcm_enet_shared_probe(struct + memcpy(bcm_enet_shared_base, p, sizeof(bcm_enet_shared_base)); + + if (ephy_reset) +- gpiod_direction_output(ephy_reset, 0); ++ gpiod_set_value(ephy_reset, 0); + + return 0; + } |