🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #10386

Re: [PATCH net-next] net: phy: air_an8801: add WAKE_PHY Wake-on-LAN support

#10386
From: Andrew Lunn
Date: Tue, 03 Nov 2026 13:29
26 lines
9397 bytes
On Mon, Nov 02, 2026 at 09:29:03PM +0800, Tommy Shih wrote:
> The AN8801R can wake up the system on a link change, but the driver
> only supports WAKE_MAGIC and always masks the link change event on
> suspend. Supporting WAKE_PHY allows the system to be woken up when
> the cable is plugged in or unplugged.
> 
> Add WAKE_PHY support:
> - Keep the link change interrupt enabled, and only disable it on
>   suspend when the PHY is set to wake up by magic packet only.
> - Report a wakeup event when a link change interrupt is seen with
>   WAKE_PHY enabled.
> - Enable device wakeup when either WAKE_MAGIC or WAKE_PHY is set.

This is an interesting definition of WAKE_PHY.

Are there any other drivers which use change in link to trigger a
wake?

How are you using it? Is your device plugged into a manages switch and
you are making the managed switch down/up the link?

Is the hardware capable of waking just on link up? Is there any point
waking up if the link goes down?

	Andrew
Technical Details
Message-ID: <7e1ac14e-b306-4921-84fa-8266b3263f2d@lunn.ch>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355639-linux-kernel-netdev=dewy.ru
References: <20261102132903.713908-1-tommy.shih92@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-355639-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next] net: phy: air_an8801: add WAKE_PHY Wake-on-LAN
 support
Date: Tue, 3 Nov 2026 14:29:14 +0100
Organization: Usenet Network
Message-ID: <7e1ac14e-b306-4921-84fa-8266b3263f2d@lunn.ch>
References: <20261102132903.713908-1-tommy.shih92@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="3175784"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:J3hZwPrPxC4nAnODavuNIri2zfA= sha256:5keH+4R2/COhK4lBbmKD2bTkRqFFnZ3/d8VCghRffxY=
	sha1:YfDqSoqrUp7t605QGDGZY8yrKS0= sha256:tcDfNhKyAOUHr9+an2h49S3oiJifCp1JRFgvJ4LagAs=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id D52EB1128B2; Tue,  3 Nov 2026 16:39:32 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.151
