From patchwork Mon Oct 24 11:32:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 10122 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp633249wru; Mon, 24 Oct 2022 13:13:51 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5xrR8I2OkmK4OJFMUfE5MKJNSq+G+xm94+fZGjFPW0wD1qHeUC1PLHzjhJ31QLPSPC0m08 X-Received: by 2002:a17:90a:b00d:b0:212:f91d:88c7 with SMTP id x13-20020a17090ab00d00b00212f91d88c7mr11514716pjq.112.1666642431261; Mon, 24 Oct 2022 13:13:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666642431; cv=none; d=google.com; s=arc-20160816; b=lhWHPEhk1isRZsES0IxzpN6QBuHBMapsLo5Vly/tuPJpyfrzXuvyDBvSStYgDo6ajo EkQCmDCsOB/+Wy2lwKFCukzgkdtoZv3l8LrSCm1iHRve1XjHclMyJifby7PubS3pVVFL uEu6YkGUcr0hVM0iTVHxTzsgbR7IuUBM6Ir12TQ8CcIQPBT+c/ssfBPFBHePybxeMuz+ cDa5bUlaZC9PfQEqj5ExzqUeG/c9VVtwV/cY9hPnc2ZOMj6CE/ZEhbuSsDN/6tySGeM5 7qJlESTOl9m21OJah62T8jID8S38xtGt5WrBh6PhZ/JXINAg6pcjWIauulDGj9nYY9y9 M5zA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=evwbZJi310Rh2Z0NekhGOVQ4nIW0q4SC8jyrlTTRmEk=; b=V538Mwi96qAZEyyoklvJ7Dw3uoB9R/W9RGI2QALpaJzdtyd/IrHIweMc3GVTITfdKy 7O5rQAjPIVXYD3CoVTJuQ8tAjkH2T48cPJAvbKjGIN0P9hNhgAgIxVvS90SDrgrcco/O rurpdr+SCJCS6LDQfBCMluc0cgtobDumTR43GY/42mTQMIy5xXjcyIZE/OmWukLcC8qm OziANCw0RWNf3aAO/Hviipp310+W0sXW2xR5Bgnw1ocYWl6hceg/v/yqOUQ1PTFnW2rJ RPXrEfy3AjKKcEAWmsbPlTL84KRTD9d16mVUGnhyjhq5dGo8v3M6biFdBQjlAQnTt9/n gM1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DqlTOAYi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i66-20020a628745000000b005624037d3efsi600285pfe.295.2022.10.24.13.13.37; Mon, 24 Oct 2022 13:13:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=DqlTOAYi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233970AbiJXUBV (ORCPT + 99 others); Mon, 24 Oct 2022 16:01:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59780 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234358AbiJXT7n (ORCPT ); Mon, 24 Oct 2022 15:59:43 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57E201B157C; Mon, 24 Oct 2022 11:22:28 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id AAA88B816B7; Mon, 24 Oct 2022 12:32:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15E0DC433D6; Mon, 24 Oct 2022 12:32:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666614767; bh=eeYR1pQLtcJDxO9LFF9+dLExakAoN06GkoHBkN1iWGI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DqlTOAYiepW+0cLOAnj35Ot3vft68JL9DdH4Achk6AllA/jDmQuk5MUuPtbV5U0HK sQlDfELmTchM14eUYj2J++s3BBr3tKCxcWAcawzlCrWlhSL+7cjWx36n6rFQFX6cTx 4mQGY4EPX09lrINT1oFIGUw8mXJMDvTGu9D/osKc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Florian Fainelli , Justin Chen , Sasha Levin Subject: [PATCH 5.10 356/390] usb: host: xhci-plat: suspend/resume clks for brcm Date: Mon, 24 Oct 2022 13:32:33 +0200 Message-Id: <20221024113038.168196058@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221024113022.510008560@linuxfoundation.org> References: <20221024113022.510008560@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747601253853918148?= X-GMAIL-MSGID: =?utf-8?q?1747601253853918148?= From: Justin Chen [ 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 Signed-off-by: Justin Chen Link: https://lore.kernel.org/r/1660170455-15781-3-git-send-email-justinpopo6@gmail.com Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- 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[] = {