From 5dcd7eea5aec616671e889e50045783ffaff0ef2 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Mon, 15 Sep 2025 08:43:59 +0200 Subject: [PATCH] 6.16-stable patches added patches: revert-net-usb-asix-ax88772-drop-phylink-use-in-pm-to-avoid-mdio-runtime-pm-wakeups.patch --- ...-pm-to-avoid-mdio-runtime-pm-wakeups.patch | 56 +++++++++++++++++++ queue-6.16/series | 1 + 2 files changed, 57 insertions(+) create mode 100644 queue-6.16/revert-net-usb-asix-ax88772-drop-phylink-use-in-pm-to-avoid-mdio-runtime-pm-wakeups.patch diff --git a/queue-6.16/revert-net-usb-asix-ax88772-drop-phylink-use-in-pm-to-avoid-mdio-runtime-pm-wakeups.patch b/queue-6.16/revert-net-usb-asix-ax88772-drop-phylink-use-in-pm-to-avoid-mdio-runtime-pm-wakeups.patch new file mode 100644 index 0000000000..596032960d --- /dev/null +++ b/queue-6.16/revert-net-usb-asix-ax88772-drop-phylink-use-in-pm-to-avoid-mdio-runtime-pm-wakeups.patch @@ -0,0 +1,56 @@ +From 63a796558bc22ec699e4193d5c75534757ddf2e6 Mon Sep 17 00:00:00 2001 +From: Paolo Abeni +Date: Thu, 11 Sep 2025 16:33:31 +0200 +Subject: Revert "net: usb: asix: ax88772: drop phylink use in PM to avoid MDIO runtime PM wakeups" + +From: Paolo Abeni + +commit 63a796558bc22ec699e4193d5c75534757ddf2e6 upstream. + +This reverts commit 5537a4679403 ("net: usb: asix: ax88772: drop +phylink use in PM to avoid MDIO runtime PM wakeups"), it breaks +operation of asix ethernet usb dongle after system suspend-resume +cycle. + +Link: https://lore.kernel.org/all/b5ea8296-f981-445d-a09a-2f389d7f6fdd@samsung.com/ +Fixes: 5537a4679403 ("net: usb: asix: ax88772: drop phylink use in PM to avoid MDIO runtime PM wakeups") +Reported-by: Marek Szyprowski +Acked-by: Jakub Kicinski +Link: https://patch.msgid.link/2945b9dbadb8ee1fee058b19554a5cb14f1763c1.1757601118.git.pabeni@redhat.com +Signed-off-by: Paolo Abeni +Signed-off-by: Greg Kroah-Hartman +--- + drivers/net/usb/asix_devices.c | 13 +++++++++++++ + 1 file changed, 13 insertions(+) + +--- a/drivers/net/usb/asix_devices.c ++++ b/drivers/net/usb/asix_devices.c +@@ -607,8 +607,15 @@ static const struct net_device_ops ax887 + + static void ax88772_suspend(struct usbnet *dev) + { ++ struct asix_common_private *priv = dev->driver_priv; + u16 medium; + ++ if (netif_running(dev->net)) { ++ rtnl_lock(); ++ phylink_suspend(priv->phylink, false); ++ rtnl_unlock(); ++ } ++ + /* Stop MAC operation */ + medium = asix_read_medium_status(dev, 1); + medium &= ~AX_MEDIUM_RE; +@@ -637,6 +644,12 @@ static void ax88772_resume(struct usbnet + for (i = 0; i < 3; i++) + if (!priv->reset(dev, 1)) + break; ++ ++ if (netif_running(dev->net)) { ++ rtnl_lock(); ++ phylink_resume(priv->phylink); ++ rtnl_unlock(); ++ } + } + + static int asix_resume(struct usb_interface *intf) diff --git a/queue-6.16/series b/queue-6.16/series index d11813aeb4..d2168f2443 100644 --- a/queue-6.16/series +++ b/queue-6.16/series @@ -116,3 +116,4 @@ x86-cpu-topology-always-try-cpu_parse_topology_ext-on-amd-hygon.patch input-iqs7222-avoid-enabling-unused-interrupts.patch input-i8042-add-tuxedo-infinitybook-pro-gen10-amd-to-i8042-quirk-table.patch input-xpad-add-support-for-flydigi-apex-5.patch +revert-net-usb-asix-ax88772-drop-phylink-use-in-pm-to-avoid-mdio-runtime-pm-wakeups.patch -- 2.47.3