Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp1974890rwn; Fri, 16 Sep 2022 03:58:28 -0700 (PDT) X-Google-Smtp-Source: AMsMyM505PPnDjIgmFCaOI9KddAREs03Dku8v0N3mXSB85caU9YlhGbRIdZ5onH0Z/0OwDmRTnzE X-Received: by 2002:a05:6402:17d7:b0:44e:95b0:3741 with SMTP id s23-20020a05640217d700b0044e95b03741mr3413467edy.281.1663325908113; Fri, 16 Sep 2022 03:58:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663325908; cv=none; d=google.com; s=arc-20160816; b=DSjQ0TtRETQT8Dg5BHLraRY3NR7PADqNvvoIFzvWmbkFAcWoYPYWWSak4BeLZ/ZpNZ WZbebJi0sRI2oDz7nYnnRlYr5qsm6BgwHv35qH+XJi6l0G7FONByAkVIJ6g835XI7Hhf UNXjzAwABj25I0Stj+pcSg4cYBSbjIADjgg4K2h22UopfETJtEVCu/FfnhKF/cVXKass xc73rTraC3a6BctAHRFsEqOScCYJdz0RbTE2scNPfckLwAMFtuH45RnBwayBLhi0VInu C2ftMZfS7vBQ5lLhwd/4IY+oZalVj0Z4uo2uo57jysQEPd5OqA40vemCN/DeAAckboSq xP/w== 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=zAWjGjoW6tpV/jOGdwKqi3UMtQP10lr5Lrvjz3DwVnw=; b=ksSkB97SqZ1pmW06aU9bDSK7rwYxSpP2Mh+xRmhbzioXwJVHfGF+TCKSH5K6tkU/tn IgNSeNMrc8El4xT1tNP7UKGalJQHupB+iZN/EL08CzRjHx+ylzLeWPVKJKBcvNSD/nen NhSJBJeiDoJy37Iu68ApvYLkO6HSyE+LTDdLPbbSyIN/ssu8h3VF04rclSEaV1u3VNfV BE478uCbpELfat9LyyrNxKrRCtPA4WQFkRmfkujK9LtNWHKM8KzMK92OSZzDOo8oVu+k PW/NxMUaw7DHmq20Hy4Mdl17jsrnNQi/UC4fx6PyKp2fsE4C9YeaUZmj+KmZklmdG/I+ upCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=cKE3SGXC; 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 hb17-20020a170907161100b0077d7f75e2f6si11823264ejc.438.2022.09.16.03.58.02; Fri, 16 Sep 2022 03:58:28 -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=cKE3SGXC; 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 S230221AbiIPKp3 (ORCPT + 99 others); Fri, 16 Sep 2022 06:45:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36346 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231196AbiIPKot (ORCPT ); Fri, 16 Sep 2022 06:44:49 -0400 Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F05F9B2774; Fri, 16 Sep 2022 03:25:19 -0700 (PDT) Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 28G64fxT026145; Fri, 16 Sep 2022 10:24:57 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=zAWjGjoW6tpV/jOGdwKqi3UMtQP10lr5Lrvjz3DwVnw=; b=cKE3SGXCZdzuKMCs3qQ9Z0w2eScNj3fehUgYlTGvha9d/d5ukbG982vNLSsg6NIq0zcW twy3E4VZOEE/cTpADz5AeXD+y0YpCEN9FfvuBvFJLlzaeG7tsqSjy4HVOCs67UQ9SncM Zgis7MkEANV/I7Qg/MxcC7wNX3g817i1nmnBWtcgkIE2AI8p/ys4/2qnH3M1uttyv4Jw oBj656GaGD6yzss/wZn5gTBxr3dCiJnuhQ6Lq5FloG67Tdj+6+uOhvxThTD3McY4zlLO C9ctdgViBvNcKPJSVxA1R/2YarTjLSz/Gyzdx7SQl4S7vzc37S2yn3dYoge1yq640dGV TQ== Received: from nalasppmta03.qualcomm.com (Global_NAT1.qualcomm.com [129.46.96.20]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3jm93aapw5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Sep 2022 10:24:56 +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 28GAOuWk021535 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 16 Sep 2022 10:24:56 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:52 -0700 From: Rajendra Nayak To: , , , , , CC: , , , , , , Rajendra Nayak Subject: [PATCH v2 3/3] clk: qcom: gcc-sc7280: Update the .pwrsts for usb gdscs Date: Fri, 16 Sep 2022 15:54:17 +0530 Message-ID: <20220916102417.24549-3-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-GUID: 1dVE0F1UsWyMyS8g6SXggtyTYDOskJnS X-Proofpoint-ORIG-GUID: 1dVE0F1UsWyMyS8g6SXggtyTYDOskJnS 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-14_04,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 clxscore=1015 spamscore=0 priorityscore=1501 impostorscore=0 mlxscore=0 phishscore=0 mlxlogscore=999 bulkscore=0 lowpriorityscore=0 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2209160075 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. Signed-off-by: Rajendra Nayak Reviewed-by: Matthias Kaehlcke Tested-by: Matthias Kaehlcke --- v2: *Updated the changelog *Updated .pwrsts for gcc_usb30_sec_gdsc 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