Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp869094rwi; Wed, 19 Oct 2022 04:07:04 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7f9oLt0cpuwVZ2AZHAjI4p43Q8gETOv+rLaLdTNwE3QttqyOFg2m0yv4LPOfLmfdNgcVBE X-Received: by 2002:a17:906:8451:b0:78d:d467:55a4 with SMTP id e17-20020a170906845100b0078dd46755a4mr6180121ejy.352.1666177624492; Wed, 19 Oct 2022 04:07:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666177624; cv=none; d=google.com; s=arc-20160816; b=jUYh3WGyP9y7ZraOvpzF5BU9DMI8/lLUlKHdRw5WA+aZDyBR7Wk/5oIgzMfSL6XcKi Uus6NoUlki6O/6YOBiuCaFjzgTlFzlvy3Kgq9TbJSZRpREN2NKmr3VGbCt3H3y3b3UDu pjIc8AczK92/MUNgxltZ2xZY8U7EQFS+2fTN22vRymIb4B+0A3m6G21UxmIF8w7i9woP R+lpru0cTSNPd7Bowe/SVyXgIRPDaeRJICQwnW27V7WP7jqKcpfk47m2blg6EDjqAQqf FzbhzdxYRo3Q7m6NYNXvrr8hMcXlbWYBUZXw/0dnYUGorDCEWTi+pL6hRzgS3rbMTMSD kDOw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h13-20020a05640250cd00b00458ac23f0b8si16427490edb.399.2022.10.19.04.06.06; Wed, 19 Oct 2022 04:07:04 -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 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 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[] = { -- 2.35.1