Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1882527lqa; Tue, 30 Apr 2024 01:55:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXEoitnvp+Rlg0bTM/+5NKnNUoiRmqK4fOMcz28R5pkvQwNJUZB7K/vtWN5R5sdEvOjEjJ7z50HCqQviThk4z9+K7PpwO+YaVXg7t1FnA== X-Google-Smtp-Source: AGHT+IFDra7VCtc7/fhkI0hgE5LNkNKk+ZRiYpm+ngCRPyEF8rQHGWis4sqAvxMdJ/Lh7Yjz2sxz X-Received: by 2002:a05:6a21:2e81:b0:1a7:5203:c002 with SMTP id yr1-20020a056a212e8100b001a75203c002mr1625963pzb.19.1714467347893; Tue, 30 Apr 2024 01:55:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714467347; cv=pass; d=google.com; s=arc-20160816; b=yT6VdLXqeKAzZTQfX2yAnsqxjW74431HRctrtkHMJ7OHg5xWOp3tVS25pB5YtcuYpL 6ebsbPsX5wPS8aHevqUlBH0/1bH03vGq2WjqgBaYhGAXRYgrFNZfNNVdSZwd4XDz96yL RgNOiVH0ygbCPV9NjPvGh7XA4gxuamWjhyNMYW1UhrbhU1KhACX+IRNyTZEItGjZSP5U ll9vuRmZrKFs7OFfC4vAwHpA8aBQMeYieiLI93AkL5gVwwe870yKLkloSi2DauzXyLbA oxhotQJ8jlD2lORUITeWNJg/93/mSKaTvPjv9vKAAazNXRw3ceI2kaz2yqQTfqqT4F7B cL6Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=Y6uTqfKoynlVxjI21T7uYyBdXiDNj2CtWTfpf3yueTA=; fh=5LY6UhUEtKdLRJzi9zU8Rbg0YkIGWLH0PBB7LLXmMXA=; b=Xsk8oGt0BYx8WsFHeVPyo4pU/qvm3TmwXYNAnvTCFZ3q4PskUa5dnkK/v9kM23XKmS RzqiilgtLOuS4yiWOs7AJ9X504jgAX6a1HDCSYPt+CAD02PV42K5BfUf2pLTGLxL6x70 IXX/jSM5cmp9Fm832gbyBCJZAGLccK3rYBJAA5OypeQ95pbQzO0fwRbJnW06iu4dJzcD kffq+gE6ukaiiEboLS5qZBvUHUqIDMcbqgjaPB+C3RG674q4v6Fsq+E1eHpB+Ct8pod8 urmVdQOrgsbSIL1+vl0Y/z738npu9XBbX+7Do9DVSMC538kMFCStbBP0v39pn2ARayo9 Gj/g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z14H+Gug; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-163588-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163588-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id w27-20020aa79a1b000000b006ee2557baecsi21371177pfj.282.2024.04.30.01.55.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 01:55:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163588-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Z14H+Gug; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-163588-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163588-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id D92F7B23128 for ; Tue, 30 Apr 2024 08:52:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8895E19DF51; Tue, 30 Apr 2024 08:50:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Z14H+Gug" Received: from mail-wm1-f43.google.com (mail-wm1-f43.google.com [209.85.128.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 10921128382 for ; Tue, 30 Apr 2024 08:50:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714467016; cv=none; b=EmVD8WbgvNoVjcm2s1MShMePWzQxODy2QYJuc1XrwyGVABAMnTILMcQGkYC0Fs6FvMcBWb6ctgyIRqmoHDIUxrLh9Z7pS7OtT2oZ2Pi2BapgdfcaI1FOLTYsneA/lDNKbQD5i4v29MHPIcLVHajO8TA98pyXZm5R1cwpucFKJtY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714467016; c=relaxed/simple; bh=kbui8HAPtLFHoAihV2ljcEUIS+VOYj9eDPfH+oMl4OE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FKwHx2ztDtKzpbwPzuiHgV8Bn38DI7jCTuxW/9URtF/nmXfFB1CWxRg+rWQceyllGUfQdSPdsXsPmot6umWQxLikYtbb45fFKTpp7p2ktpjKE8vqb91Z28EIOpFJNNc+sAZ2BdQSb9HPzv5jbKG544iOO4Kb0bXJ7pg4ZN+eUWU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Z14H+Gug; arc=none smtp.client-ip=209.85.128.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wm1-f43.google.com with SMTP id 5b1f17b1804b1-41b2119da94so43506205e9.0 for ; Tue, 30 Apr 2024 01:50:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714467013; x=1715071813; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Y6uTqfKoynlVxjI21T7uYyBdXiDNj2CtWTfpf3yueTA=; b=Z14H+Gug3SjA8O9bSVcw8qU1ZiGMAN5z5t/7onkBGb1uIla89qRmxKFURXXI63pg7q 3DJ/l0DgzVf77Pa+35LJAUV/AEkzdHhDCeIGT0xeBsjdp0mue4sfvyJF//K8/Tmdlz3H Y88MvoPPGjawtCzMzhi61aKKGfJo1KT/Wayb+DaA8YS20aT3ywvmkTYc6ZHGxKBFlBLs CnPv020iyR3EJ5R+qd3aoXy1BE8dXZbOwJAB8TFUx5RQI94wYhbJfIR52BaVAipChAQ/ ih0O95dCxjihAj8DY9qXUQsbaV8VE3bTLPgBEUP4pUhGWvDO3saTO/HDWLvM1PcUQXS2 l4hQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714467013; x=1715071813; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Y6uTqfKoynlVxjI21T7uYyBdXiDNj2CtWTfpf3yueTA=; b=JbJSAQ1800slHBsnw9MahtioHdbtuTXQW84xoMd4AIfNnvazXG4QUgpUBEuJBq+vb8 sWlGLDyL+WPGccp4t1B79IxaF3R9AMhqdxkUapzKxE9qkr+KH54DMpqO/ASJtHbKcwRU OmNwE/7gYZ9J9pWxs4/CJkn7aKhBj9TPLmA9SwdJ4DaGY6bpXKrIWPSGU3RGutiaqPs5 lS+qSYOFvciJkMEMhuIuk0jun3qkQso6U3Yx8Dwwh+js5NEy2wzT5NsVyiCp2c+gOIwI /HA98GopRyw6Eb5vV7fk57sRM6zCdJdmzC2Okq7OJOofz2a74t/WR0eJ8gEIlWLDKWQN QTRg== X-Gm-Message-State: AOJu0Yy7xQcjJnsyKQlJu3CCuXCr9Oc/D58R8FCIFl0PaBkxbsIZBMF6 1FQD6KqPYtnTLcKIwK0Scz4OWA1Vh7XyFTlLCZkEitK4vfaukIYkxldzO309QbU= X-Received: by 2002:a05:600c:a05:b0:41b:e406:5ae6 with SMTP id z5-20020a05600c0a0500b0041be4065ae6mr1722711wmp.9.1714467013510; Tue, 30 Apr 2024 01:50:13 -0700 (PDT) Received: from localhost.localdomain ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id p18-20020a05600c1d9200b0041bab13cd60sm14590670wms.3.2024.04.30.01.50.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 01:50:12 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Viken Dadhaniya , Konrad Dybcio , Srinivas Kandagatla Subject: [PATCH 2/4] slimbus: qcom-ngd-ctrl: Reduce auto suspend delay Date: Tue, 30 Apr 2024 09:50:05 +0100 Message-Id: <20240430085007.33607-3-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240430085007.33607-1-srinivas.kandagatla@linaro.org> References: <20240430085007.33607-1-srinivas.kandagatla@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1312; i=srinivas.kandagatla@linaro.org; h=from:subject; bh=RFguBTYvrqxK+fOEwZrYRQmoHKkXcXeO9yaMOm+ScGw=; b=owEBbQGS/pANAwAKAXqh/VnHNFU3AcsmYgBmMLC8DiccHI2mEf0fLCFWeIjJ/nOeJGEyIe6SJ 3Hw8oYeu+GJATMEAAEKAB0WIQQi509axvzi9vce3Y16of1ZxzRVNwUCZjCwvAAKCRB6of1ZxzRV N2iuB/9cHmUeup36IAovs9Qp0L4Ij8VpokiFeHpRielS9+SokQp0aHgHaEuFlvt1AaVdrW6D9Gt p0mH8A4yKPhwe0lWyaqqACVIj8hNOtyYrwx+09Xvc8zdDqzonb60NB2MNpop62vaZp8K6ZgZDvW AG3qMKgbfzCconj9PnXUqfGyD4vY/GmBRMO/wYWFha18GJWyluBmhzLkeowm3CJbpGyBhNR9bHZ YGJ4Lp2OtQg84sJe4GXQxS39aGdF2q08+H8XkQ4nLfR5UaWa/B7GHghoeR/NVPxQ88WGiSBwR+/ shf9WFhwHKlcky79l87Gr38eP4sxsp/HG+xP5LL3Rst4L4Kl X-Developer-Key: i=srinivas.kandagatla@linaro.org; a=openpgp; fpr=ED6472765AB36EC43B3EF97AD77E3FC0562560D6 Content-Transfer-Encoding: 8bit From: Viken Dadhaniya 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 Acked-by: Konrad Dybcio Signed-off-by: Srinivas Kandagatla --- 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 a09a26bf4988..ce28ac35b2b6 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 @@ -1575,7 +1574,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); -- 2.25.1