Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1211295rwe; Thu, 25 Aug 2022 18:42:21 -0700 (PDT) X-Google-Smtp-Source: AA6agR7YQ4gIk8UGJBLjU9IRbm0ow2bBvepK+VbhyrfFMxZw6KBs6t6MFlda0R8phv0joQMf3WeG X-Received: by 2002:a05:6402:3408:b0:43c:2dd3:d86b with SMTP id k8-20020a056402340800b0043c2dd3d86bmr5193086edc.108.1661478141129; Thu, 25 Aug 2022 18:42:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661478141; cv=none; d=google.com; s=arc-20160816; b=Rg7Z0GZ3c8aaPMBmCm7XIVhrR7FbqnHIKRftMSSEPfWxRjJ3FN586V73SSXlicF0P0 KjkOCXsMRWPizbUbCSYvBmTsbpnfB37Wd8m37FoP9tbn6cdcMIv481e6zUapU11nMUvz 5HTqG6AzUQCcTIuuwHtv3S95qV1McdmVZEI9IjxFweK4RsK8ui3JE33hxfuStQnhgoFh PbR9io7162dK0ZFTAt7cbysSP0py/8+o/KvxwDjyVvouu68GoO3vEbSp16xalk20g1/U rugznWQ3CXkvsMPnBXXlLxCNjV39PWrE7KAbXKSMX4RutFK9trSM4el17RRJLgWF7uq4 8CBA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=xYTu/skGP38f1q1Dy1/xZQnsGWW6M+Lwk/V98c8nDu8=; b=p8a5de35WYR+a0TxQ8mCtbNzxhCgpyznn/VTwAcoV+0elX7kVIYxzwBNZE+TP8cl5f u6UzkWfKtWUeLD3fmhA5o/BYPbtTHUjBimUKHAiWTRvPnOjihhX+SV5d5BBK9jW9vb6h le9VD8Uy7M1KgXp0v7RZtVXEuWMmZyhNlnDuzxhFJd+n/av6vcI6smCEceoiYJQl8lSF HgqxtKz55sUrkLlP8FYSj5dHnPVFSLI54W3nipWKFWtMjPSWwad5AtLUDg7P/X8tr8DE OSXhIwQaWvqswiMoocVHzy65X7AH6+qQNfjRTah1rzMi4TYKI66AByNPh9AqYs4BwKdc dBaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="JpF/+LgY"; 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=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cr18-20020a170906d55200b00732fcbcfedesi469208ejc.623.2022.08.25.18.41.52; Thu, 25 Aug 2022 18:42:21 -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=@chromium.org header.s=google header.b="JpF/+LgY"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244248AbiHZBWJ (ORCPT + 99 others); Thu, 25 Aug 2022 21:22:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42314 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244154AbiHZBWF (ORCPT ); Thu, 25 Aug 2022 21:22:05 -0400 Received: from mail-pf1-x430.google.com (mail-pf1-x430.google.com [IPv6:2607:f8b0:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9713C6E87 for ; Thu, 25 Aug 2022 18:22:03 -0700 (PDT) Received: by mail-pf1-x430.google.com with SMTP id 72so168883pfx.9 for ; Thu, 25 Aug 2022 18:22:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=xYTu/skGP38f1q1Dy1/xZQnsGWW6M+Lwk/V98c8nDu8=; b=JpF/+LgYMZNVlZzZkRsCU4B8eY4IAOMRYjG+0+dOUsTnzvH+xpvG8RkdRizvPNEVR/ 0rS2ucyTxq9BKlqt16xAymDVrA63ezwAzCtsvzi7jvyYXnpEkrQSOigH+W+drEVQ7dAW yF3n8St7jBCp0pZ5Ne2HeBzF8y65aAsGd4atY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=xYTu/skGP38f1q1Dy1/xZQnsGWW6M+Lwk/V98c8nDu8=; b=QvjIvzS5enUFEofu6YfYH7no5tydii+GIzroQKOcr4BtdMNDxQyDEkEs04n5nwNxUh /PAesmvlB7mduG6q9Tkx00VpUHNUg+bfCzfLwvOnbsAmcID6fht2sLDKIFe72M8hDSVR CBHVB2wxxOjyYQXIln7VYyGQZXWmEEQ+XzNW7Rl5qE+bf45AtkbAyS2mBZCvk4vKNwfR +glclWVe5MeSXulGujms25Q6wwzw6xHkVyRe4yQGwa759OMetFhtkYSJRHDv0LwEeGOQ VFDQivpAHmVpxTt+H05MbIn0+dehuyuvIJaXrVs5C1Dk/vqfyZ1Qhs6zY7Mq+fk1/3aJ tEIw== X-Gm-Message-State: ACgBeo2Sc4VbwhsuSpOtxP5FeTkEM0AH65Zq3nNPYBph9dZY1Ji919r8 y/eT4MUEZeDzBWMcDaQMJh9jtA== X-Received: by 2002:a63:4c3:0:b0:42b:5150:fcfa with SMTP id 186-20020a6304c3000000b0042b5150fcfamr1407615pge.210.1661476923185; Thu, 25 Aug 2022 18:22:03 -0700 (PDT) Received: from localhost ([2620:15c:11a:202:d529:f79d:2a1a:4e61]) by smtp.gmail.com with UTF8SMTPSA id t9-20020a17090a1c8900b001f8aee0d826sm354685pjt.53.2022.08.25.18.22.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 25 Aug 2022 18:22:02 -0700 (PDT) From: Matthias Kaehlcke To: Andy Gross , Bjorn Andersson , Konrad Dybcio , Michael Turquette , Stephen Boyd Cc: Johan Hovold , linux-clk@vger.kernel.org, Krishna Kurapati , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Douglas Anderson , Matthias Kaehlcke , Bjorn Andersson Subject: [PATCH v2 1/2] clk: qcom: gcc-sc7180: Keep the USB GDSC always on Date: Thu, 25 Aug 2022 18:21:58 -0700 Message-Id: <20220825182152.v2.1.I45235b7c40997bc2abf813e4722b4dcdd6aecf6b@changeid> X-Mailer: git-send-email 2.37.2.672.g94769d06f0-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 When the GDSC is disabled during system suspend USB is broken on sc7180 when the system resumes. Mark the GDSC as always on to make sure USB still works after system suspend. Signed-off-by: Matthias Kaehlcke --- I'm not entirely sure that this is the correct solution. What makes me doubt is that only msm8953 sets ALWAYS_ON for the USB GDSC. Is USB broken after suspend on all the other QC platforms? Changes in v2: - set the flags of the GDSC not of the GDSC power domain - updated commit message drivers/clk/qcom/gcc-sc7180.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/clk/qcom/gcc-sc7180.c b/drivers/clk/qcom/gcc-sc7180.c index c2ea09945c47..c0d7509a782e 100644 --- a/drivers/clk/qcom/gcc-sc7180.c +++ b/drivers/clk/qcom/gcc-sc7180.c @@ -2225,6 +2225,7 @@ static struct gdsc usb30_prim_gdsc = { .name = "usb30_prim_gdsc", }, .pwrsts = PWRSTS_OFF_ON, + .flags = ALWAYS_ON, }; static struct gdsc hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc = { -- 2.37.2.672.g94769d06f0-goog