]> 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)
commit7b22a20621d5d7e35213085a38fc60ea1ac52c4e
tree6c765935b7dffb9f0a4a4cb1234e5c6bb72cb1f1
parent26a93d15a4845a629343e20849ea4a95a3c900af
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