[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230707171225.3cb6e354@kernel.org>
Date: Fri, 7 Jul 2023 17:12:25 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Alexandru Gagniuc <alexandru.gagniuc@...com>
Cc: linux-usb@...r.kernel.org, netdev@...r.kernel.org,
davem@...emloft.net, edumazet@...gle.com, pabeni@...hat.com,
hayeswang@...ltek.com, jflf_kernel@....com, bjorn@...k.no,
svenva@...omium.org, linux-kernel@...r.kernel.org,
eniac-xw.zhang@...com, stable@...r.kernel.org
Subject: Re: [PATCH] r8152: Suspend USB device before shutdown when WoL is
enabled
On Thu, 6 Jul 2023 18:28:58 +0000 Alexandru Gagniuc wrote:
> For Wake-on-LAN to work from S5 (shutdown), the USB link must be put
> in U3 state. If it is not, and the host "disappears", the chip will
> no longer respond to WoL triggers.
>
> To resolve this, add a notifier block and register it as a reboot
> notifier. When WoL is enabled, work through the usb_device struct to
> get to the suspend function. Calling this function puts the link in
> the correct state for WoL to function.
Would be good to hear from USB experts on this one, to an outside seems
like something that the bus should be doing, possibly based on some
driver opt-in..
> Cc: stable@...r.kernel.org
> Signed-off-by: Alexandru Gagniuc <alexandru.gagniuc@...com>
Please add a Fixes tag - I'm guessing it dates back to
Fixes: 21ff2e8976b1 ("r8152: support WOL")
?
--
pw-bot: cr
Powered by blists - more mailing lists