From patchwork Tue Jun 16 09:09:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hayes Wang X-Patchwork-Id: 242482 List-Id: U-Boot discussion From: hayeswang at realtek.com (Hayes Wang) Date: Tue, 16 Jun 2020 17:09:45 +0800 Subject: [PATCH u-boot v2 2/4] eth/r8152: reset PHY after setting it In-Reply-To: <1394712342-15778-382-Taiwan-albertk@realtek.com> References: <1394712342-15778-382-Taiwan-albertk@realtek.com> Message-ID: <1394712342-15778-384-Taiwan-albertk@realtek.com> Some settings of PHY have to work after resetting PHY. Signed-off-by: Hayes Wang --- drivers/usb/eth/r8152.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/eth/r8152.c b/drivers/usb/eth/r8152.c index 041cb22dd3..7f988543a1 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)