From: Hayes Wang Date: Tue, 16 Jun 2020 09:09:45 +0000 (+0800) Subject: eth/r8152: reset PHY after setting it X-Git-Url: http://git.dujemihanovic.xyz/html/%7B%7B%20%28.OutputFormats.Get?a=commitdiff_plain;h=16b9417b6ac64e8942064960a7e9b6fc8502a0a3;p=u-boot.git eth/r8152: reset PHY after setting it Some settings of PHY have to work after resetting PHY. Signed-off-by: Hayes Wang --- diff --git a/drivers/usb/eth/r8152.c b/drivers/usb/eth/r8152.c index 8cefacbd7e..421293407f 100644 --- a/drivers/usb/eth/r8152.c +++ b/drivers/usb/eth/r8152.c @@ -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)