OSDN Git Service

r8152: adjust the flow of power cut for RTL8153B
authorHayes Wang <hayeswang@realtek.com>
Wed, 3 Feb 2021 09:14:29 +0000 (17:14 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 5 Feb 2021 04:36:51 +0000 (20:36 -0800)
commit80fd850b31f09263ad175b2f640d5c5c6f76ed41
tree0bad8fc23071c0048f7d123701424179c71f133b
parenta08c0d309d8c078d22717d815cf9853f6f2c07bd
r8152: adjust the flow of power cut for RTL8153B

For runtime resuming, the RTL8153B may be resumed from the state
of power cut, when enabling the feature of UPS. Then, the PHY
would be reset, so it is necessary to be initailized again.

Besides, the USB_U1U2_TIMER also has to be set again, so I move
it from r8153b_init() to r8153b_hw_phy_cfg().

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/usb/r8152.c