From patchwork Wed Oct 19 08:34:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 5020 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp245903wrs; Wed, 19 Oct 2022 03:36:40 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7n528+FaCqfeyIxF2eZAQIMpD5SJKrQNkfm2hMTlDxK1yx0n5lLMCtRTptiknTMJs8UMKi X-Received: by 2002:a17:907:6d18:b0:78e:259d:c391 with SMTP id sa24-20020a1709076d1800b0078e259dc391mr6167743ejc.615.1666175800305; Wed, 19 Oct 2022 03:36:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666175800; cv=none; d=google.com; s=arc-20160816; b=UQPpMPEB4WwQHdeGA3WjsJI0HJtGswkU8Yb0kb8EwPunMR5zPAtdThY8C5O13k3L9M JGuF+Yjb3jLycn6CDI/VlLNWOTKM9tRfBYmLAlJe+5PCyhOuLOmFJud9fffPm4SvOycl yVSy1foqtGyGQh/M/mX9pOXgSo7C1fRFxl8IAwVQx47B6dhq+P0iXsyAmVsapSCpNS2O zwkHzYlCZjcrmMtEJuc1oPWAlQ/HcczJWYahx6jdkuWSqgaDM9JmYdbdby8+KFhzB4RX gaGd3sz/HKCsqz4aiY/nJelQj1ZPge/nb2y9Zmwy0HmD6vaIyTHDOLMx7LEPRxG4xhGI CMTw== 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=izjwTOmlbg5Yn4vW3i1r2UFyZ3cnTPLxTlGNLQ+qTRA=; b=kRDUVaWXWp2I3/iG3qWasH5mZ2ou+sAw5YMHWqoncomqS7KAYUXvXKXaCGKZu9sPlY dVI4wCfUsTIScFVXRh3O1LS4F6lnDkb/UefZfaByI39MmoLFDvUlKbK2sWwkDxkm8w9p Za4lnF21AsngbXsQq2uvyfu3Rwn3diZG8n4yOsKmY2EsHhoN7OuPcavuVV5QUNhk3ZAo N30a7Jv8lxGOTBiweFge8LhWoIJHUaUZpcm/3ct1Z66pdpJoVO13fe1SOtU4FD2bCX3A 2uhnzBkPfap7Fu7RiuQ4P3g7zQch5wW/4EJhelFmbjhxJuAnYahDQ7sXP3FJ1ZmHY2rV b4tA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=H5xrFcZn; 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 x20-20020a170906441400b0078a00ad1e31si13151502ejo.687.2022.10.19.03.36.14; Wed, 19 Oct 2022 03:36:40 -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=H5xrFcZn; 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 S230383AbiJSKZY (ORCPT + 99 others); Wed, 19 Oct 2022 06:25:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230370AbiJSKYm (ORCPT ); Wed, 19 Oct 2022 06:24:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 06446D57FF; Wed, 19 Oct 2022 03:04:13 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 77529617D6; Wed, 19 Oct 2022 09:13:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 82329C433C1; Wed, 19 Oct 2022 09:13:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666170816; bh=1TJHyyfg+QsA6U78R8mxqIahZXicXXqn1XHvFq8xnAo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H5xrFcZnm2Qy4qQ2wR8+Du7Atjx8ecqV0u1OAkLh4pdkSTnDWKFff/oN6a9v3lV/K SF6DlOZYko/RE1INgRcGz+F/orSwAIscH2pKN9vyoAAl3Z1ApryBemRb0CDxO/4cfh 9J7AyKqqewnincnZsj95nHYkEx3vJaa0aL5xEdTU= 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 6.0 798/862] usb: host: xhci-plat: suspend/resume clks for brcm Date: Wed, 19 Oct 2022 10:34:45 +0200 Message-Id: <20221019083325.155292107@linuxfoundation.org> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221019083249.951566199@linuxfoundation.org> References: <20221019083249.951566199@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.4 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?1747111955766987314?= X-GMAIL-MSGID: =?utf-8?q?1747111955766987314?= 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 ef10982ad482..5fb55bf19493 100644 --- a/drivers/usb/host/xhci-plat.c +++ b/drivers/usb/host/xhci-plat.c @@ -123,7 +123,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[] = {