]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
r8152: remove a netif_carrier_off in rtl8152_open function
authorhayeswang <hayeswang@realtek.com>
Thu, 7 Jul 2016 07:09:19 +0000 (15:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 Jul 2016 21:48:05 +0000 (17:48 -0400)
commitc79262f3f8e06e75e960ff45b48b3c12b2d6b709
tree06ee4b0939a5d661e7073d7a132a4f51f1483a04
parentb1648066b41f01057e2b802f71410bddae8dce45
r8152: remove a netif_carrier_off in rtl8152_open function

After commit 90186af404ad ("r8152: fix lockup when runtime PM is enabled"),
the autoresume wouldn't start the device before rtl8152_open() is finished.
Therefore, we don't have to reset the linking status before and after
autoresume. That is, one of netif_carrier_off() in rtl8152_open() could be
removed.

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