File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1120,6 +1120,9 @@ static void __handle_link_change(struct usbnet *dev)
1120
1120
if (!test_bit (EVENT_DEV_OPEN , & dev -> flags ))
1121
1121
return ;
1122
1122
1123
+ if (test_and_clear_bit (EVENT_LINK_CARRIER_ON , & dev -> flags ))
1124
+ netif_carrier_on (dev -> net );
1125
+
1123
1126
if (!netif_carrier_ok (dev -> net )) {
1124
1127
/* kill URBs for reading packets to save bus bandwidth */
1125
1128
unlink_urbs (dev , & dev -> rxq );
@@ -1129,9 +1132,6 @@ static void __handle_link_change(struct usbnet *dev)
1129
1132
* tx queue is stopped by netcore after link becomes off
1130
1133
*/
1131
1134
} else {
1132
- if (test_and_clear_bit (EVENT_LINK_CARRIER_ON , & dev -> flags ))
1133
- netif_carrier_on (dev -> net );
1134
-
1135
1135
/* submitting URBs for reading packets */
1136
1136
queue_work (system_bh_wq , & dev -> bh_work );
1137
1137
}
You can’t perform that action at this time.
0 commit comments