From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 21E4713B2A4; Wed, 17 Sep 2025 12:50:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758113443; cv=none; b=mHH7Iiv/TfQrl6kP3kK59mgpRBX/mSN2KveWs/SPM30hdCCUzKtib2JT0BpEVWXhooiIJMhtb20+M5yCRiNi4Sgg/wh/qIpFZMVKVlODOTYINLHzd7rS1Wqd9mqpoGJ8sj2SL9CGIRyVHhZoT6WT3/i85d9IQDtGOPQF2l+BwaE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758113443; c=relaxed/simple; bh=f3q97DFLoUk7ZVl2uSf9oMNoIUH14CSF25bbuoqV6bU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=rJGEKKn50v4mYsKN/MtZvsR3bKraZdzlahEqbKQ5Y0ZSNNOgSZaFdhXwFhi5Qm7VEdozUBLX2fBFVRZpmkVXi0gRhh3/U5JkaQEkg9xGQULepU1ksFY+4Sz3/rB2qfm1z/XP4/3BNNXLqGubBOQXugOfLBfB+F3h5HoCebK6xHI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KH9+u3/b; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="KH9+u3/b" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45669C4CEF0; Wed, 17 Sep 2025 12:50:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758113442; bh=f3q97DFLoUk7ZVl2uSf9oMNoIUH14CSF25bbuoqV6bU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KH9+u3/b4wHPAAxO3TFTeWOySYWo4wPPBL2Vhdk4zJruCtRJTi+nRRA3imwH+5Ezf Av2f421TxfzAU51H80kWQbXb9Ni7BxB2EqYS4r7cdF7e87mHtcdzspTTgqxVCo2zNp tH4oxrLYZhfsmSNtxU+t5ilj3J+6wlQqQiimQAvk= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Marek Szyprowski , Jakub Kicinski , Paolo Abeni Subject: [PATCH 6.12 088/140] Revert "net: usb: asix: ax88772: drop phylink use in PM to avoid MDIO runtime PM wakeups" Date: Wed, 17 Sep 2025 14:34:20 +0200 Message-ID: <20250917123346.457930313@linuxfoundation.org> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250917123344.315037637@linuxfoundation.org> References: <20250917123344.315037637@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ 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)