From patchwork Sat Oct 22 07:28:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 7734 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4242:0:0:0:0:0 with SMTP id s2csp1110247wrr; Sat, 22 Oct 2022 01:51:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM66Sl/BB/quFv5XeH9R4u5SyMOyQjJXmvNwDlDGdCJhu0Kgn719Mg3vyfz933uFR/lw8WsL X-Received: by 2002:a05:6402:1808:b0:461:52dd:499c with SMTP id g8-20020a056402180800b0046152dd499cmr5927754edy.120.1666428712242; Sat, 22 Oct 2022 01:51:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666428712; cv=none; d=google.com; s=arc-20160816; b=A8pUf2VJ8NAq3jl075YNvkJI4xUcpY5GzjElaZCkunRw1DeAiGrPGE6jZP9AV8mfl3 RwXUbL2zwIZUuHRzosVdatyAlfc6QcHY41jyiixpBlKBcrPg/INxGrnAM0v7g7ZnBW7g 2cHmi1W7YClWWgjzecEN2k54FbqYxkjy0IIUj3IJUkU4NNHXRbXrkQF2uJ/pBJFxOFsq gVHddNZBqWhGJSpH6z4NnJIcgmNly8BMmaxahuKDxJ3TvFGVjasOSJMxHpNAP01+n/sj NAyCwLeWFqJg52kglgXu3WLz75AX/7qVFAp23WrZu4IKLnFPfVUF55FPVSxCgJjmT8yH Hwlw== 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=S726h/H/yTvlsi4dv5UxveD57ejhYhhEwcu7tFRIz4omB5toDxt1rB9386gAIgKCPz qijB4Qea3Bou5xLjKf607rII2wzkG1fen41XijTYa11nwGpyZn+nSA1Vs6JoZrNZ45o3 VEPkPflrSj5xGDmSe9cNHCdYQ2LuhIBFdFpqBosIuMHJH7wymaIgJxUZ3wP01R1Z92Yq Ub9XZLQm6r8ywV3cemiZwJmpHGZbw9t6GMTv7DN83EgoBMTOBXOt2+kXruQ2icevlzFR S59N0zrPSioAnQMvVh5aPgWi+v8S+0ye3n4Emgjuj9kLS+aWh5yqkdnaOp4pNitT51Gv HtuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=yfulSeMF; 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 a24-20020a50c318000000b00461237816efsi5817836edb.120.2022.10.22.01.51.28; Sat, 22 Oct 2022 01:51:52 -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=yfulSeMF; 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 S234839AbiJVIuY (ORCPT + 99 others); Sat, 22 Oct 2022 04:50:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234904AbiJVItH (ORCPT ); Sat, 22 Oct 2022 04:49:07 -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 D30A4119BE6; Sat, 22 Oct 2022 01:10:21 -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 9085F60B4D; Sat, 22 Oct 2022 08:06:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 92A85C433D6; Sat, 22 Oct 2022 08:06:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1666426000; bh=1TJHyyfg+QsA6U78R8mxqIahZXicXXqn1XHvFq8xnAo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yfulSeMFg3DtIv+nxC1WLrYy+yryeeq3DmFvenguGCpLD4uFobCm9t3NSt1jdUjzO bQK3+T43YsJWb/Y/1EZArWPysF41/Fz9mKa/RViME/dhJ0RkLWZWPLkLiHfTuv+h1F xyV2TnUuWFQTZxKdgsuxwpB5XXlClf1g+J/kW7Hs= 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.19 656/717] usb: host: xhci-plat: suspend/resume clks for brcm Date: Sat, 22 Oct 2022 09:28:55 +0200 Message-Id: <20221022072527.415643934@linuxfoundation.org> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221022072415.034382448@linuxfoundation.org> References: <20221022072415.034382448@linuxfoundation.org> User-Agent: quilt/0.67 MIME-Version: 1.0 X-Spam-Status: No, score=-7.3 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?1747377153374616040?= X-GMAIL-MSGID: =?utf-8?q?1747377153374616040?= 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[] = {