]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf3622feb6c5190faf25f469c56152467d298ac76
tree0bad8fc23071c0048f7d123701424179c71f133b
parentfbddad5438f9fb74328764a865c5a4337c7b91ec
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