]> www.infradead.org Git - users/jedix/linux-maple.git/commit
usb: host: xhci-plat: allow upper layers to signal power loss
authorThéo Lebrun <theo.lebrun@bootlin.com>
Wed, 5 Feb 2025 17:36:53 +0000 (18:36 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Mar 2025 08:18:02 +0000 (09:18 +0100)
commit668cc6bc1178ac94a6ff0eba3a9e8be59f89c318
tree5d46ed02c9d8d933f09d1d056259e0aadd7751c7
parent34cca0ceab5ba34a7cfaa32bbca5eb7abb85622b
usb: host: xhci-plat: allow upper layers to signal power loss

Now that xhci_resume() exposes a power_lost boolean argument, expose
that to all xhci-plat implementations. They are free to set it from
wherever they want:
 - Their own resume() callback.
 - The xhci_plat_priv::resume_quirk() callback.

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