]> git.baikalelectronics.ru Git - kernel.git/commit
phy: usb: s2 WoL wakeup_count not incremented for USB->Eth devices
authorAl Cooper <alcooperx@gmail.com>
Wed, 5 Oct 2022 21:30:14 +0000 (14:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:32:48 +0000 (13:32 +0100)
commit66a5f78918d0be18901fea0d9e1602528f387d22
treed382be25b8dd36c203f35617a27d3eb7cd4afb52
parent46c89662d91a25a71b70adbadeaa509cc7787b1d
phy: usb: s2 WoL wakeup_count not incremented for USB->Eth devices

[ Upstream commit 6008b985582b5257a7ab2621bbbb461f0ee975a0 ]

The PHY's "wakeup_count" is not incrementing when waking from
WoL. The wakeup count can be found in sysfs at:
/sys/bus/platform/devices/rdb/*.usb-phy/power/wakeup_count.
The problem is that the system wakup event handler was being passed
the wrong "device" by the PHY driver.

Fixes: 5ec6838e2024 ("phy: usb: Add "wake on" functionality")
Signed-off-by: Al Cooper <alcooperx@gmail.com>
Signed-off-by: Justin Chen <justinpopo6@gmail.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/1665005418-15807-3-git-send-email-justinpopo6@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/phy/broadcom/phy-brcm-usb.c