Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1892232lqa; Tue, 30 Apr 2024 02:17:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUyNRg8QS4jPrDVeREdsapfmZ3gLIpMA8laeBt7X6ojswflDGhNOp3TNk3C0M0Gi2ROfaGvO2bmr2qahpo86+uco+4Bx9nCSLR/l/33hg== X-Google-Smtp-Source: AGHT+IGLDDFh6my2Eh62gw0DoN+PdA7oT6n9OEaFGs47S85X89Q9O7z0CCGvfBDeUOblMC48G1i+ X-Received: by 2002:a17:906:2409:b0:a55:b2bf:2be8 with SMTP id z9-20020a170906240900b00a55b2bf2be8mr7402131eja.56.1714468643909; Tue, 30 Apr 2024 02:17:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714468643; cv=pass; d=google.com; s=arc-20160816; b=rGm3fs6yC+m+y3BtaG7+gAh/rTznT7Ama5/NkUuej5I+f8cFuftiFM1UM33D3QQeL4 iSiAWSWMCtMWmeDhIXyKAsKU82qEsMxB9ZrQEAmIlFMev8mN3nbP/KxWwDtk7fKmNMvT eYdNTRaFG9hOdTMxZJdsvlHg5Gi7bFHDfCSwKzRbvW+Z+iuxcMcS1uTwJgYSk1ZKzc8k htuDA7Wdi1ejh/LL5Va1FF4jjVm+CMr+H5de1jM/z+piH0C8J44pKOTMwridlwmNRmDl D7CU8Jyp1rXyyuFGWRSQ7MwY28CXybs0tpVdcbn1ujksRkz4bitult7lnSdIW4wsNnk1 1Ngg== 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=06w4XhAqcX+MXj5vhDSnQuxQznMKz/pV9EKkEX/ingWEY2tqwA/SWhb9im92hmVUAT 2Spe5o/UFamG+sqz10BAOdkbzld5wkFB1zX/3cAQs37pXo0UYsfXwZfhFhXelQeTpVSk ksyi90zJUgEkyuV3J1d/RPXJ9qA17fX+H3GCsuptoMO1Z8FWxwZoXvWDS9lRkufQup40 jKh9gsxE6MS2EJaA6TCs455Jd4hdWa1L2mGz1HsSmhRfMc54JgrJ6CHWVKXZind/Snuc GUFdvNws2s5LySJlcRuyyY1OuV3h1lD/BwdCV+vuw29bkDajvnTVS56KResBgrZrRB2E oxbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Oc2IVSfD; 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-163634-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163634-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id q17-20020a1709060e5100b00a58a5970e5bsi6859942eji.251.2024.04.30.02.17.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 02:17:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-163634-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=@linaro.org header.s=google header.b=Oc2IVSfD; 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-163634-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-163634-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 7BD051F23320 for ; Tue, 30 Apr 2024 09:17:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E21CE12882D; Tue, 30 Apr 2024 09:17:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Oc2IVSfD" Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 809F2127B68 for ; Tue, 30 Apr 2024 09:17:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.47 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714468631; cv=none; b=M2zl4jMcyBQSXzw1lbOLOdmvvhDhn7NahU8zQw1fUhcImzAineNzAZ0tDDkOYDjHRPdLpzsjHfPlr3wJFa/r2sP42NKyVK2nUMOHudqYbRTNxMcA82cquGFgZuTakMi3fQaK61u3dksNIi2653goNYCoq8Zt57zbXyjJNysh+/I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714468631; c=relaxed/simple; bh=kbui8HAPtLFHoAihV2ljcEUIS+VOYj9eDPfH+oMl4OE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pMjs3BXPTXZh0TwwwWKurlnCBFm/7MyBZKf6eGrILByjwaT7sCcZOC6VBx/bWu/6qC40nto7tmWI9EuSYzfrOm8ODnyhNhL4A+e+Yh8MoKQT4DeWBPa36a5c+bL5ZyWGSdiQlyVL0Mroz0LlfbfsnHExSxAZ1pcfegeMHYjWAf4= 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=Oc2IVSfD; arc=none smtp.client-ip=209.85.128.47 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-f47.google.com with SMTP id 5b1f17b1804b1-41c7ac71996so9454215e9.3 for ; Tue, 30 Apr 2024 02:17:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1714468628; x=1715073428; 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=Oc2IVSfD8ouli3xisE6+E+Mh80edYEPXMvWg3VzBtrjnKBcMuqSNNl9AO4Tc/XBcim JoZeZ2dr7BKkYQNyOrqXCu32oASvpfQmGsySXSt79x5bJ8sgpfOK6uwabY3HpiFngxtq Rr7z7vdTJTXIOnaO6DKBwqxEEXELaaT4ijA9f3BSqwcVts5OEc7TSpy1PI4Aqhfo03MY 1O9BZE5eB9nJLgf21M3SXLPlKb/A+WbMfwEUEGdlR2soYtvPmCq9gP7eYwT6RJtA7SmO yTi1thqPKi4kjcXvOBtEStRcgX/kxCnVzLXTnQdUUIQAPsHYz6COQVFJ6xeYAkqq3RYG Hppg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714468628; x=1715073428; 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=P8aj01b5QLy+WS8PXmyrRt5jLB0Zk77GNn0voIw2/Y/fNwL0f5Dxb/WcPZOuUiTkxw r1L9bY8s6Y8VquC/Zn3ba2w8P4+3Pjw81nKWrQV8mYKX+5veGx0k43ZuBzYZSeoCuNhq b8p6m/GLJqtSx1kLXNNCaXqFDypsjeLdmI3FMJbSe3k3jxtojNJo7EapO1XN1MJ2sE5O IEmPxKCPkD+ZWtptlbAQVXYj98tOxebWuovkO4dD2AOlc1/M5MnpZ2gR8aWff9Lo/PLm Ct7nQ/rogIjhJknXftayPgkInZMpQvFsxy6mxP0aKqi/Ox/eJi5OFuCt386aiawwCbeL QE+A== X-Gm-Message-State: AOJu0Yz02tqa+m9vJTWLiDLO6kDQaG1FfLhNomvLK6ZTtSf96Rgq0LTp IRjx9oSOg7zk1U/ygc3pyAMTD8PmGJkoEnUG06zYF5655jMMPhUUCyo6kpzX76E= X-Received: by 2002:a05:600c:1c91:b0:41a:ff7d:2473 with SMTP id k17-20020a05600c1c9100b0041aff7d2473mr9514585wms.4.1714468627926; Tue, 30 Apr 2024 02:17:07 -0700 (PDT) Received: from localhost.localdomain ([5.133.47.210]) by smtp.gmail.com with ESMTPSA id l6-20020a5d4106000000b0034d8b0b5329sm935513wrp.87.2024.04.30.02.17.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 02:17:06 -0700 (PDT) From: srinivas.kandagatla@linaro.org To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, Viken Dadhaniya , Konrad Dybcio , Srinivas Kandagatla Subject: [RESEND PATCH 1/3] slimbus: qcom-ngd-ctrl: Reduce auto suspend delay Date: Tue, 30 Apr 2024 10:16:55 +0100 Message-Id: <20240430091657.35428-2-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240430091657.35428-1-srinivas.kandagatla@linaro.org> References: <20240430091657.35428-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/VnHNFU3AcsmYgBmMLcFDiccHI2mEf0fLCFWeIjJ/nOeJGEyIe6SJ 3Hw8oYeu+GJATMEAAEKAB0WIQQi509axvzi9vce3Y16of1ZxzRVNwUCZjC3BQAKCRB6of1ZxzRV Nyo7B/9Yc+f/HLdPowfEFdgoiSDoutDH9IxcINc9mjzDfExtHWW9WPC898DdVoCQ0HyYSIH9YcV 1mjovBkITfZDKkyq29oFhEuyVzocfjzQFWgZAKXZtrA2tCyoegkCIuB1CYmaKifuqvmuLqKpvEo uFhyhn6DsSqez6c4lAKGB9125cuWPI01bJApmXWHJ9yVSlQfMUNDY8LUHqwsFb2CwQ1sLjnZ2DJ DLYnC8ANE83NZCXZ7tqwPnv/3nFKFOTM/Xc3/afHzh4F78rt0Ycx2Q9UPEGlbI/cW1T0zCFLVt+ EQ6Q+/XQARjGBFCooBMr1UjXhCfpOmbW/dsgxIkxKV1fI6Uy 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