Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp517742lqc; Fri, 8 Mar 2024 04:41:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUL+cj41HFugLBHD/RmtaQU0NGKvtL5L9HFgi2BLmRT0VFhJW409ZzkG1Y58SEI7vcfIb6iqUdioKKG2AedTXwI68LO0blQhgMcLcXS3A== X-Google-Smtp-Source: AGHT+IHvahM3XIvnW69QxKmV5MEhlPhOU0ZH5niLE/NL7qnfKkIOX0ZJWg0mNQFDg8tJphpiXYr8 X-Received: by 2002:a17:906:a20c:b0:a45:a98f:2d00 with SMTP id r12-20020a170906a20c00b00a45a98f2d00mr7273796ejy.16.1709901718214; Fri, 08 Mar 2024 04:41:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709901718; cv=pass; d=google.com; s=arc-20160816; b=pBkxvBDPbfNdMUMLAaHTprYUpt90vuGZx12ku7u/KgNOYhmxIr7GHAJTmczc/Y1Dzp lluSbv1/5w5M68aNLXY+wn2oAqh8hJTjYqVVB2R5Ht9LsGIQjsyghRYe9nvcJI1mmCZl ETFniXOo8+l8OYGa0GUtJmCUdHKoS2M9bFPyHs1WByrP5C9N1FxHYE14v/NB+uefpk2h DF2nEnexW7d56HR/UctwZZz0ZbuW7yJtnssUfmd+l2TY9fqDPLK4qvfRMjfwwG6qw6B+ ZM3ZjkFj4q0cBEZvH5qZrAobndcujt3XjMVlE6xwSPJxBtmxpxIdfoVbskap9WqroZeW x+dg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:message-id:date :subject:cc:to:from:dkim-signature; bh=xWK+KGxSm6EYuf9aKqHSC0xJscIex/nm/iyXNhqPd/o=; fh=BUVFUWhdsRvtylOS6YZwzUDTgtpbLp4Lx2bcuHBZgeI=; b=DQUAJ9hDPorBTnTZ5pizzp3kZwRSu1NMTMLvuwPfK+6pICU+y8g60gi/w0GUarS7I4 v1hUDv6J9G2gQo9JaspJW/F/NUe/Ci2Dkli46hOQT3qbYkB5mNT6bGYId+KfjI8bvCnM tko/dmle/GPlhFaiYUZXmI+/yQz31cQXPpTaOTK1H2638CLObrE31dl/4iFh92BDK/zz /X4e/xiZ31g36OVjG01jIisp+uXo9VvfuE/+xYxetcYP7t1a9RJ+ImxyrTMFilRTBrzi 3xVOnZxFAXS6fUJaaxOBXuPicMkPJJj1T2Mtnpo8hjxGhjDILgd/SvbFG9IrzXFapd03 YhbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=MmeNv1j2; arc=pass (i=1 spf=pass spfdomain=qualcomm.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-97017-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97017-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id s26-20020a170906355a00b00a3e3744450asi7752184eja.1051.2024.03.08.04.41.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 04:41:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-97017-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcppdkim1 header.b=MmeNv1j2; arc=pass (i=1 spf=pass spfdomain=qualcomm.com dkim=pass dkdomain=quicinc.com dmarc=pass fromdomain=quicinc.com); spf=pass (google.com: domain of linux-kernel+bounces-97017-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-97017-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4333E1F22A3A for ; Fri, 8 Mar 2024 12:41:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F409218EAB; Fri, 8 Mar 2024 12:41:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b="MmeNv1j2" Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B789310A34; Fri, 8 Mar 2024 12:41:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=205.220.180.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709901705; cv=none; b=UrPbVswEQriRO1ZIckluO3AtMwtUIvTEcKXowjr1/scWk5Nzpg0peF66xkGyAWDJBxbMVJhuiUkGjI1EnAqZZV6gApuM2tb3SfEvIXMRRhCsW/8UElHFlxhO1umYR5kuqPtn7+waHzi1KbWSfmorInDMSdpUbRirD5OgPU988Mk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709901705; c=relaxed/simple; bh=pICe2GlJL7NcXxK2+pFuQf8AqphEs57jHM44QIo2Vcc=; h=From:To:Cc:Subject:Date:Message-Id; b=J3pCyNWzpI94oS8GlxtcgK3REbWKTk+yDPjlARGocyyqxvoInmJTA+Xn31tJof7Mzu9lqxkAKSWbG0l0u9RcHsCTXfupxjKPh5Hm+CuTDuIbxbEXfShW63bCN0PYsPsEQxrTyu3/nwn8WmO+w8OIsip2h4SfWVnuHTjP9QeEVss= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com; spf=pass smtp.mailfrom=qualcomm.com; dkim=pass (2048-bit key) header.d=quicinc.com header.i=@quicinc.com header.b=MmeNv1j2; arc=none smtp.client-ip=205.220.180.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=qualcomm.com Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 4283tO98012824; Fri, 8 Mar 2024 12:41:36 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:to:cc:subject:date:message-id; s=qcppdkim1; bh=xWK+KGxSm6EY uf9aKqHSC0xJscIex/nm/iyXNhqPd/o=; b=MmeNv1j2bvvUXSnA9lMPzNInCs/K wv0HfF1gBYsEFdUHq4RDY0KHmb9TxXNNyNxjsSfyVBeONBn+x+GzjNk7ZTsBivFJ /Bx9SoOYNAg2JDCbMnccKGxtKiqiPrGYVFFwVg1d0VkBj18vE0dLB7g+W9XcNj+Y IBPHY2tHq2COVv6H6q+EbCTgq2xeHvienHbbf6nCvUC1vOW0ELP2CmP3eQObiXjP o92iJsDXWiJjrmbchqs34MCbRipMSgX08kxWldwSoUl/1DMDCBnsRDUTZOFeAW4T bV7wUZCP/tucJTtLvmz1exd9MMO7skNjR809bhFJfXBYU6QTNs1OAl/vRw== Received: from apblrppmta02.qualcomm.com (blr-bdr-fw-01_GlobalNAT_AllZones-Outside.qualcomm.com [103.229.18.19]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3wqn8m1rsg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 08 Mar 2024 12:41:36 +0000 (GMT) Received: from pps.filterd (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTP id 428CfW9u024479; Fri, 8 Mar 2024 12:41:32 GMT Received: from pps.reinject (localhost [127.0.0.1]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 3wkw6m415d-1; Fri, 08 Mar 2024 12:41:32 +0000 Received: from APBLRPPMTA02.qualcomm.com (APBLRPPMTA02.qualcomm.com [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 428CfWWW024474; Fri, 8 Mar 2024 12:41:32 GMT Received: from hu-maiyas-hyd.qualcomm.com (hu-vdadhani-hyd.qualcomm.com [10.213.106.28]) by APBLRPPMTA02.qualcomm.com (PPS) with ESMTP id 428CfW5o024472; Fri, 08 Mar 2024 12:41:32 +0000 Received: by hu-maiyas-hyd.qualcomm.com (Postfix, from userid 4047106) id 68FA95001D9; Fri, 8 Mar 2024 18:11:31 +0530 (+0530) From: Viken Dadhaniya To: andersson@kernel.org, konrad.dybcio@linaro.org, srinivas.kandagatla@linaro.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Cc: quic_msavaliy@quicinc.com, quic_vtanuku@quicinc.com, quic_anupkulk@quicinc.com, quic_cchiluve@quicinc.com, Viken Dadhaniya Subject: [PATCH v2] slimbus: qcom-ngd-ctrl: Reduce auto suspend delay Date: Fri, 8 Mar 2024 18:11:29 +0530 Message-Id: <20240308124129.7833-1-quic_vdadhani@quicinc.com> X-Mailer: git-send-email 2.17.1 X-QCInternal: smtphost X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: N7kfrcuy2M1ezXttnyc7DxW46hEm_5JO X-Proofpoint-ORIG-GUID: N7kfrcuy2M1ezXttnyc7DxW46hEm_5JO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-08_08,2024-03-06_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 mlxlogscore=658 clxscore=1015 adultscore=0 phishscore=0 impostorscore=0 mlxscore=0 malwarescore=0 priorityscore=1501 suspectscore=0 spamscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2403080101 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Currently we have auto suspend delay of 1s which is very high and it takes long time to driver for runtime suspend after use case is done. Hence to optimize runtime PM ops, reduce auto suspend delay to 100ms. Signed-off-by: Viken Dadhaniya --- v1 -> v2: - Remove macro and add value inline. - Link to v1: https://lore.kernel.org/linux-arm-msm/d784e46d-974d-4bf3-a2d3-491e7ad19701@linaro.org/T/ --- --- drivers/slimbus/qcom-ngd-ctrl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/slimbus/qcom-ngd-ctrl.c b/drivers/slimbus/qcom-ngd-ctrl.c index efeba8275a66..5e132273c6c4 100644 --- a/drivers/slimbus/qcom-ngd-ctrl.c +++ b/drivers/slimbus/qcom-ngd-ctrl.c @@ -81,7 +81,6 @@ #define SLIM_USR_MC_DISCONNECT_PORT 0x2E #define SLIM_USR_MC_REPEAT_CHANGE_VALUE 0x0 -#define QCOM_SLIM_NGD_AUTOSUSPEND MSEC_PER_SEC #define SLIM_RX_MSGQ_TIMEOUT_VAL 0x10000 #define SLIM_LA_MGR 0xFF @@ -1571,7 +1570,7 @@ static int qcom_slim_ngd_probe(struct platform_device *pdev) platform_set_drvdata(pdev, ctrl); pm_runtime_use_autosuspend(dev); - pm_runtime_set_autosuspend_delay(dev, QCOM_SLIM_NGD_AUTOSUSPEND); + pm_runtime_set_autosuspend_delay(dev, 100); pm_runtime_set_suspended(dev); pm_runtime_enable(dev); pm_runtime_get_noresume(dev); -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation