lkml.org 
[lkml]   [2022]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.15 481/530] usb: host: xhci-plat: suspend/resume clks for brcm
    Date
    From: Justin Chen <justinpopo6@gmail.com>

    [ Upstream commit c69400b09e471a3f1167adead55a808f0da6534a ]

    The xhci_plat_brcm xhci block can enter suspend with clock disabled to save
    power and re-enable them on resume. Make use of the XHCI_SUSPEND_RESUME_CLKS
    quirk to do so.

    Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
    Signed-off-by: Justin Chen <justinpopo6@gmail.com>
    Link: https://lore.kernel.org/r/1660170455-15781-3-git-send-email-justinpopo6@gmail.com
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Signed-off-by: Sasha Levin <sashal@kernel.org>
    ---
    drivers/usb/host/xhci-plat.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
    index 2687662f26b6..972a44b2a7f1 100644
    --- a/drivers/usb/host/xhci-plat.c
    +++ b/drivers/usb/host/xhci-plat.c
    @@ -134,7 +134,7 @@ static const struct xhci_plat_priv xhci_plat_renesas_rcar_gen3 = {
    };

    static const struct xhci_plat_priv xhci_plat_brcm = {
    - .quirks = XHCI_RESET_ON_RESUME,
    + .quirks = XHCI_RESET_ON_RESUME | XHCI_SUSPEND_RESUME_CLKS,
    };

    static const struct of_device_id usb_xhci_of_match[] = {
    --
    2.35.1


    \
     
     \ /
      Last update: 2022-10-24 18:54    [W:4.085 / U:0.124 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site