Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp2022311rwn; Fri, 16 Sep 2022 04:41:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5uzvtm9Yxp0PYtWzZmmUsg+PDuKH9xocsEDashnsyMsN0pjDgmOAQBFLro/eKS6x0L5tPG X-Received: by 2002:a63:1f11:0:b0:439:8dd3:3611 with SMTP id f17-20020a631f11000000b004398dd33611mr4135716pgf.205.1663328494788; Fri, 16 Sep 2022 04:41:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663328494; cv=none; d=google.com; s=arc-20160816; b=0QksRiiPQZYv+OJkeTaB6g4qibCu5ODB7qPyweXEbI+/8cyfPfTXaA2kIM/aJix5Iq eLzbpcRJdRerAhhXL+xMzBP6PGQsVoDkIgt/OzfgrdSwk/q0yah0tet9AdmQwhu17+db VothPLcRRipK9Sk3yvYoOPAu5XPKJEyknjaEvYvrBKD8l35Cjlq5KeNUVjigDo6mINAJ imOJ8IW2Dl1qRxTbofxDtaYyCOj9nmapgd865sWoVVU37K6b7m66OOx6nURmuSG/EJhC NxiurU++ka1umLPVTysXJYHFFVUVyv8DDZJMCHUjLAXYjxRDvvoJvF8DnT+YqW8f61Q9 uiyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=MvCbWPDnUie5oeetIXxdhIlJfjcHEgeLZVuTgnWyYwo=; b=W+fAsPTG/j52hX3f73Wi5L8J7URdWn4s4dDNEtBXOIn8UYKRMnxa5BY/zcl9YIO2lJ xFO/QHHgN5X/Rt/9eCBMR3hPGEuRnC1R5HMLJ3bVWMY4+lcyijy5vm75vFINibqByFoB 6Bujnw9ZVTkHKhwXl448n9FVHVr+srEROcInhXeloa8GiKtO9jOLPKN2WGrZHaUqJc08 KLNC3+1xEQRsG7KMEEqyATqdndleAz7mfGizvgHPdT+y1TqqbJnkH3vn9i2aNNCTiduV a62vsXSGvpjnn9Fzc3Rsib1pqtKm5so4F1onKtUquA38Q5GlCAq+Uuemgye3mtU1qGZe OnOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b="BoWwGS//"; 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=quicinc.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w17-20020a170902e89100b0017542c161d7si24820968plg.211.2022.09.16.04.41.21; Fri, 16 Sep 2022 04:41:34 -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=@quicinc.com header.s=qcppdkim1 header.b="BoWwGS//"; 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=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229712AbiIPKvz (ORCPT + 99 others); Fri, 16 Sep 2022 06:51:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54612 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231417AbiIPKve (ORCPT ); Fri, 16 Sep 2022 06:51:34 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D881B9595; Fri, 16 Sep 2022 03:30:42 -0700 (PDT) Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28G4vu02032169; Fri, 16 Sep 2022 10:29:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=qcppdkim1; bh=MvCbWPDnUie5oeetIXxdhIlJfjcHEgeLZVuTgnWyYwo=; b=BoWwGS//Ej+agDicz1pBx8BgYuEkAXAbMrOkWLGafsrqf1f/s9ZEyEHnekA2mqPfxRy3 JdvsXuCCaNv0czJF2bahjIdhTd6n+IN8mLFns+zxdSLzxyDF8dRIy8l8ig21mgs0Dag1 YviDdRa5mtFJ00xqTARjXHqTjtpgMhpmvPQ2CyunZcAQDHnhSTjh6Gkv+l5CfFREjSYw l4ivf0vsQbelE7wpOyIK8ouqMkghiaxTjnekud/G7+K2ZoB8+xlQm3Xcyefr7gU2lwpG dunB1woK7Duq5n+t1D9x1wJK2nj2MVFWbQeoH/2o0ytSaZphViOfbEwSyuSUjLJOegBF 7w== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3jm9m1ahxp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Sep 2022 10:29:52 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 28GAOpqN019856 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Sep 2022 10:24:51 GMT Received: from blr-ubuntu-173.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.986.29; Fri, 16 Sep 2022 03:24:47 -0700 From: Rajendra Nayak To: , , , , , CC: , , , , , , Rajendra Nayak Subject: [PATCH v2 2/3] clk: qcom: gcc-sc7180: Update the .pwrsts for usb gdsc Date: Fri, 16 Sep 2022 15:54:16 +0530 Message-ID: <20220916102417.24549-2-quic_rjendra@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220916102417.24549-1-quic_rjendra@quicinc.com> References: <20220916102417.24549-1-quic_rjendra@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01a.na.qualcomm.com (10.47.209.196) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-ORIG-GUID: ElGtT8zPX3eBGZyDPlEUrI3fxVO8-J7j X-Proofpoint-GUID: ElGtT8zPX3eBGZyDPlEUrI3fxVO8-J7j X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-09-16_05,2022-09-16_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 bulkscore=0 impostorscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 mlxlogscore=966 spamscore=0 mlxscore=0 phishscore=0 clxscore=1015 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2209160077 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 The USB controller on sc7180 does not retain the state when the system goes into low power state and the GDSC is turned off. This results in the controller reinitializing and re-enumerating all the connected devices (resulting in additional delay while coming out of suspend) Fix this by updating the .pwrsts for the USB GDSC so it only transitions to retention state in low power. Signed-off-by: Rajendra Nayak Reviewed-by: Matthias Kaehlcke Tested-by: Matthias Kaehlcke --- v2: Updated the changelog drivers/clk/qcom/gcc-sc7180.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/qcom/gcc-sc7180.c b/drivers/clk/qcom/gcc-sc7180.c index c2ea09945c47..2d3980251e78 100644 --- a/drivers/clk/qcom/gcc-sc7180.c +++ b/drivers/clk/qcom/gcc-sc7180.c @@ -2224,7 +2224,7 @@ static struct gdsc usb30_prim_gdsc = { .pd = { .name = "usb30_prim_gdsc", }, - .pwrsts = PWRSTS_OFF_ON, + .pwrsts = PWRSTS_RET_ON, }; static struct gdsc hlos1_vote_mmnoc_mmu_tbu_hf0_gdsc = { -- 2.17.1