Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp165967rwi; Wed, 12 Oct 2022 17:58:11 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7kJlzSxP9P1qeg8akoFdizqeRfZtWZXrUD7u0kMfLTgvgB1lm9OtYj03/u4WvQKlemkRo2 X-Received: by 2002:a05:6402:154c:b0:459:b29:da88 with SMTP id p12-20020a056402154c00b004590b29da88mr30550382edx.296.1665622691621; Wed, 12 Oct 2022 17:58:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665622691; cv=none; d=google.com; s=arc-20160816; b=MTYmdqSPtO77N83OQiZoj8EwQ08qpyTlmXkXTS15T9QVhN4Jl/TX3HWq0VazU1MZ1C ZZNnhiCceEFIfRFP1yDmLGeiiD6PJ1efPHaldmBNPBzfjqpF68eiIyPbyoQ7VsKlSvte Q3ud9586D1aX1FEG0HYOezBRZUmQb0sNCkEh3v+ApiYBiAp+F4pVPxx/NYsyy8yrh2bs x053FHpA822eK3dIu90/0EGrYnNtTGoSGCqSErBRayb/UdPeTjrcj4JzvxDsbzADTx4x G7mvYPkCLWoXhE/UHHJGwGOj9ZwAGxsz3buq55y4kLwhxFo5C9Mige4EnOyRzZxD6yK9 abzA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=izjwTOmlbg5Yn4vW3i1r2UFyZ3cnTPLxTlGNLQ+qTRA=; b=vGYigcxFDwcqMVI1Mey8GUGHDnYZVEyfZxrA0q9VTZ04A4Upr4okOf64LpiZGG7Ioz Trpml41XRYWQyQ+HvgmFDLQmTTM8CMPrMUJfvtPLT5BVb3erZj2fdWbK4qg+hUU4ndTO pmMRmZkuBrFK38TR/i/lWnLpFiAIEGU3ytJ5KkNxJud0VSgvRzCkXS3dNCc/ps8g6JBt RPwt8Qc/r1oZH4pmEnJ1c+Bmt8ZN7ilEuohKZrFw56CQpi1xlHZJrvaDQbMgAP0ger/W 2jqTY7NFvFl+SUW7LeakR0KYmTTG/viq8vndTLrEpmEofoMmOid+0r/ElPEFiot08duB Sq4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gbG6Hxi8; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t13-20020a170906178d00b00741c0bd7061si15329704eje.644.2022.10.12.17.57.45; Wed, 12 Oct 2022 17:58:11 -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=@kernel.org header.s=k20201202 header.b=gbG6Hxi8; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229881AbiJMAQs (ORCPT + 99 others); Wed, 12 Oct 2022 20:16:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38014 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229803AbiJMAQh (ORCPT ); Wed, 12 Oct 2022 20:16:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB50AD9949; Wed, 12 Oct 2022 17:16:17 -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 5A676616B3; Thu, 13 Oct 2022 00:16:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id E1FA8C433C1; Thu, 13 Oct 2022 00:16:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665620175; bh=1TJHyyfg+QsA6U78R8mxqIahZXicXXqn1XHvFq8xnAo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=gbG6Hxi854znHrVZJGk6FwU0Q9cKSuApKlRZHYiFu+tOr/ircj6KIvpOPJBP0v5lW 6Ko2zJIUQ1qvR5I4f6lY+q9tYSTLDsdkQaYqm6epTKZmL+QA3qhn+Dfi6A1RJ5aXrc mSiEE87fImXvXoqiVBJMc6afRurvvUvWO6L5LY6Flvlj4bGvejhcxqJI9WkbkSVSaz t/ToZ/u7ztnuCq+O9oqBo5vTkDcq2mmwFmj8GePBK9yb5+UeyqwPVC1MOX2UhhNFyJ cxXKL/aJ0Vn2+UvapWQxRdV6mbZVGEVJpOt+/PgrGq4u+SD37/kNXdxSeQDwokitHs h/hapkIRm1ZPw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Justin Chen , Florian Fainelli , Greg Kroah-Hartman , Sasha Levin , mathias.nyman@intel.com, linux-usb@vger.kernel.org Subject: [PATCH AUTOSEL 6.0 08/67] usb: host: xhci-plat: suspend/resume clks for brcm Date: Wed, 12 Oct 2022 20:14:49 -0400 Message-Id: <20221013001554.1892206-8-sashal@kernel.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221013001554.1892206-1-sashal@kernel.org> References: <20221013001554.1892206-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.1 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