Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3762569rwb; Tue, 20 Sep 2022 04:31:09 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6LJnRRzQgFLitkHdKiBFxddrjDuhqCXKCOx6Yje9MrSIEn1/wckrkLhi0V6EASO13qbNee X-Received: by 2002:a17:907:2d8a:b0:781:cef1:2ceb with SMTP id gt10-20020a1709072d8a00b00781cef12cebmr1465758ejc.470.1663673469131; Tue, 20 Sep 2022 04:31:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663673469; cv=none; d=google.com; s=arc-20160816; b=YfM6wJkENreNh7YKXHn66ZCYCHDpqEkBUrH/4Qp4honmSCuvZqrdw9RjBkLYwws4Mf Zk1cr8fPwGvUWM4c9guQRbPT4cbSGoF25XjGn6n+Gny9yRx9mSm1CHCJeVoOefzaa8n7 3gTJWmOIYaqN09ksPscxwvx8swNQ9w7uARilkMJ60RcymCx9aS3YzEQmGYx6kWoW0P8P PZWDHJCS4zCbJ9h7vfA2vklNiN2W8GbFGY497UOnh2iZIZT044N9SpELU0Dzln7FWTD3 nH8TY9sl2LOOwspSs/vgFg4beAR50CjgCzHsfLVqCbUIBIQVteb+PETSO9XvwO6ISNkx ehPA== 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=/C5oc3Ip0QsKalQGmVuCjzmYfgs14mBBhCoMl2zwOQI=; b=PB4xkno/PYVSQj700Mor/BDWeR7Gjqrv5/rx8ikCUyN1y31A836RCdqLEBG9jdPrSS 1JiB5embB6FroRnqm2cRT4W5XRK6oY3QMhIxiu6Du9YZMTTZJ1alXpn4TTwKZeHTUA09 GSsQwd+bxs/jgdUPUSWP1pNLxJWdxV6FmNn7QGudESniOYvlpFehXcf3X9XCa2iaFAXP jHA3xkvBcafkEstju3hRo2mEo+Gl9j9HKEw2PBMegAWTXAHIX64mQAXrSrymCMxSmuJ4 YBS6I51AhZ1xhjnHqebTjEjZKk0Jf6w8NKMcwsqMRahpPHyG9IO4/auX4fwYjDRSlKBR 4LeA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=DyUnFvo5; 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 m13-20020a056402430d00b004486d3bcacdsi1634369edc.5.2022.09.20.04.30.42; Tue, 20 Sep 2022 04:31:09 -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=DyUnFvo5; 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 S230404AbiITLQQ (ORCPT + 99 others); Tue, 20 Sep 2022 07:16:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60788 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230326AbiITLQJ (ORCPT ); Tue, 20 Sep 2022 07:16:09 -0400 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B20A6EF34; Tue, 20 Sep 2022 04:16:08 -0700 (PDT) Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28KB0ugJ014528; Tue, 20 Sep 2022 11:16:01 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=/C5oc3Ip0QsKalQGmVuCjzmYfgs14mBBhCoMl2zwOQI=; b=DyUnFvo5hRHSI6yn3JG2Xf8smg/YxkTmmEt15UW/ZznSzqR2bQtfECRcrR17Am0N6hGA Tqg2+tJz9alcQErZP00ay3q0k4kamKrnxdYZXeNwUEGv5ZBpe9cm1Av8kxHihFvSlHT+ xMXdGnfjrdEAat+QHaFUqJFpwjXeHPuMn9V15vYuw8td+9egcKMG+iyb6TBovTadHJxu B5Yorf0q/JNVDbDC5x9IlSijuLV2+BS1Bvw8eQBl4HLW7Bfu5FpPR0QcmY6L156gqAxL +0SwR839KvzUElY8CHhh1bolcSBLYjyCsVxFLYQ3pu7cgiWWYRCBCSaPpHX3dLa//evO 1A== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3jptw337fa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Sep 2022 11:16:01 +0000 Received: from nalasex01a.na.qualcomm.com (nalasex01a.na.qualcomm.com [10.47.209.196]) by NALASPPMTA03.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 28KBFx92008302 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Sep 2022 11:15:59 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; Tue, 20 Sep 2022 04:15:55 -0700 From: Rajendra Nayak To: , , , , , CC: , , , , , , , Rajendra Nayak Subject: [PATCH v3 3/3] clk: qcom: gcc-sc7280: Update the .pwrsts for usb gdscs Date: Tue, 20 Sep 2022 16:45:17 +0530 Message-ID: <20220920111517.10407-3-quic_rjendra@quicinc.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220920111517.10407-1-quic_rjendra@quicinc.com> References: <20220920111517.10407-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: yxBpGv8ms_Tkx3F4TxLR-J04abdrvie4 X-Proofpoint-GUID: yxBpGv8ms_Tkx3F4TxLR-J04abdrvie4 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-20_03,2022-09-16_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 clxscore=1015 impostorscore=0 phishscore=0 adultscore=0 mlxscore=0 bulkscore=0 malwarescore=0 priorityscore=1501 suspectscore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2209200068 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 controllers on sc7280 do not retain the state when the system goes into low power state and the GDSCs are turned off. This results in the controllers 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 GDSCs so they only transition to retention state in low power. Since sc7280 only supports cx (parent of usb gdscs) Retention, there are no cxcs offsets mentioned in order to support the Retention state. Signed-off-by: Rajendra Nayak Reviewed-by: Matthias Kaehlcke Tested-by: Matthias Kaehlcke --- v3: Updated the changelog drivers/clk/qcom/gcc-sc7280.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/qcom/gcc-sc7280.c b/drivers/clk/qcom/gcc-sc7280.c index 7ff64d4d5920..7b6e5a86c11f 100644 --- a/drivers/clk/qcom/gcc-sc7280.c +++ b/drivers/clk/qcom/gcc-sc7280.c @@ -3126,7 +3126,7 @@ static struct gdsc gcc_usb30_prim_gdsc = { .pd = { .name = "gcc_usb30_prim_gdsc", }, - .pwrsts = PWRSTS_OFF_ON, + .pwrsts = PWRSTS_RET_ON, .flags = VOTABLE, }; @@ -3135,7 +3135,7 @@ static struct gdsc gcc_usb30_sec_gdsc = { .pd = { .name = "gcc_usb30_sec_gdsc", }, - .pwrsts = PWRSTS_OFF_ON, + .pwrsts = PWRSTS_RET_ON, .flags = VOTABLE, }; -- 2.17.1