aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/patches-4.4/738-net-phy-at803x-only-the-AT8030-needs-a-hardware-rese.patch
diff options
context:
space:
mode:
authorÁlvaro Fernández Rojas <noltari@gmail.com>2016-12-02 11:43:17 +0100
committerÁlvaro Fernández Rojas <noltari@gmail.com>2016-12-04 12:31:30 +0100
commit758ef7aa992492ecb29a0cd5a30f5255ccdc9ea7 (patch)
tree363312eb4549450df93d885ec4e36682b780391c /target/linux/generic/patches-4.4/738-net-phy-at803x-only-the-AT8030-needs-a-hardware-rese.patch
parent8cb476c8531f7bae1bcaa96124cc5fb66bab71f6 (diff)
downloadupstream-758ef7aa992492ecb29a0cd5a30f5255ccdc9ea7.tar.gz
upstream-758ef7aa992492ecb29a0cd5a30f5255ccdc9ea7.tar.bz2
upstream-758ef7aa992492ecb29a0cd5a30f5255ccdc9ea7.zip
kernel: bump to 4.4.36
Refresh patches on all 4.4 supported platforms. Compile & run tested: brcm2708/bcm2710 - Raspberry Pi 3 Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
Diffstat (limited to 'target/linux/generic/patches-4.4/738-net-phy-at803x-only-the-AT8030-needs-a-hardware-rese.patch')
-rw-r--r--target/linux/generic/patches-4.4/738-net-phy-at803x-only-the-AT8030-needs-a-hardware-rese.patch30
1 files changed, 17 insertions, 13 deletions
diff --git a/target/linux/generic/patches-4.4/738-net-phy-at803x-only-the-AT8030-needs-a-hardware-rese.patch b/target/linux/generic/patches-4.4/738-net-phy-at803x-only-the-AT8030-needs-a-hardware-rese.patch
index c49d53ee1c..4e6baac0c3 100644
--- a/target/linux/generic/patches-4.4/738-net-phy-at803x-only-the-AT8030-needs-a-hardware-rese.patch
+++ b/target/linux/generic/patches-4.4/738-net-phy-at803x-only-the-AT8030-needs-a-hardware-rese.patch
@@ -25,31 +25,35 @@ Signed-off-by: David S. Miller <davem@davemloft.net>
- if (phydev->state == PHY_NOLINK) {
- if (priv->gpiod_reset && !priv->phy_reset) {
- struct at803x_context context;
-+ if (phydev->state == PHY_NOLINK) {
-+ if (priv->gpiod_reset && !priv->phy_reset) {
-+ struct at803x_context context;
-
+-
- at803x_context_save(phydev, &context);
-+ at803x_context_save(phydev, &context);
-
+-
- gpiod_set_value(priv->gpiod_reset, 1);
- msleep(1);
- gpiod_set_value(priv->gpiod_reset, 0);
- msleep(1);
-+ gpiod_set_value(priv->gpiod_reset, 1);
-+ msleep(1);
-+ gpiod_set_value(priv->gpiod_reset, 0);
-+ msleep(1);
-
+-
- at803x_context_restore(phydev, &context);
-+ at803x_context_restore(phydev, &context);
-
+-
- dev_dbg(&phydev->dev, "%s(): phy was reset\n",
- __func__);
- priv->phy_reset = true;
- }
- } else {
- priv->phy_reset = false;
++ if (phydev->state == PHY_NOLINK) {
++ if (priv->gpiod_reset && !priv->phy_reset) {
++ struct at803x_context context;
++
++ at803x_context_save(phydev, &context);
++
++ gpiod_set_value(priv->gpiod_reset, 1);
++ msleep(1);
++ gpiod_set_value(priv->gpiod_reset, 0);
++ msleep(1);
++
++ at803x_context_restore(phydev, &context);
++
+ dev_dbg(&phydev->dev, "%s(): phy was reset\n",
+ __func__);
+ priv->phy_reset = true;