]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
eth/r8152: reset PHY after setting it
authorHayes Wang <hayeswang@realtek.com>
Tue, 16 Jun 2020 09:09:45 +0000 (17:09 +0800)
committerMarek Vasut <marex@denx.de>
Tue, 1 Sep 2020 12:47:36 +0000 (14:47 +0200)
Some settings of PHY have to work after resetting PHY.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
drivers/usb/eth/r8152.c

index 8cefacbd7ecef3ee8cc163c7aac677248c91f096..421293407f6a85496d45aab4e3f17af5aaee884f 100644 (file)
@@ -947,7 +947,7 @@ static int rtl8152_set_speed(struct r8152 *tp, u8 autoneg, u16 speed, u8 duplex)
                        return -EINVAL;
                }
 
-               bmcr = BMCR_ANENABLE | BMCR_ANRESTART;
+               bmcr = BMCR_ANENABLE | BMCR_ANRESTART | BMCR_RESET;
        }
 
        if (tp->supports_gmii)