diff options
author | Hayes Wang <hayeswang@realtek.com> | 2020-06-16 17:09:45 +0800 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2020-09-01 14:47:36 +0200 |
commit | 16b9417b6ac64e8942064960a7e9b6fc8502a0a3 (patch) | |
tree | 3e5cb02e17deb4746b4d387d7ac6d3f7f6c2b694 /drivers | |
parent | d74a76234f1bbbb9c6266ebe55ce53be99a6df19 (diff) |
eth/r8152: reset PHY after setting it
Some settings of PHY have to work after resetting PHY.
Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/eth/r8152.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |