]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: host: cdns3: forward lost power information to xhci
authorThéo Lebrun <theo.lebrun@bootlin.com>
Wed, 5 Feb 2025 17:36:54 +0000 (18:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Mar 2025 08:18:03 +0000 (09:18 +0100)
commit3a85c10115407588fad696d6c121d54cd5ba5d72
treefb7ab79f9988f5e337da577b7ffc5a0e9398f48e
parent668cc6bc1178ac94a6ff0eba3a9e8be59f89c318
usb: host: cdns3: forward lost power information to xhci

cdns3-plat can know if power was lost across system-wide suspend.
Forward that information:

 - Grab the lost_power bool from cdns_role_driver::resume(). Store it
   into the power_lost field in struct xhci_plat_priv.

 - xhci-plat will call xhci_resume() with that value (ORed to whether we
   are in a hibernation restore).

Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>
Link: https://lore.kernel.org/r/20250205-s2r-cdns-v7-9-13658a271c3c@bootlin.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/host.c