File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -607,8 +607,15 @@ static const struct net_device_ops ax88772_netdev_ops = {
607
607
608
608
static void ax88772_suspend (struct usbnet * dev )
609
609
{
610
+ struct asix_common_private * priv = dev -> driver_priv ;
610
611
u16 medium ;
611
612
613
+ if (netif_running (dev -> net )) {
614
+ rtnl_lock ();
615
+ phylink_suspend (priv -> phylink , false);
616
+ rtnl_unlock ();
617
+ }
618
+
612
619
/* Stop MAC operation */
613
620
medium = asix_read_medium_status (dev , 1 );
614
621
medium &= ~AX_MEDIUM_RE ;
@@ -637,6 +644,12 @@ static void ax88772_resume(struct usbnet *dev)
637
644
for (i = 0 ; i < 3 ; i ++ )
638
645
if (!priv -> reset (dev , 1 ))
639
646
break ;
647
+
648
+ if (netif_running (dev -> net )) {
649
+ rtnl_lock ();
650
+ phylink_resume (priv -> phylink );
651
+ rtnl_unlock ();
652
+ }
640
653
}
641
654
642
655
static int asix_resume (struct usb_interface * intf )
You can’t perform that action at this time.
0 commit comments