瀏覽代碼

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>
hayeswang 9 年之前
父節點
當前提交
c79262f3f8
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      drivers/net/usb/r8152.c

+ 0 - 2
drivers/net/usb/r8152.c

@@ -3111,8 +3111,6 @@ static int rtl8152_open(struct net_device *netdev)
 	if (res)
 	if (res)
 		goto out;
 		goto out;
 
 
-	netif_carrier_off(netdev);
-
 	res = usb_autopm_get_interface(tp->intf);
 	res = usb_autopm_get_interface(tp->intf);
 	if (res < 0) {
 	if (res < 0) {
 		free_all_mem(tp);
 		free_all_mem(tp);