--- zzzz-none-000/linux-4.9.279/drivers/net/usb/asix_devices.c 2021-08-08 06:38:54.000000000 +0000 +++ puma7-atom-6591-750/linux-4.9.279/drivers/net/usb/asix_devices.c 2023-02-08 11:43:42.000000000 +0000 @@ -18,6 +18,10 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, see . */ +/* + * Includes Intel Corporation's changes/modifications dated: 2018. + * Changed/modified portions - Copyright (c) 2018 , Intel Corporation. + */ #include "asix.h" @@ -619,6 +623,7 @@ asix_mdio_read_nopm(dev->net, dev->mii.phy_id, MII_ADVERTISE); } +#if 0 /* was replaced for usbnet_suspend */ static int asix_suspend(struct usb_interface *intf, pm_message_t message) { struct usbnet *dev = usb_get_intfdata(intf); @@ -629,6 +634,7 @@ return usbnet_suspend(intf, message); } +#endif static void ax88772_restore_phy(struct usbnet *dev) { @@ -673,6 +679,7 @@ ax88772_restore_phy(dev); } +#if 0 /* was replaced for usbnet_resume */ static int asix_resume(struct usb_interface *intf) { struct usbnet *dev = usb_get_intfdata(intf); @@ -683,6 +690,7 @@ return usbnet_resume(intf); } +#endif static int ax88772_bind(struct usbnet *dev, struct usb_interface *intf) { @@ -1374,9 +1382,14 @@ .name = DRIVER_NAME, .id_table = products, .probe = usbnet_probe, - .suspend = asix_suspend, - .resume = asix_resume, - .reset_resume = asix_resume, + /* + * Changing .suspend, .resume and .reset_resume + * from asix implementation to standard usbnet implementation + * for compability 3.12 and 4.9 kernel versions. + */ + .suspend = usbnet_suspend, + .resume = usbnet_resume, + .reset_resume = usbnet_resume, .disconnect = usbnet_disconnect, .supports_autosuspend = 1, .disable_hub_initiated_lpm = 1,