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 D881834C818; Tue, 6 Jan 2026 17:27:13 +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=1767720433; cv=none; b=C9NS7dejKcBsSvIXAbc/PY5eVWQzvoJp/ANPjENBvgVLfbsu/Fx0q/Zflcvm2KuLaj8/8MpAQ0ceZx56EJjVtm6+ToB17D5TXcshZf3VGq8UxPa/gYWvmGTr05IcFlukgyzeF0KcdUb5iMQMOHgubtLX+/FOyxcJYgD7CcANNPM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767720433; c=relaxed/simple; bh=BsV18arQV8AkNizj4UkpwnmdeqdmQgk7WbhtETmbe/w=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=mUeblzj0MF8CmuYYuwqG/5nE4BCsdpUiBfzVcWjqdx8jfQGFtc/7qQ4xKWIe1+ypIbWNd11jKj9wglrdPr4cnL0YeqX4JtXbH6F0j/asQ/qsscm/oSBi/nOBVg5Me0AseULPWmhacnYn4vNGw8XyTOVdxtSFeXhoo9jQrmL1tj8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Zr4fq520; 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="Zr4fq520" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 05B48C116C6; Tue, 6 Jan 2026 17:27:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1767720433; bh=BsV18arQV8AkNizj4UkpwnmdeqdmQgk7WbhtETmbe/w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Zr4fq520BOKK3Eq0B5s5N9tf1WsWUzNrcv0rqK9ddrw5DvZykuEdFdQZYefZ/Ofp0 hAGd1jdFxQdy487BQPWIH2YEVdMMwrLyqQdSnr5E/yQjSnkAxqJ1DHngplUICBnKvJ 8fJR5nTRnt1GCbcwHRJeZMo+63QBQUIa3k3riON4= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?Ren=C3=A9=20Rebe?= , Heiner Kallweit , Jakub Kicinski Subject: [PATCH 6.12 235/567] r8169: fix RTL8117 Wake-on-Lan in DASH mode Date: Tue, 6 Jan 2026 18:00:17 +0100 Message-ID: <20260106170500.013714783@linuxfoundation.org> X-Mailer: git-send-email 2.52.0 In-Reply-To: <20260106170451.332875001@linuxfoundation.org> References: <20260106170451.332875001@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ From: René Rebe commit dd75c723ef566f7f009c047f47e0eee95fe348ab upstream. Wake-on-Lan does currently not work for r8169 in DASH mode, e.g. the ASUS Pro WS X570-ACE with RTL8168fp/RTL8117. Fix by not returning early in rtl_prepare_power_down when dash_enabled. While this fixes WoL, it still kills the OOB RTL8117 remote management BMC connection. Fix by not calling rtl8168_driver_stop if WoL is enabled. Fixes: 065c27c184d6 ("r8169: phy power ops") Signed-off-by: René Rebe Cc: stable@vger.kernel.org Reviewed-by: Heiner Kallweit Link: https://patch.msgid.link/20251202.194137.1647877804487085954.rene@exactco.de Signed-off-by: Jakub Kicinski Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/realtek/r8169_main.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) --- a/drivers/net/ethernet/realtek/r8169_main.c +++ b/drivers/net/ethernet/realtek/r8169_main.c @@ -2724,9 +2724,6 @@ static void rtl_wol_enable_rx(struct rtl static void rtl_prepare_power_down(struct rtl8169_private *tp) { - if (tp->dash_enabled) - return; - if (tp->mac_version == RTL_GIGA_MAC_VER_32 || tp->mac_version == RTL_GIGA_MAC_VER_33) rtl_ephy_write(tp, 0x19, 0xff64); @@ -4862,7 +4859,7 @@ static void rtl8169_down(struct rtl8169_ rtl_disable_exit_l1(tp); rtl_prepare_power_down(tp); - if (tp->dash_type != RTL_DASH_NONE) + if (tp->dash_type != RTL_DASH_NONE && !tp->saved_wolopts) rtl8168_driver_stop(tp); }