X-Spam-Status: No, score=-3.151 tagged_above=-9999 required=6.31
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=lunn.ch
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id 9-Hr1DKUn81F;
	Tue,  3 Nov 2026 16:39:30 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-355639-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 52B1E1128A8; Tue,  3 Nov 2026 16:39:21 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 85E2460ADB6; Tue,  3 Nov 2026 13:30:13 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793712576;
	b=0iKwFbLEVjjQ4aD2BYcp+5+YNeVGpofKEkhr6e/YGMxBxzg19iqXkwISEhoAGBCkKNNf
	 GHzCWV8pEsGHhPjZKpEefKiDxTkj2Sch6xrj3WACy7N6G4LxXGmfpfgmHPU21iD7HxdCW
	 3cl8lM7+i9v6OZ0/7udBYNdcTW5q+kLtojAxYRqVX6Y1NFruU5if+D2aRHW8NMuHgVESG
	 XlaXGJyM5umk6CkqAJ222WluY61yVnYH62DW/suS7Ua0BBe67zz5OwbzUT3CrGEsn/E2g
	 iRllIjd6wbz8iE19kKqAQNoQFBCrI6KunwYaBKr1KlPiC+wjIGFrNkPxMo4M+buJ+Kw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793712576;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=sBRxABsGWngd6btHwZmIdWWCCLbRUAlEpuoe37Pf0NM=;
	b=EuxVtdX7TOEDjO1qSvphLytJCcNOfGLQS8e3gbHG1xt6BbnwOioi4C+oI4XQocvngGn3
	 v3LhOjkTw9UBQg16HeeHcmEnZzU0M0ekKafyeSl7M40hurv6XPVfoXAn+SPQ941qaOz7f
	 0EAgWmg02eUiwMMrQvp6bCs3gzcyhvPNjNrsOuCjgCz2dUCyH/GCe+JonaKRrZxccI0WT
	 3W3p4YRWRq/mjyRwb7ngG7JfE9/9SMq8JLfqQjHb0aawGBCSx8BpbrTTySeq+nY3Zc1X6
	 jcWzf8gDHmKm/Ilr0P7GMBk0wHV0szNGRs0QicMoZuds603yYOuINmXmbBXmgRM4U+w==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=DDPkZomE;
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 42055606A33B;
	Tue,  3 Nov 2026 13:29:36 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key, unprotected) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=DDPkZomE
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793712570;
	b=PFoDdAqjGOQEjKiPjAlrxL5MbUZ9qvTvO+IY9HmESHR2YDivOYhMB9uGpwCis5m24GzZ
	 +vtzdW7ThBoVdLq+AyEFO2lQmQfYJl2PNE8NcrmajTVH926CjBUjPwPjCrAMm367kG8M3
	 JPUoIemV/sMOYFojsAK3gz5YQ2QNA0603ZEW52ijwSevGq1s9mCDvnO6FqiA+qmQEa/g4
	 DJyRTdL57R5gsooK99DCqwbyhCuQUR0Eo/Mv7oe8qWQwfZkT6ptCum47dcsSAkqUirZ0K
	 o8ZeIeALjwBCbxRcpdf14nUQo3eUPb8dSYms1WWg0/zpbUTOkqj3NBYJyScPu+hRGTQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793712570;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=sBRxABsGWngd6btHwZmIdWWCCLbRUAlEpuoe37Pf0NM=;
	b=nN5wgwa5h6WInUj59Utd2UTuiKUt0o/Qe+33tCEfQwbCYjJYDvYL3Zy+CNTZfXjWCtqU
	 e+Rmtg4z9XXJB4eU5icB0/E/Jc4o99gNl6kGXhDLz1GZSckyiQomv/1XDdKqoVnJK6BEB
	 FaI8mVqgc5daN8onjqQ/kB/hNv+Ff5RcI0uc+sSB0jKanZJ/Dqc08yxoDW1BYSjQiP9Kz
	 42WAf7BVfJmPG9m14qQXWBuzSmrm2gxlUelD86x8lVz/EsX7MmZTkyAJkgxdYLyK8/p8F
	 0qghJ6ecEz9HBWiQ8DGCoyAetNNE1suyO0MRpgZR4mWDbe4BUstoC1wTRjbrVQpN5qg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=DDPkZomE;
	arc=none smtp.remote-ip=156.67.10.101
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id EC24D606A327;
	Tue,  3 Nov 2026 13:29:29 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org EC24D606A327
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch;
	s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version:
	References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject:
	Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:
	Content-ID:Content-Description:Content-Disposition:In-Reply-To:References;
	bh=sBRxABsGWngd6btHwZmIdWWCCLbRUAlEpuoe37Pf0NM=; b=DDPkZomEVo62gJ6lPLeISbztjq
	NCA82tMmpvOHSxiGzvmCzmUFOTet2uIiiFDbSQKMflSvHktFIL+CDGK0Tk2U8yN9nc0IGWfOXFl8x
	2q6402X1Mbdmf/Q9ayF4rfKVN1GXNR+TPeoxqKQ/SVCyErlIbD5Xkzal/M33iWzg9gUY=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xOEZe-00E3ue-M5; Tue, 03 Nov 2026 14:29:14 +0100
X-Cc: netdev@vger.kernel.org,
	Louis-Alexis Eyraud <louisalexis.eyraud@collabora.com>,
	AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>,
	Daniel Golle <daniel@makrotopia.org>,
	"Lucien . Jheng" <lucienzx159@gmail.com>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Heiner Kallweit <hkallweit1@gmail.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Russell King <linux@armlinux.org.uk>, linux-kernel@vger.kernel.org
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261102132903.713908-1-tommy.shih92@gmail.com>