]> git.baikalelectronics.ru Git - kernel.git/commit
r8152: Set macpassthru in reset_resume callback
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Fri, 4 Oct 2019 12:51:04 +0000 (20:51 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 5 Oct 2019 00:26:03 +0000 (17:26 -0700)
commit608162c9ec50b6bfa4291ae89cdc65d802d074a3
tree517979acca9a124b227751b2e55cec050529c344
parent12c81ea0dee6eff7ae0ee193efd1a5e9c12d29db
r8152: Set macpassthru in reset_resume callback

r8152 may fail to establish network connection after resume from system
suspend.

If the USB port connects to r8152 lost its power during system suspend,
the MAC address was written before is lost. The reason is that The MAC
address doesn't get written again in its reset_resume callback.

So let's set MAC address again in reset_resume callback. Also remove
unnecessary lock as no other locking attempt will happen during
reset_resume.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c