android_kernel_xiaomi_sm8450/drivers/phy/broadcom
Al Cooper c2a9843342 phy: usb: s2 WoL wakeup_count not incremented for USB->Eth devices
[ Upstream commit f7fc5b7090372fc4dd7798c874635ca41b8ba733 ]

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: f1c0db40a3 ("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>
2023-01-14 10:16:03 +01:00
..
Kconfig phy: bcm63xx-usbh: Add BCM63xx USBH driver 2020-07-21 22:59:58 +05:30
Makefile phy: bcm63xx-usbh: Add BCM63xx USBH driver 2020-07-21 22:59:58 +05:30
phy-bcm63xx-usbh.c phy: bcm63xx-usbh: Add BCM63xx USBH driver 2020-07-21 22:59:58 +05:30
phy-bcm-cygnus-pcie.c phy: Convert to using %pOFn instead of device_node.name 2018-09-25 16:10:07 +05:30
phy-bcm-kona-usb2.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 282 2019-06-05 17:36:37 +02:00
phy-bcm-ns2-pcie.c
phy-bcm-ns2-usbdrd.c phy: phy-bcm-ns2-usbdrd: convert to readl_poll_timeout_atomic() 2020-09-08 09:56:10 +05:30
phy-bcm-ns-usb2.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
phy-bcm-ns-usb3.c phy: phy-bcm-ns-usb3: convert to readl_poll_timeout_atomic() 2020-09-08 09:56:10 +05:30
phy-bcm-sr-pcie.c phy: bcm-sr-pcie: Change operation when PIPEMUX=1 2019-02-07 11:11:06 +05:30
phy-bcm-sr-usb.c phy: phy-bcm-sr-usb: convert to readl_poll_timeout_atomic() 2020-09-08 09:56:11 +05:30
phy-brcm-sata.c phy: brcm-sata: Correct MDIO operations for 40nm platforms 2020-02-21 14:01:47 +05:30
phy-brcm-usb-init-synopsys.c phy: usb: Fix incorrect clearing of tca_drv_sel bit in SETUP reg for 7211 2020-10-28 21:40:56 +05:30
phy-brcm-usb-init.c phy: usb: Add support for wake and USB low power mode for 7211 S2/S5 2020-01-08 12:58:06 +05:30
phy-brcm-usb-init.h phy: usb: Fix misuse of IS_ENABLED 2021-06-16 12:01:43 +02:00
phy-brcm-usb.c phy: usb: s2 WoL wakeup_count not incremented for USB->Eth devices 2023-01-14 10:16:03 +01:00