]> git.baikalelectronics.ru Git - kernel.git/commit
r8152: fix runtime resume for linking change
authorHayes Wang <hayeswang@realtek.com>
Wed, 22 Jan 2020 08:02:05 +0000 (16:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 23 Jan 2020 10:20:57 +0000 (11:20 +0100)
commit9eaee8f6fd8df5ecc389bd1555bb67cf9b76f22e
tree6c765935b7dffb9f0a4a4cb1234e5c6bb72cb1f1
parentb1ca67e0f1e8089105b6926a2717703b6af466d4
r8152: fix runtime resume for linking change

Fix the runtime resume doesn't work normally for linking change.

1. Reset the settings and status of runtime suspend.
2. Sync the linking status.
3. Poll the linking change.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c