Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp3774599rwb; Tue, 20 Sep 2022 04:42:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6kcCuuMJCJQG6dnIdXCQ8PXMvBTEDRxKfRZ8ZcJOoO4unXzvV5IAapDYSuw71t5vQcYNvZ X-Received: by 2002:a05:6402:5189:b0:451:791e:f328 with SMTP id q9-20020a056402518900b00451791ef328mr19627079edd.282.1663674147057; Tue, 20 Sep 2022 04:42:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663674147; cv=none; d=google.com; s=arc-20160816; b=MG2fkAoX777iHrZ0EReLCTdzgqt9O1XZ+nxDLMoAVCalhlczYb2ZA0+uAnY37Xz16F r0FB4xtp6dhAQOz5ZTK7x79biiVzPF16O1BaLkx7QWeV4fXQ+u34PturKKAXxuoTWoJc xjthDbo9FJQktRfOS3HChMedY7bDYJm+u4OSc7PJUh0LEgC9GZj2Egik8CczW6BKVpdC ktQuEPW4oi/1iNQCeFqQk8cri/644u4DRRM3yKVHwOn+pt0grEKDQS0D8jLF5SEOC4hy RPFJltYGR/1WGxCN1RRzjEQSk71VJ+N0jhy90IydjJ01g4Yka2nuF6nrKTKIlnmNzZYg VoLQ== 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=f9bQ2Pub38kjwx86yF3O38oDOzoP4fBrS6r2luF9pNU=; b=Fc0e1lzd4vKwImukUGAUkDil9vBt36TYHhLz+YVVW0+1cXebHJWKltODWoH0Hu+iAr 2W1DysY6w3yPqNPK1qNAXF09TjdjOYtX/SuvzG6f6lw4cHKZiv3zXb3VYVX7VwIuTU+8 1WPHdzqQOuEW725Z18n41UtrFBA4vXiKG9Q5sX6i3yzOWnwxOTImz8ve5d7flPZ32bjX u5vpLdBI1GoRtOonO3WUtKy2kDyOnTZnkwof+Bv1Zq2R1YpzYMYKH15gPOaPWCQr9Dfd pJbQkJgKGsGI8HZdNkDXvbC3VDsbeGVidN88L7e4eg+qEzmmkX9Md5xSFpJH7lMm7bHv U+cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=C1NrOjHx; 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 qb10-20020a1709077e8a00b0077953fba3b3si1363849ejc.694.2022.09.20.04.42.01; Tue, 20 Sep 2022 04:42:27 -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=C1NrOjHx; 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 S229741AbiITLQM (ORCPT + 99 others); Tue, 20 Sep 2022 07:16:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230368AbiITLQK (ORCPT ); Tue, 20 Sep 2022 07:16:10 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C92970E4C; Tue, 20 Sep 2022 04:16:09 -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 28K80hH4012600; Tue, 20 Sep 2022 11:15:56 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=f9bQ2Pub38kjwx86yF3O38oDOzoP4fBrS6r2luF9pNU=; b=C1NrOjHxBAdVB1K88iRB4R3gsa7H7tF3/BLY7kFCox9/mIZe0B6lg923tO3Ru2dIM1O7 sHZbS+UMwOAgHR+shHiLfVAYUXpn5pSd9W+wO6gi2N00FnaRwVmsEjFbgmrjWTFCokP/ jThlXFEGGUECIFAagIWzI6wRpCOR9y9yPRzsn3mOhx3BGk3sQj5u4OMFKdgmPSdhrDCa inyM91Z2zSZmJpfbHRHb6P4icnw2APLVyai7JBVOAFYZ8SfKijEy4/x8/nN2iWUQ4Yn5 YK5ovgyoSTz8tisPGObibtKFk+uqRSi8fZnb01ZKUAk2CW6dOox33p0UVvd7iwNjr7lD FQ== Received: from nalasppmta01.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3jq04y2b3w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Sep 2022 11:15:56 +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 28KBFtUc007692 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 20 Sep 2022 11:15:55 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:51 -0700 From: Rajendra Nayak To: , , , , , CC: , , , , , , , Rajendra Nayak Subject: [PATCH v3 2/3] clk: qcom: gcc-sc7180: Update the .pwrsts for usb gdsc Date: Tue, 20 Sep 2022 16:45:16 +0530 Message-ID: <20220920111517.10407-2-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: oYEWFkkhh4t9-3gxBRm_w6PPpDxX1NZM X-Proofpoint-GUID: oYEWFkkhh4t9-3gxBRm_w6PPpDxX1NZM 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 priorityscore=1501 spamscore=0 clxscore=1015 mlxscore=0 malwarescore=0 bulkscore=0 phishscore=0 impostorscore=0 mlxlogscore=980 adultscore=0 suspectscore=0 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 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. Since sc7180 only supports cx (parent of usb gdsc) Retention, there are no cxcs offsets mentioned in order to support the Retention state. Signed-off-by: Rajendra Nayak --- v3: 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