From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 94F09286415 for ; Fri, 4 Jul 2025 07:54:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615643; cv=none; b=r2KQ4Qyn/MpUD09c8YSM53+ohhwd0J/b44/2QW2vGRV6sD8jPJpV461tTiiVf3xREXVaVmS1oNdUSSF0LXWhAqK86Gaqti1Fa8vTBO0914MlMw51wIvBZbA28n8tut1xAsuXT+S0rv2Tq73jo/Uym9UrnuY5E/XNO4k5ZFFBWG8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615643; c=relaxed/simple; bh=2ytS98LP09yxUibnFIJ15FCH120g81M7gToAN6HatlE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=GYuwmTTOSdzNE3msnMfgvnK5uepmNJaoyhP4mgatiZjJ9hefVmTLvHm3xQ6BRO+Jg9zFo7dMAQ8tIaXG6J+EqdCA/45XAjCUdO+Olx/mroEV/LxDlgMEZpSDT0xaeffcNTrQTmVIXQPlgoco3+7fWUO/J2XCt9huB3O05ZZjwnI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=leyJnn35; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="leyJnn35" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615641; x=1783151641; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2ytS98LP09yxUibnFIJ15FCH120g81M7gToAN6HatlE=; b=leyJnn35wA1fclrEMPDqejnN+NT+wnDJyH2jfAWilYUkAvsCXPkoGkNw wl8+epK3MWsWM0VQpidVfsuht2KDPWUvEx8lwAXx54zPJPOrNf/5NVJ+p jNmzFNCFChr2XLbLFs3AwR0MN4BLJoJR5ZLKQEg0ZiY1S/KJlC4x5xtw1 i2AqT7snd1OlElVGEKC6sCkuxp2GgbUrWSWTGw0py8JB8wLjE0Ri33qNT ryvVCtHkiTyU5LRmTc1emTlo5DqVQKs0HL6YQNxSP6M3w4F37Qk/WwlTT oTU+PCjDpa2bo5v2VcbSooT/QEeaizVLaatpmXdGCVCalylzLiJPxU5Kk A==; X-CSE-ConnectionGUID: Ev9syrP0QDiawrKv+2OxZw== X-CSE-MsgGUID: 2YOVGBitTQmQLmo4VnOsFg== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494446" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494446" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:01 -0700 X-CSE-ConnectionGUID: MHb23xx3RHCVWynOmTIl3A== X-CSE-MsgGUID: +zKqp9/NRbmdahhWuJas7w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924153" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:53:59 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 1470F44394; Fri, 4 Jul 2025 10:53:57 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Jacek Lawrynowicz , Maciej Falkowski , Oded Gabbay Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/80] accel/ivpu: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:53:56 +0300 Message-Id: <20250704075356.3216699-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Reviewed-by: Jacek Lawrynowicz --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/accel/ivpu/ivpu_job.c | 1 - drivers/accel/ivpu/ivpu_pm.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/drivers/accel/ivpu/ivpu_job.c b/drivers/accel/ivpu/ivpu_job.c index 060f1fc031d3..05a1a768e1c9 100644 --- a/drivers/accel/ivpu/ivpu_job.c +++ b/drivers/accel/ivpu/ivpu_job.c @@ -1049,6 +1049,5 @@ void ivpu_context_abort_work_fn(struct work_struct *w= ork) mutex_unlock(&vdev->submitted_jobs_lock); =20 runtime_put: - pm_runtime_mark_last_busy(vdev->drm.dev); pm_runtime_put_autosuspend(vdev->drm.dev); } diff --git a/drivers/accel/ivpu/ivpu_pm.c b/drivers/accel/ivpu/ivpu_pm.c index eacda1dbe840..761b4d7e1a5a 100644 --- a/drivers/accel/ivpu/ivpu_pm.c +++ b/drivers/accel/ivpu/ivpu_pm.c @@ -359,7 +359,6 @@ int ivpu_rpm_get(struct ivpu_device *vdev) =20 void ivpu_rpm_put(struct ivpu_device *vdev) { - pm_runtime_mark_last_busy(vdev->drm.dev); pm_runtime_put_autosuspend(vdev->drm.dev); } =20 @@ -428,7 +427,6 @@ void ivpu_pm_enable(struct ivpu_device *vdev) struct device *dev =3D vdev->drm.dev; =20 pm_runtime_allow(dev); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); } =20 --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 58F2F288C34 for ; Fri, 4 Jul 2025 07:54:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615644; cv=none; b=bQfDgvsHmLDs04ZvGLj/6u9Q+eGp9gbNFoYTHXcf8foLv5HJQAcuhKs6mW9WyimYxBhRVA4DR5uojlCg8p5oKTQJTFGrPbvxEvYi4k/EPOd8SIafTWFgVFzVbouvMEq1ZtK4tYPKk+q4Xr8whoSyTsbyXsbAZe+w/I3XnoFwJzA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615644; c=relaxed/simple; bh=/KSubG/583tj8/waloKAOv1jSxfdiDCDSVtOLpK0Epo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=dfbrnPFJFtCJbbvL7LkP7Y/SlscZU+lVgfjVfuZeu+BlqKEIOTTjVjp3I2uQTw5dix4YcNzp/jf5bhiiEQ9+Yp4M0K2udRZY0poGA/l4LiUAeGBtF9ndJ9KkmvSw8P4w1QWYqZengJeQ+neyJt91rs2zl+jyXHy8kmhzC1K3/WY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=jj4CNFN/; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="jj4CNFN/" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615643; x=1783151643; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/KSubG/583tj8/waloKAOv1jSxfdiDCDSVtOLpK0Epo=; b=jj4CNFN/3b0iQQ8U/wey5lhnKEuztfTDAnBNvqiOv4ob+2HrD8OefSBw Ehud6kKIxHPybVB+rO0YEEO6w73JKRQqEC/jGGkO1mIPXanEcWSI37F+g Y7jD/yQGLwoeV9x8bCmPiyW5XFMfSo+LzaCjguAGnmj+py/EQiMxLUITs Ns9oEhVRLSQN6DDbJqlALlCWViv84r1DNIUkn3DedVol9nZR7vgCzLq+g 1jrBLrhLvfkI46NLVCWPJr1EFEwgzzyw1mtqfD53PDRV3yQiR0qhU37DZ zQTZSq3FIo8A/EfB79oM8gjcSpc4rWd3Vol46ucb75hzkUL9BYgiPw4Bo Q==; X-CSE-ConnectionGUID: zxY0d5jHRYi7E/mZr9+cTg== X-CSE-MsgGUID: zNzbxTJISJqphM6fody+pQ== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494448" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494448" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:01 -0700 X-CSE-ConnectionGUID: dVgidJ0MTPCgshrCmpcizw== X-CSE-MsgGUID: IvkVuz9SR/OUKP7ve5SU1A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924155" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:53:59 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id CA01544419; Fri, 4 Jul 2025 10:53:57 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Min Ma , Lizhi Hou , Oded Gabbay Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 02/80] accel/amdxdna: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:53:57 +0300 Message-Id: <20250704075357.3216774-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Reviewed-by: Lizhi Hou --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/accel/amdxdna/amdxdna_pci_drv.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/accel/amdxdna/amdxdna_pci_drv.c b/drivers/accel/amdxdn= a/amdxdna_pci_drv.c index f2bf1d374cc7..c7083a657333 100644 --- a/drivers/accel/amdxdna/amdxdna_pci_drv.c +++ b/drivers/accel/amdxdna/amdxdna_pci_drv.c @@ -101,7 +101,6 @@ static int amdxdna_drm_open(struct drm_device *ddev, st= ruct drm_file *filp) failed: kfree(client); put_rpm: - pm_runtime_mark_last_busy(ddev->dev); pm_runtime_put_autosuspend(ddev->dev); =20 return ret; @@ -125,7 +124,6 @@ static void amdxdna_drm_close(struct drm_device *ddev, = struct drm_file *filp) =20 XDNA_DBG(xdna, "pid %d closed", client->pid); kfree(client); - pm_runtime_mark_last_busy(ddev->dev); pm_runtime_put_autosuspend(ddev->dev); } =20 @@ -296,7 +294,6 @@ static int amdxdna_probe(struct pci_dev *pdev, const st= ruct pci_device_id *id) goto failed_sysfs_fini; } =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); return 0; =20 --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 2D0AF288C32; Fri, 4 Jul 2025 07:54:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615644; cv=none; b=O87kaozHsZE6mTLVPozUaGtqi156lVtvMgkJFw5myDh+vCaGvcFds6XhwVKaXwrb0xqyV8rVpiwmFpXMD1IqI3SDsUf6njhxUCE2FJalplwCmChokkJeP90F/BLdAlUdojW34yMwEFuofLnMtVM5OqDemoZddOTW36Ubwubs7s4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615644; c=relaxed/simple; bh=CWpHJt0mAGlZmpQFo1TAIOu+B6eRgVjwmndVF9RzlEU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ZdzRK6JtT6rW2kAxzK179hWb3zA2ugfTe7u2Thoz5U0CY3T3CiR0l8pAFB4mMebFlj5pqgQEQdhx/ukKzu6WXbqR7NXdwQ75wJYHm7zVMgkWpLxVhtU0XwcfvxKYaKM1rsQwAbWm/tyBgdayHqGHc4TFucrMbx9hCiUFFoAlv0g= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=UoJSx5gn; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="UoJSx5gn" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615643; x=1783151643; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CWpHJt0mAGlZmpQFo1TAIOu+B6eRgVjwmndVF9RzlEU=; b=UoJSx5gn4DLSS6OE0AcrJwjNMmRSFf9BnqCDbi6SxXl4KpWFAh2iEsgG o0VdAAvqQK6CmA37K/7z4wl2pkA8KZrb9KW0C4uj4prFb6q4H4oWItx2V kFhs1O1Ixf6cTAJQguCBg5KhP93yZKXmmDNHEuIV1/VBlMZNlEDeUFDq2 +7o25/6hetRz//K5CkSTqy0BfFPNVfINtmAZcHBlMzoNXRkw2u/QwogAB lFoVjTTnMgK372geXbULU5dGzpBWemUguj1gNj9o0W3LGsv96mgXKvfYp QlOjolNq9NC8PfzcSsEuAk9KzT2dJTMvJxYvyz+wzxEoCShc/Vx++qPLq g==; X-CSE-ConnectionGUID: GyoexHqiRd+ShRk4gGZUjw== X-CSE-MsgGUID: yUgqgsLfTWmLaO+YHR3HNA== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494452" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494452" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:02 -0700 X-CSE-ConnectionGUID: uzep9yVhRC2bPONuEIo4wQ== X-CSE-MsgGUID: XbAEsj6mSMenUt/c5Hz3CQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924157" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:00 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 648B844424; Fri, 4 Jul 2025 10:53:58 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Marcel Holtmann , Luiz Augusto von Dentz , Matthias Brugger , AngeloGioacchino Del Regno Cc: linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH 03/80] Bluetooth: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:53:58 +0300 Message-Id: <20250704075358.3216833-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/bluetooth/btmtksdio.c | 1 - drivers/bluetooth/hci_bcm.c | 3 --- drivers/bluetooth/hci_h5.c | 2 -- drivers/bluetooth/hci_intel.c | 3 --- 4 files changed, 9 deletions(-) diff --git a/drivers/bluetooth/btmtksdio.c b/drivers/bluetooth/btmtksdio.c index c16a3518b8ff..83aee551a848 100644 --- a/drivers/bluetooth/btmtksdio.c +++ b/drivers/bluetooth/btmtksdio.c @@ -615,7 +615,6 @@ static void btmtksdio_txrx_work(struct work_struct *wor= k) =20 sdio_release_host(bdev->func); =20 - pm_runtime_mark_last_busy(bdev->dev); pm_runtime_put_autosuspend(bdev->dev); } =20 diff --git a/drivers/bluetooth/hci_bcm.c b/drivers/bluetooth/hci_bcm.c index 9684eb16059b..08f9a232e375 100644 --- a/drivers/bluetooth/hci_bcm.c +++ b/drivers/bluetooth/hci_bcm.c @@ -326,7 +326,6 @@ static irqreturn_t bcm_host_wake(int irq, void *data) bt_dev_dbg(bdev, "Host wake IRQ"); =20 pm_runtime_get(bdev->dev); - pm_runtime_mark_last_busy(bdev->dev); pm_runtime_put_autosuspend(bdev->dev); =20 return IRQ_HANDLED; @@ -710,7 +709,6 @@ static int bcm_recv(struct hci_uart *hu, const void *da= ta, int count) mutex_lock(&bcm_device_lock); if (bcm->dev && bcm_device_exists(bcm->dev)) { pm_runtime_get(bcm->dev->dev); - pm_runtime_mark_last_busy(bcm->dev->dev); pm_runtime_put_autosuspend(bcm->dev->dev); } mutex_unlock(&bcm_device_lock); @@ -749,7 +747,6 @@ static struct sk_buff *bcm_dequeue(struct hci_uart *hu) skb =3D skb_dequeue(&bcm->txq); =20 if (bdev) { - pm_runtime_mark_last_busy(bdev->dev); pm_runtime_put_autosuspend(bdev->dev); } =20 diff --git a/drivers/bluetooth/hci_h5.c b/drivers/bluetooth/hci_h5.c index d0d4420c1a0f..e932d66a1cc0 100644 --- a/drivers/bluetooth/hci_h5.c +++ b/drivers/bluetooth/hci_h5.c @@ -592,7 +592,6 @@ static int h5_recv(struct hci_uart *hu, const void *dat= a, int count) =20 if (hu->serdev) { pm_runtime_get(&hu->serdev->dev); - pm_runtime_mark_last_busy(&hu->serdev->dev); pm_runtime_put_autosuspend(&hu->serdev->dev); } =20 @@ -634,7 +633,6 @@ static int h5_enqueue(struct hci_uart *hu, struct sk_bu= ff *skb) =20 if (hu->serdev) { pm_runtime_get_sync(&hu->serdev->dev); - pm_runtime_mark_last_busy(&hu->serdev->dev); pm_runtime_put_autosuspend(&hu->serdev->dev); } =20 diff --git a/drivers/bluetooth/hci_intel.c b/drivers/bluetooth/hci_intel.c index 811f33701f84..6240ee23e030 100644 --- a/drivers/bluetooth/hci_intel.c +++ b/drivers/bluetooth/hci_intel.c @@ -280,7 +280,6 @@ static irqreturn_t intel_irq(int irq, void *dev_id) =20 /* Host/Controller are now LPM resumed, trigger a new delayed suspend */ pm_runtime_get(&idev->pdev->dev); - pm_runtime_mark_last_busy(&idev->pdev->dev); pm_runtime_put_autosuspend(&idev->pdev->dev); =20 return IRQ_HANDLED; @@ -371,7 +370,6 @@ static void intel_busy_work(struct work_struct *work) list_for_each_entry(idev, &intel_device_list, list) { if (intel->hu->tty->dev->parent =3D=3D idev->pdev->dev.parent) { pm_runtime_get(&idev->pdev->dev); - pm_runtime_mark_last_busy(&idev->pdev->dev); pm_runtime_put_autosuspend(&idev->pdev->dev); break; } @@ -1003,7 +1001,6 @@ static int intel_enqueue(struct hci_uart *hu, struct = sk_buff *skb) list_for_each_entry(idev, &intel_device_list, list) { if (hu->tty->dev->parent =3D=3D idev->pdev->dev.parent) { pm_runtime_get_sync(&idev->pdev->dev); - pm_runtime_mark_last_busy(&idev->pdev->dev); pm_runtime_put_autosuspend(&idev->pdev->dev); break; } --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 6440428A41C for ; Fri, 4 Jul 2025 07:54:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615648; cv=none; b=UzZ4GW/+L0TY0GrdSC0U7SnRad2IhmCW8+kArJneoao3EACz+ad+qAUWmQncGJmiXRZuwq9hFGm8qcrdVBxdTmJiKQ7II6CphM14/5hk2cuVQGmmPAANmFL31v4zi+W5vdDB7r8BZmpLBzobRI6p5f2G/VYobnHtPK55X8VFhyI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615648; c=relaxed/simple; bh=nHMM1O4IslvrfeqGodyglti8CaB1ROJeZIDQqlgaxII=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=kcgYRr7eqeF5MO7NtHBkwf8z1wjLmnbYmpVIXyycR4c4HWDXxIEwsm9VtWQFXnyu7DNw7QBgwSI5HykjrOXvEdaRsOVNXvCPzkqnQXz8NxD8alFRgglvnHFJWkYa58tHSIIHhEu/tb2QDlWlqglkCpePDKTzW9kl52sG3jLL0C8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=XjgSbj4S; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="XjgSbj4S" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615646; x=1783151646; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=nHMM1O4IslvrfeqGodyglti8CaB1ROJeZIDQqlgaxII=; b=XjgSbj4SAIXbvAlmLFjnToeJPx1T9qdrQDUDNPEz+o2qmf2LbcuPcyzR J26XdO7ntK+AZzRwpAyO4yzD8Y/PXgSXh/R15bAVNDfcmyMfKBlifwy+G A0Twqexx3VaSRFQ/Ske4/9ueirHWV7D6/NaBRIkdhiWJr5u5m6j5L2lFC RQTBuJ6i1KluDIkV7NL9W4rpn4KFKdvkjTPUGQthprJ9YAtT46C/0hbmY Jpam6BDavHZsrF93DqEYAMSIBKS1JoO0GWKqFT7KrfDvAGHawQqMnO/Zw Kp0UAXY7pqDX7AREzE/wiEd9CUjDZ9c90GO3L5tJxpWzCGyAlQWBqk81O A==; X-CSE-ConnectionGUID: 8o4mhb0XSNOmnB5BUDFLxg== X-CSE-MsgGUID: l+yFIRPwTSuqgM0M9jtKzQ== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494459" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494459" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:05 -0700 X-CSE-ConnectionGUID: 7LTrMyx/QlqWGtX+avivNw== X-CSE-MsgGUID: xH/cd10lR62+1jlZ97J90Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924163" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:01 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 14D6944433; Fri, 4 Jul 2025 10:53:59 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Sakari Ailus , Arnd Bergmann , Zhang Zekun , Javier Carrasco , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Cc: linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 04/80] bus: sunxi-rsb: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:53:58 +0300 Message-Id: <20250704075358.3216894-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Acked-by: Chen-Yu Tsai --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/bus/sunxi-rsb.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/bus/sunxi-rsb.c b/drivers/bus/sunxi-rsb.c index 7a33c3b31d1e..82735c58be11 100644 --- a/drivers/bus/sunxi-rsb.c +++ b/drivers/bus/sunxi-rsb.c @@ -373,7 +373,6 @@ static int sunxi_rsb_read(struct sunxi_rsb *rsb, u8 rta= ddr, u8 addr, unlock: mutex_unlock(&rsb->lock); =20 - pm_runtime_mark_last_busy(rsb->dev); pm_runtime_put_autosuspend(rsb->dev); =20 return ret; @@ -417,7 +416,6 @@ static int sunxi_rsb_write(struct sunxi_rsb *rsb, u8 rt= addr, u8 addr, =20 mutex_unlock(&rsb->lock); =20 - pm_runtime_mark_last_busy(rsb->dev); pm_runtime_put_autosuspend(rsb->dev); =20 return ret; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 21FAC293C52; Fri, 4 Jul 2025 07:54:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615654; cv=none; b=IwmR3MqZ0OzlgWGPBEL5HxcNuB1+2bt7MkUQyIhtNAAYxOauLV1w6nN/5OVinpPfR/Cpe+S1RHAKeCl3C/COx51Bf4U32fjQjkYRbPF6MDJhWqcSAlsu+wVCNeo9U2k7KcBrJvdiZfvHqXlCZd65eRhjvBqR97JTbk4KTUad1/M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615654; c=relaxed/simple; bh=IxQt0PoKk8BTvmWimbOLB4rG5iTXBM6oigomry2CjPY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oYsfWwZlTh8ukZKUmA55mQKHq8zoF7VQymXX1dtLuWgeZX8GxtQVCqUm6IcI9vR3b7Tf0neOw19QKd0gz2OQAOWRmAzAkJJdDC0EZ/0HlLMUFA5d1OtPxkeAii2dSp9ZfIoneu62vXFGK+51+EkKSvKg5whLs+Gbrxk5o2iHZK4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Oz0J7ql0; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Oz0J7ql0" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615653; x=1783151653; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=IxQt0PoKk8BTvmWimbOLB4rG5iTXBM6oigomry2CjPY=; b=Oz0J7ql0H7hQow6PD+s2CAFzqcX4iGlH1FoASYSlUqgc7Yt9KjDS2tCi fGx9UD/FrYhefMB++5aPmus1Zob44QvhkUUOGiapQt7IqKKF1Bo1qX5oM D3RzpGcS69lmAuo8XOF5TenSG1UD25pSupQORMKAiFtRK8SbEdxxabScK hDcoD3JQHj+rHxII1Cwr9qCOvmQacF6ltzBtIOIwIknIInhe53vomB01O /ge12NNrv0ch/MUdWUy8EOX4BGALyb4ZqxoRaCHP0QHaWf4u/b2iP83Qf +vW+cAvNxAECmg9Uww4GvivgmfKI3KmSyPE2z1LnsjwTmDkFf8q91WBc+ w==; X-CSE-ConnectionGUID: BttVJNpZT6+ti8AeuQqPgA== X-CSE-MsgGUID: dv6nFQedRCyVRcFqNrZphA== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494511" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494511" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:11 -0700 X-CSE-ConnectionGUID: TZWybnM3T2OaX6AYFlRSrA== X-CSE-MsgGUID: EyGJEJv5SXuqPS0vZtHSNw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924166" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:02 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 18CED4445A; Fri, 4 Jul 2025 10:54:00 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Olivia Mackall , Herbert Xu , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Hadar Gat , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , Avi Fishman , Tomer Maimon , Tali Perry , Patrick Venture , Nancy Yuen , Benjamin Fair , Daniel Golle , Aurelien Jarno , Nicolas Frattaroli , Heiko Stuebner , Maxime Coquelin , Alexandre Torgue , Sakari Ailus , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Marek Vasut , Gatien Chevallier Cc: linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, openbmc@lists.ozlabs.org, linux-rockchip@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH 05/80] hwrng: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:53:59 +0300 Message-Id: <20250704075359.3217036-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Reviewed-by: AngeloGioacchino Del Regno --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/char/hw_random/atmel-rng.c | 1 - drivers/char/hw_random/cctrng.c | 1 - drivers/char/hw_random/mtk-rng.c | 1 - drivers/char/hw_random/npcm-rng.c | 1 - drivers/char/hw_random/omap3-rom-rng.c | 1 - drivers/char/hw_random/rockchip-rng.c | 3 --- drivers/char/hw_random/stm32-rng.c | 1 - 7 files changed, 9 deletions(-) diff --git a/drivers/char/hw_random/atmel-rng.c b/drivers/char/hw_random/at= mel-rng.c index d2b00458761e..6ed24be3481d 100644 --- a/drivers/char/hw_random/atmel-rng.c +++ b/drivers/char/hw_random/atmel-rng.c @@ -80,7 +80,6 @@ static int atmel_trng_read(struct hwrng *rng, void *buf, = size_t max, ret =3D 4; =20 out: - pm_runtime_mark_last_busy(trng->dev); pm_runtime_put_sync_autosuspend(trng->dev); return ret; } diff --git a/drivers/char/hw_random/cctrng.c b/drivers/char/hw_random/cctrn= g.c index 4db198849695..a5be9258037f 100644 --- a/drivers/char/hw_random/cctrng.c +++ b/drivers/char/hw_random/cctrng.c @@ -98,7 +98,6 @@ static void cc_trng_pm_put_suspend(struct device *dev) { int rc =3D 0; =20 - pm_runtime_mark_last_busy(dev); rc =3D pm_runtime_put_autosuspend(dev); if (rc) dev_err(dev, "pm_runtime_put_autosuspend returned %x\n", rc); diff --git a/drivers/char/hw_random/mtk-rng.c b/drivers/char/hw_random/mtk-= rng.c index b7fa1bc1122b..c89171df7635 100644 --- a/drivers/char/hw_random/mtk-rng.c +++ b/drivers/char/hw_random/mtk-rng.c @@ -98,7 +98,6 @@ static int mtk_rng_read(struct hwrng *rng, void *buf, siz= e_t max, bool wait) max -=3D sizeof(u32); } =20 - pm_runtime_mark_last_busy(priv->dev); pm_runtime_put_sync_autosuspend(priv->dev); =20 return retval || !wait ? retval : -EIO; diff --git a/drivers/char/hw_random/npcm-rng.c b/drivers/char/hw_random/npc= m-rng.c index 3e308c890bd2..40d6e29dea03 100644 --- a/drivers/char/hw_random/npcm-rng.c +++ b/drivers/char/hw_random/npcm-rng.c @@ -80,7 +80,6 @@ static int npcm_rng_read(struct hwrng *rng, void *buf, si= ze_t max, bool wait) max--; } =20 - pm_runtime_mark_last_busy(priv->dev); pm_runtime_put_sync_autosuspend(priv->dev); =20 return retval || !wait ? retval : -EIO; diff --git a/drivers/char/hw_random/omap3-rom-rng.c b/drivers/char/hw_rando= m/omap3-rom-rng.c index 8064c792caf0..aa71f61c3dc9 100644 --- a/drivers/char/hw_random/omap3-rom-rng.c +++ b/drivers/char/hw_random/omap3-rom-rng.c @@ -56,7 +56,6 @@ static int omap3_rom_rng_read(struct hwrng *rng, void *da= ta, size_t max, bool w) else r =3D 4; =20 - pm_runtime_mark_last_busy(ddata->dev); pm_runtime_put_autosuspend(ddata->dev); =20 return r; diff --git a/drivers/char/hw_random/rockchip-rng.c b/drivers/char/hw_random= /rockchip-rng.c index fb4a30b95507..6e3ed4b85605 100644 --- a/drivers/char/hw_random/rockchip-rng.c +++ b/drivers/char/hw_random/rockchip-rng.c @@ -223,7 +223,6 @@ static int rk3568_rng_read(struct hwrng *rng, void *buf= , size_t max, bool wait) /* Read random data stored in the registers */ memcpy_fromio(buf, rk_rng->base + TRNG_RNG_DOUT, to_read); out: - pm_runtime_mark_last_busy(rk_rng->dev); pm_runtime_put_sync_autosuspend(rk_rng->dev); =20 return (ret < 0) ? ret : to_read; @@ -263,7 +262,6 @@ static int rk3576_rng_read(struct hwrng *rng, void *buf= , size_t max, bool wait) memcpy_fromio(buf, rk_rng->base + RKRNG_TRNG_DATA0, to_read); =20 out: - pm_runtime_mark_last_busy(rk_rng->dev); pm_runtime_put_sync_autosuspend(rk_rng->dev); =20 return (ret < 0) ? ret : to_read; @@ -355,7 +353,6 @@ static int rk3588_rng_read(struct hwrng *rng, void *buf= , size_t max, bool wait) /* close the TRNG */ rk_rng_writel(rk_rng, TRNG_V1_CTRL_NOP, TRNG_V1_CTRL); =20 - pm_runtime_mark_last_busy(rk_rng->dev); pm_runtime_put_sync_autosuspend(rk_rng->dev); =20 return (ret < 0) ? ret : to_read; diff --git a/drivers/char/hw_random/stm32-rng.c b/drivers/char/hw_random/st= m32-rng.c index 98edbe796bc5..9a8c00586ab0 100644 --- a/drivers/char/hw_random/stm32-rng.c +++ b/drivers/char/hw_random/stm32-rng.c @@ -255,7 +255,6 @@ static int stm32_rng_read(struct hwrng *rng, void *data= , size_t max, bool wait) } =20 exit_rpm: - pm_runtime_mark_last_busy(priv->dev); pm_runtime_put_sync_autosuspend(priv->dev); =20 return retval || !wait ? retval : -EIO; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 2AD02286415; Fri, 4 Jul 2025 07:54:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615649; cv=none; b=h7KAra2LQB6QyIoyf+T4uUcVzbKsVA8W57o4J1D6BtDbRpYmyQo+IMkUfP2e1ZxSrLiOo862wVk5jfj48DLoOfw/iaApuLP8O1TwGxCBapv3VB004AL/vEcT1pBOEwPW+mg7xFmN+JfFx3mi8NY6MrNccdXeQdbpgbRzNSo/nd4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615649; c=relaxed/simple; bh=TYN32i5byZbG1X85V7D0gufUAODeDj4mg0h1TSE5Imc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=LLZZN751qaXjnQMEk2fCwUGEk5jZKYKQ9HSNcqYdRKWbzzur0ITU1Ms3nXEs8xLwDMr5ZthaZPWxGd7L1dqh10l+Bo53HtXwhtOeZjQ5lBsyJI8omqLY0zRuwtmjZOA5z4oo5YMum3Wa5B/kCvNSZpFhP/wdoP8who3Upxmbjss= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=WrRatoHU; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="WrRatoHU" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615648; x=1783151648; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TYN32i5byZbG1X85V7D0gufUAODeDj4mg0h1TSE5Imc=; b=WrRatoHUXvEIv2kHfmdSpVWt35wQ7209PQgBSX6VXk5lrWMMekKrhdsP a9WGxl7esdernrPIVJ41NVZMRPMNyRvMRwFGmNwoiPiHX6N/s3yS1byVy OPqBEdZmne7wuyeg+tJS3n8RvjHF8c4ydDrapGEga4TG3EQHxY27FyRl3 ZVoNmEDdvPrjMczos6RJyVkABxHa14CFrtGimZyp1ThrIpWuBpY8Y3fMO GWpu5ZZBzDj7n93bWHTHbzNYFDeGOay5S+6MvhdQ+lXf435bo5dhAzLpR JFnKiA0AwQbnRLTrskvFbWs1S3VUVA2e6LZtIebNYzRec5xMgb8lG11bY w==; X-CSE-ConnectionGUID: 0QwB31tySQi9VixvdoedEw== X-CSE-MsgGUID: vr4/MgUZRpCwlz/WZTulZg== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494471" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494471" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:07 -0700 X-CSE-ConnectionGUID: frYQDD7rTXWTctvPTnoKrg== X-CSE-MsgGUID: i8ml/69OSV2+5Y+rWWPkwQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924171" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:03 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 0B608447EB; Fri, 4 Jul 2025 10:54:01 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Abel Vesa , Peng Fan , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam Cc: linux-clk@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 06/80] clk: imx: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:00 +0300 Message-Id: <20250704075400.3217126-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Reviewed-by: Peng Fan --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/clk/imx/clk-imx8qxp-lpcg.c | 1 - drivers/clk/imx/clk-scu.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/clk/imx/clk-imx8qxp-lpcg.c b/drivers/clk/imx/clk-imx8q= xp-lpcg.c index d0ccaa040225..1dae3410ee99 100644 --- a/drivers/clk/imx/clk-imx8qxp-lpcg.c +++ b/drivers/clk/imx/clk-imx8qxp-lpcg.c @@ -267,7 +267,6 @@ static int imx_lpcg_parse_clks_from_dt(struct platform_= device *pdev, if (ret) goto unreg; =20 - pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); =20 return 0; diff --git a/drivers/clk/imx/clk-scu.c b/drivers/clk/imx/clk-scu.c index b27186aaf2a1..0ef661608139 100644 --- a/drivers/clk/imx/clk-scu.c +++ b/drivers/clk/imx/clk-scu.c @@ -567,7 +567,6 @@ static int imx_clk_scu_probe(struct platform_device *pd= ev) =20 if (!((clk->rsrc =3D=3D IMX_SC_R_A35) || (clk->rsrc =3D=3D IMX_SC_R_A53) = || (clk->rsrc =3D=3D IMX_SC_R_A72))) { - pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); } =20 --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 A82F228B406; Fri, 4 Jul 2025 07:54:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615649; cv=none; b=I+iD0n9RYsgzM5OQf0P4lTutKPER0AK1ZqyljdcDlyvA0Sx8+8cWogbRvSLY4gmi8VQf+VCHVDw7oG5BhS/GnaI3wGJwq2MxUvrb5+PaxUX4UqOWX/5b6G0h2DNpfsYiJ6ijKccN8xJXQKCJHLFrRAnY/l/cRgmiaGVUVweM6RE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615649; c=relaxed/simple; bh=6S1jQLVft9CNNkuWvgYSkTmf3bOzKfne8ZMe8Vq6GU4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=E91qZpiSVpi6+PNSrUITiGWtBRANrVoKe08ChKjPrCJAZq/Z0QCUG3hZRAuamLyP9iucJbrcMgmnpRwx8XzSVGB27FgAwuZ1Ekna0WunZQ3DBnobzlzvQ5POcEpDJf4THDACrXHjVH2jo/m6/F68maXrwVcGwd2Nqt1nRZFqqdc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=DxLkGt4x; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="DxLkGt4x" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615647; x=1783151647; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=6S1jQLVft9CNNkuWvgYSkTmf3bOzKfne8ZMe8Vq6GU4=; b=DxLkGt4xDZ67gIJfH+A6i7bbN8ldsLXcgIk0w9GT4j6LsE7cKRUoVBy4 MzjmF/QV9OfEfoxtcR4WzAtHriuosJUBviT3arnIlm8uISuc0XnahjQS6 1GJJa6n5EMDKj2sE06TLPffWqKhxFVWpz/2+BTKZiFRPVky2b0JuI6/dj gyu9sho+Q/MzGBG2wVjOV5x2kexnpcIu8I+gwjK9ScHw9ayz/ki0v+f/J RSvWqsfmB9jjVJwAsgHCSYA4DVV7xu4dsShEAtZNFDfSFhe063CA7e3Fb 1FJTwEKjoBkA2X4V6J9+0P4uCzh9c+HHxOXlum7a2+BDQN5VJZ3I2LBCu Q==; X-CSE-ConnectionGUID: pm0SEDXFR1ich7VCuCLXvw== X-CSE-MsgGUID: UeBowQ7iQz2SZ7D2YmpufQ== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494468" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494468" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:07 -0700 X-CSE-ConnectionGUID: gL30M09ETGyW95y1mlrcIQ== X-CSE-MsgGUID: aFS6pvBPQ+qMXhYXbC/72w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924176" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:04 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id C608A44394; Fri, 4 Jul 2025 10:54:01 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Bjorn Andersson , Michael Turquette , Stephen Boyd Cc: linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/80] clk: qcom: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:01 +0300 Message-Id: <20250704075401.3217179-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/clk/qcom/lpassaudiocc-sc7280.c | 2 -- drivers/clk/qcom/lpasscorecc-sc7180.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/drivers/clk/qcom/lpassaudiocc-sc7280.c b/drivers/clk/qcom/lpas= saudiocc-sc7280.c index 22169da08a51..3ff123bffa11 100644 --- a/drivers/clk/qcom/lpassaudiocc-sc7280.c +++ b/drivers/clk/qcom/lpassaudiocc-sc7280.c @@ -799,7 +799,6 @@ static int lpass_audio_cc_sc7280_probe(struct platform_= device *pdev) goto exit; } =20 - pm_runtime_mark_last_busy(&pdev->dev); exit: pm_runtime_put_autosuspend(&pdev->dev); =20 @@ -868,7 +867,6 @@ static int lpass_aon_cc_sc7280_probe(struct platform_de= vice *pdev) goto exit; } =20 - pm_runtime_mark_last_busy(&pdev->dev); exit: pm_runtime_put_autosuspend(&pdev->dev); =20 diff --git a/drivers/clk/qcom/lpasscorecc-sc7180.c b/drivers/clk/qcom/lpass= corecc-sc7180.c index 605516d03993..5937b071533b 100644 --- a/drivers/clk/qcom/lpasscorecc-sc7180.c +++ b/drivers/clk/qcom/lpasscorecc-sc7180.c @@ -412,7 +412,6 @@ static int lpass_core_cc_sc7180_probe(struct platform_d= evice *pdev) =20 ret =3D qcom_cc_really_probe(&pdev->dev, &lpass_core_cc_sc7180_desc, regm= ap); =20 - pm_runtime_mark_last_busy(&pdev->dev); exit: pm_runtime_put_autosuspend(&pdev->dev); =20 @@ -433,7 +432,6 @@ static int lpass_hm_core_probe(struct platform_device *= pdev) =20 ret =3D qcom_cc_probe_by_index(pdev, 0, desc); =20 - pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); =20 return ret; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 BB66D28C2C9; Fri, 4 Jul 2025 07:54:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615651; cv=none; b=COUF4LZfOU8P0kkzxeO01jkYysyfA6rK3HWVVVt9Qs9aoxsrDOEG6c1w3lkzR6dE8Ef9iBU6BxT8YUUikzQDu01D+Z27TPis9Xf8AsfiqB1Fpx4P+nmiwnC4qt05nHHxAINpmnqsT0QICY/hqzCG91IvzdFE+zuKvhBok3t13gg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615651; c=relaxed/simple; bh=egUHL6RyLJfuRq1gVjjLudjmpTQnx+4gpQe9sleSvp8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=kiBmtNBqpXdwTw/kfB47mK7/FRMQaUOQaJswCxjqj2fGO/EiTLwrPEy3DIFN3s81wbOc4r9PcJ6+0SARKYkMfXhUVqm/LbPrIFzNWDPAZwDDiZ3Yp4IxPipvHb9nkmOCgyMgeMoJUjEs+h8WiOSHK3a55dusA8WeUmSjkRlb6sk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=E0q1HzRZ; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="E0q1HzRZ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615649; x=1783151649; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=egUHL6RyLJfuRq1gVjjLudjmpTQnx+4gpQe9sleSvp8=; b=E0q1HzRZxiDYHxbPp+oXwLkZZnZZ+8+yvv+f6Qy/IxwxMzx25DapJWFl mJAzXl3l9s5i3rDnANPc6s7cHty6dH2mYSSYWEUEQzjdMRsG8UwFvRwAy COfM5YESB+0eX+AiwbNSE8Mz4housoNlc/AaukPADiJmevPAyX/gDt4Cr HrlAS5gDjSKYanIZ/rxsYNyYk375/1/rPmQ5QoJuHJTIJqrTVix0cY4Wx XsL+x1W10ezcBU+tJQdfAfFpjpmEPjN3trNVqQl05SA5oL3EQe+BfxDpy yhBZEqyf4neToUzz6H0O1iVZzhT8rDyiQREg1FdDI1EeiN9PAmF3KJtKg w==; X-CSE-ConnectionGUID: 2NvexcnATf6O3LUQmSuPgA== X-CSE-MsgGUID: U9ObsUCOSNKsQz7OM1bPIQ== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494485" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494485" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:09 -0700 X-CSE-ConnectionGUID: phoA/CdOScGQ5w7h4YAwIw== X-CSE-MsgGUID: nyKMon0+Sb2jJnHLR6QVFg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924179" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:05 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id AF13844419; Fri, 4 Jul 2025 10:54:02 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Gilad Ben-Yossef , Herbert Xu , "David S. Miller" , Weili Qian , Zhou Wang , Maxime Coquelin , Alexandre Torgue , Eric Biggers , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Sakari Ailus Cc: linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH 08/80] crypto: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:02 +0300 Message-Id: <20250704075402.3217279-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/crypto/ccree/cc_pm.c | 1 - drivers/crypto/hisilicon/qm.c | 1 - drivers/crypto/omap-aes-gcm.c | 1 - drivers/crypto/omap-aes.c | 1 - drivers/crypto/omap-des.c | 1 - drivers/crypto/omap-sham.c | 1 - drivers/crypto/stm32/stm32-cryp.c | 1 - drivers/crypto/stm32/stm32-hash.c | 1 - 8 files changed, 8 deletions(-) diff --git a/drivers/crypto/ccree/cc_pm.c b/drivers/crypto/ccree/cc_pm.c index 6124fbbbed94..bbd118f8de0e 100644 --- a/drivers/crypto/ccree/cc_pm.c +++ b/drivers/crypto/ccree/cc_pm.c @@ -77,6 +77,5 @@ int cc_pm_get(struct device *dev) =20 void cc_pm_put_suspend(struct device *dev) { - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); } diff --git a/drivers/crypto/hisilicon/qm.c b/drivers/crypto/hisilicon/qm.c index 7c41f9593d03..2e4ee7ecfdfb 100644 --- a/drivers/crypto/hisilicon/qm.c +++ b/drivers/crypto/hisilicon/qm.c @@ -912,7 +912,6 @@ static void qm_pm_put_sync(struct hisi_qm *qm) if (!test_bit(QM_SUPPORT_RPM, &qm->caps)) return; =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); } =20 diff --git a/drivers/crypto/omap-aes-gcm.c b/drivers/crypto/omap-aes-gcm.c index c498950402e8..1f4586509ca4 100644 --- a/drivers/crypto/omap-aes-gcm.c +++ b/drivers/crypto/omap-aes-gcm.c @@ -38,7 +38,6 @@ static void omap_aes_gcm_finish_req(struct omap_aes_dev *= dd, int ret) =20 crypto_finalize_aead_request(dd->engine, req, ret); =20 - pm_runtime_mark_last_busy(dd->dev); pm_runtime_put_autosuspend(dd->dev); } =20 diff --git a/drivers/crypto/omap-aes.c b/drivers/crypto/omap-aes.c index 1ecf5f6ac04e..244e24e52987 100644 --- a/drivers/crypto/omap-aes.c +++ b/drivers/crypto/omap-aes.c @@ -400,7 +400,6 @@ static void omap_aes_finish_req(struct omap_aes_dev *dd= , int err) =20 crypto_finalize_skcipher_request(dd->engine, req, err); =20 - pm_runtime_mark_last_busy(dd->dev); pm_runtime_put_autosuspend(dd->dev); } =20 diff --git a/drivers/crypto/omap-des.c b/drivers/crypto/omap-des.c index a099460d5f21..9c5538ae17db 100644 --- a/drivers/crypto/omap-des.c +++ b/drivers/crypto/omap-des.c @@ -489,7 +489,6 @@ static void omap_des_finish_req(struct omap_des_dev *dd= , int err) =20 crypto_finalize_skcipher_request(dd->engine, req, err); =20 - pm_runtime_mark_last_busy(dd->dev); pm_runtime_put_autosuspend(dd->dev); } =20 diff --git a/drivers/crypto/omap-sham.c b/drivers/crypto/omap-sham.c index 56f192cb976d..6328e8026b91 100644 --- a/drivers/crypto/omap-sham.c +++ b/drivers/crypto/omap-sham.c @@ -1167,7 +1167,6 @@ static void omap_sham_finish_req(struct ahash_request= *req, int err) dd->flags &=3D ~(BIT(FLAGS_FINAL) | BIT(FLAGS_CPU) | BIT(FLAGS_DMA_READY) | BIT(FLAGS_OUTPUT_READY)); =20 - pm_runtime_mark_last_busy(dd->dev); pm_runtime_put_autosuspend(dd->dev); =20 ctx->offset =3D 0; diff --git a/drivers/crypto/stm32/stm32-cryp.c b/drivers/crypto/stm32/stm32= -cryp.c index 5ce88e7a8f65..a89b4c5d62a0 100644 --- a/drivers/crypto/stm32/stm32-cryp.c +++ b/drivers/crypto/stm32/stm32-cryp.c @@ -851,7 +851,6 @@ static void stm32_cryp_finish_req(struct stm32_cryp *cr= yp, int err) if (!err && (!(is_gcm(cryp) || is_ccm(cryp) || is_ecb(cryp)))) stm32_cryp_get_iv(cryp); =20 - pm_runtime_mark_last_busy(cryp->dev); pm_runtime_put_autosuspend(cryp->dev); =20 if (is_gcm(cryp) || is_ccm(cryp)) diff --git a/drivers/crypto/stm32/stm32-hash.c b/drivers/crypto/stm32/stm32= -hash.c index 768b27de4737..a4436728b0db 100644 --- a/drivers/crypto/stm32/stm32-hash.c +++ b/drivers/crypto/stm32/stm32-hash.c @@ -1373,7 +1373,6 @@ static void stm32_hash_unprepare_request(struct ahash= _request *req) *preg++ =3D stm32_hash_read(hdev, HASH_CSR(i)); =20 pm_runtime: - pm_runtime_mark_last_busy(hdev->dev); pm_runtime_put_autosuspend(hdev->dev); } =20 --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 5197D28BA9B; Fri, 4 Jul 2025 07:54:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615651; cv=none; b=EoQKmOkx0/KPgoNO5Oc6rzHH4chCgGel2TH6AVTGWkkq3w6oO0lhJSxPWcVCfXL39osRMS73Alo/lBjluIhcxtrWAmNI4tofqp9P+vD/tLdyXz7PP/zzeb4vXFxrgnRIzp7jKWh7r+q81ngS/vnkh9gf7x5/QC/Gm+fb0SJCke0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615651; c=relaxed/simple; bh=idtG3pDBv5DgyV7D3aigFbrwhSp2laJtAcE/7Pv7P1g=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=e59cDsn13bkSaRsM5YEPfTixHlVKF2hgpmpOVkxH6EtYLjOSKWeYW7a3C5EU/CpwqAplUs7+Dp42/qqWyRV1//7H7KMQipcyL3bJMNIjZjMzYeWXar16y3mL0lLTRiaaUHdc4BtbnhOE68/ZVQhQQo6w8dpbYVIuRWZlj9EdZkM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=RrFXuGGu; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="RrFXuGGu" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615649; x=1783151649; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=idtG3pDBv5DgyV7D3aigFbrwhSp2laJtAcE/7Pv7P1g=; b=RrFXuGGu5/vMqOWxiuOP/KQON5RQx97FsQnYVwaqknrQdmxmUjQxiYZk lRQQo8VhKwyHOdC0AODAJwj+nyhiOLcU4G62WCihQ+pZgP/oDnLQCokKI nQIkA/SvA6Kqc4ejS2qQ4Si4+RD7TLt7jSIDkCApQtiUnu3ZFxCAdBeWF t+FCEHLJSqcvZc6K9Ez2J8StGHw3dt96PnCcYOmnu12vtZDijUgy5LC83 //P9Apj6fR97MVPyVelNAK5QIW2TpxMmY/rmAVyQGgi1BMmfRaHB4rdbx ycQ9R9+8FHYFzHUcDAFm7oMrP/Bkxjjn61DdTBGyquvjajAtaMRz8Y9eP g==; X-CSE-ConnectionGUID: sjoe6soHQpKOc902eLQeAA== X-CSE-MsgGUID: J9V0idRzTBmtYwIDPb5VGA== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494479" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494479" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:07 -0700 X-CSE-ConnectionGUID: 00X7z1oiRGqCCXA6+HS3rg== X-CSE-MsgGUID: kKQmFDQvSoyWf0iOufJ0MQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924183" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:06 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id B64E244424; Fri, 4 Jul 2025 10:54:03 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Ludovic Desroches , Vinod Koul Cc: linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 09/80] dmaengine: at_xdmac: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:03 +0300 Message-Id: <20250704075403.3217327-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/dma/at_xdmac.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/dma/at_xdmac.c b/drivers/dma/at_xdmac.c index 3fbc74710a13..ada96d490847 100644 --- a/drivers/dma/at_xdmac.c +++ b/drivers/dma/at_xdmac.c @@ -379,7 +379,6 @@ static void at_xdmac_runtime_suspend_descriptors(struct= at_xdmac_chan *atchan) if (!desc->active_xfer) continue; =20 - pm_runtime_mark_last_busy(atxdmac->dev); pm_runtime_put_autosuspend(atxdmac->dev); } } @@ -413,7 +412,6 @@ static bool at_xdmac_chan_is_enabled(struct at_xdmac_ch= an *atchan) =20 ret =3D !!(at_xdmac_chan_read(atchan, AT_XDMAC_GS) & atchan->mask); =20 - pm_runtime_mark_last_busy(atxdmac->dev); pm_runtime_put_autosuspend(atxdmac->dev); =20 return ret; @@ -446,7 +444,6 @@ static void at_xdmac_off(struct at_xdmac *atxdmac, bool= suspend_descriptors) } } =20 - pm_runtime_mark_last_busy(atxdmac->dev); pm_runtime_put_autosuspend(atxdmac->dev); } =20 @@ -1676,7 +1673,6 @@ at_xdmac_tx_status(struct dma_chan *chan, dma_cookie_= t cookie, =20 spin_unlock: spin_unlock_irqrestore(&atchan->lock, flags); - pm_runtime_mark_last_busy(atxdmac->dev); pm_runtime_put_autosuspend(atxdmac->dev); return ret; } @@ -1758,7 +1754,6 @@ static void at_xdmac_handle_error(struct at_xdmac_cha= n *atchan) __func__, &bad_desc->lld.mbr_sa, &bad_desc->lld.mbr_da, bad_desc->lld.mbr_ubc); =20 - pm_runtime_mark_last_busy(atxdmac->dev); pm_runtime_put_autosuspend(atxdmac->dev); =20 /* Then continue with usual descriptor management */ @@ -1822,7 +1817,6 @@ static void at_xdmac_tasklet(struct tasklet_struct *t) * Decrement runtime PM ref counter incremented in * at_xdmac_start_xfer(). */ - pm_runtime_mark_last_busy(atxdmac->dev); pm_runtime_put_autosuspend(atxdmac->dev); } =20 @@ -1954,7 +1948,6 @@ static int at_xdmac_device_pause(struct dma_chan *cha= n) =20 spin_unlock_irqrestore(&atchan->lock, flags); =20 - pm_runtime_mark_last_busy(atxdmac->dev); pm_runtime_put_autosuspend(atxdmac->dev); =20 return 0; @@ -1998,7 +1991,6 @@ static int at_xdmac_device_resume(struct dma_chan *ch= an) =20 unlock: spin_unlock_irqrestore(&atchan->lock, flags); - pm_runtime_mark_last_busy(atxdmac->dev); pm_runtime_put_autosuspend(atxdmac->dev); =20 return ret; @@ -2041,7 +2033,6 @@ static int at_xdmac_device_terminate_all(struct dma_c= han *chan) clear_bit(AT_XDMAC_CHAN_IS_CYCLIC, &atchan->status); spin_unlock_irqrestore(&atchan->lock, flags); =20 - pm_runtime_mark_last_busy(atxdmac->dev); pm_runtime_put_autosuspend(atxdmac->dev); =20 return 0; @@ -2235,7 +2226,6 @@ static int __maybe_unused atmel_xdmac_resume(struct d= evice *dev) } } =20 - pm_runtime_mark_last_busy(atxdmac->dev); pm_runtime_put_autosuspend(atxdmac->dev); =20 return 0; @@ -2412,7 +2402,6 @@ static int at_xdmac_probe(struct platform_device *pde= v) =20 at_xdmac_axi_config(pdev); =20 - pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); =20 return 0; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 B4DEA28B511; Fri, 4 Jul 2025 07:54:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615651; cv=none; b=fHw3tA4mqluW2C8NwBgP5rZkzJPQXeiFZta/FUjNnjG7usNFHau4IL0Rc7JGzWIpcr5Px3kG4L4W34Dv7T33e3ObdlorXOFbT5pi2JlyT//kO2Yy47CbqmIr/t1jsPX++vkGgVbqiyvXRcBk0sEfEz3jpqQz9QKYzo4rH3tJqUk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615651; c=relaxed/simple; bh=7fNlyfehAX6Hv6KxB0TQNkNnrIRoj0DQRCnHapvWfsw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=d26/erSmkSQ+cDuzJD3VUbQkQu0HoKd9SMBavVc1G7fEe34qaK30hyzCO2J1Pdd3KCVoCPcUYvQrgrREnpMAouGVUkJzriUAwqqkZsC4s367CPNUzWuj1BGyuTqeBe1ekLRSstPv2Xbo3Bvz7ZmRwCD155uIOPKR1vqNxmVGd6s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=P8iXIV1e; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="P8iXIV1e" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615649; x=1783151649; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=7fNlyfehAX6Hv6KxB0TQNkNnrIRoj0DQRCnHapvWfsw=; b=P8iXIV1eiV+bns4QrQPwNGlhiKQPNW2N7Sx5mUHONl56nbOcgQOvtj0d 5Erw8uhL07WQeXzBh7I+alBQtxwTjM10k7tDgY3OivaS0imXKipIrYgAw f0wu+pmd+758zSB9YYpLfkOiVyqHZXFZeAm+BS1e2K3sShUy78223ctLN QAFx9iCoMoyCU6YrlFokAAqzFjc+mE8rsb/CdZ62M21UC2geOD+INWQzi pJPz2ms/1BUPDiD1QQnQ7VjxufEG8f9Qg/opEBGtcuUGz9YDm7YwZ/z5f bKGxgAhcjEzW/9tOkwO2hZi0QuuyIc6Khkp2ARbxWIK3RUFR9IiyVRCD8 Q==; X-CSE-ConnectionGUID: GqfELuzBRIiH3WFqRYXZgA== X-CSE-MsgGUID: xY1nNIIkTbORRo6Gd1Vk9Q== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494484" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494484" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:08 -0700 X-CSE-ConnectionGUID: LdIu/9HuTTC2yJaNcMZl2A== X-CSE-MsgGUID: pv0MS9vXT3+PYMyqXvg98Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924186" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:06 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 8B02344843; Fri, 4 Jul 2025 10:54:04 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Vinod Koul Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/80] dmaengine: pl330: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:04 +0300 Message-Id: <20250704075404.3217372-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/dma/pl330.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c index 82a9fe88ad54..472cb6fe126d 100644 --- a/drivers/dma/pl330.c +++ b/drivers/dma/pl330.c @@ -2134,7 +2134,6 @@ static void pl330_tasklet(struct tasklet_struct *t) =20 /* If work list empty, power down */ if (power_down) { - pm_runtime_mark_last_busy(pch->dmac->ddma.dev); pm_runtime_put_autosuspend(pch->dmac->ddma.dev); } } @@ -2313,7 +2312,6 @@ static int pl330_terminate_all(struct dma_chan *chan) list_splice_tail_init(&pch->work_list, &pl330->desc_pool); list_splice_tail_init(&pch->completed_list, &pl330->desc_pool); spin_unlock_irqrestore(&pch->lock, flags); - pm_runtime_mark_last_busy(pl330->ddma.dev); if (power_down) pm_runtime_put_autosuspend(pl330->ddma.dev); pm_runtime_put_autosuspend(pl330->ddma.dev); @@ -2347,7 +2345,6 @@ static int pl330_pause(struct dma_chan *chan) desc->status =3D PAUSED; } spin_unlock_irqrestore(&pch->lock, flags); - pm_runtime_mark_last_busy(pl330->ddma.dev); pm_runtime_put_autosuspend(pl330->ddma.dev); =20 return 0; @@ -2371,7 +2368,6 @@ static void pl330_free_chan_resources(struct dma_chan= *chan) list_splice_tail_init(&pch->work_list, &pch->dmac->desc_pool); =20 spin_unlock_irqrestore(&pl330->lock, flags); - pm_runtime_mark_last_busy(pch->dmac->ddma.dev); pm_runtime_put_autosuspend(pch->dmac->ddma.dev); pl330_unprep_slave_fifo(pch); } @@ -3176,7 +3172,6 @@ pl330_probe(struct amba_device *adev, const struct am= ba_id *id) pm_runtime_irq_safe(&adev->dev); pm_runtime_use_autosuspend(&adev->dev); pm_runtime_set_autosuspend_delay(&adev->dev, PL330_AUTOSUSPEND_DELAY); - pm_runtime_mark_last_busy(&adev->dev); pm_runtime_put_autosuspend(&adev->dev); =20 return 0; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 CFC8C28B41D; Fri, 4 Jul 2025 07:54:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615653; cv=none; b=JlorShNQSgzVZg11iNelUamRDrPwkPeTObZhaYgSeVA3rvVVg/32SF+jlpjKyzoDe12MOnVEMxAiSENU91iPo/AwuyVQnHMPRmuiZjd0vxFQ27XsBPjijALOxVc8nny4lbG2MImcqr2qwunyyiRtb3jSCQQ9ytxKnkq2SUFMrog= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615653; c=relaxed/simple; bh=TKaWU9wHcesffH7yU2Bgh0fMlpDg7JRl+pUzHVYytWk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=kuSrhZPWzl6vv+s2o1oeT9VdME7prSexUQ5GvAoJvE3FzSKSjvjHPcZQjvVdVw9B5t8O6OcrHT2G69hHXwrKNtpQupWz+LAPnLPz3V8DKJz0KcyHHBko5jlEcyU3IodLVZpwAG5d9tnj+tSMaAYYQ1x2Ol8aVK+3nprTcPO97qU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=AKKJw4gu; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="AKKJw4gu" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615652; x=1783151652; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=TKaWU9wHcesffH7yU2Bgh0fMlpDg7JRl+pUzHVYytWk=; b=AKKJw4guLMhD0Gyqs/dl4t+6TieXPSynU9HLCf8tYqHSdw4FL9km5vM9 kzWeOd879FFMXkLvxTcXyKdfToCaDY+vyRMam5+LQNyjq9vMP64AL/mVE 9af37ccDlPvs6hAx3qPi3vTTEHmEkJ1MpLnE+4GsPka6g2MQr5Udorlrd sXCLUigVIRHORRYj3s+cXtDDA6NcRtyzNCZG0JaxWwXlE6LmitGkbHA7r PVTaMgeRGBIEkpV7hhxEbcnUIf6S0kTUaeCNGfLDrwXRubEqkMD/hc6nS ZedEszF6ulBgx2BwB5sArapD2D+VmqpEl//UP6RwYwpqKyIEupR9LTHoK g==; X-CSE-ConnectionGUID: 1eoNV4g8TCWP+7gFzrB45w== X-CSE-MsgGUID: 2HSTM3uITY6wpLhpHRb6KQ== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494505" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494505" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:11 -0700 X-CSE-ConnectionGUID: sTvQMPl5RuODWcA7j2/V8w== X-CSE-MsgGUID: yf8ICMQNQIyWACxGNAWhRw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924202" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:07 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 5D66B44433; Fri, 4 Jul 2025 10:54:05 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Vinod Koul , Sinan Kaya , Md Sadre Alam , Kees Cook , Dave Jiang , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Sakari Ailus , Amit Vadhavana , Casey Connolly Cc: linux-arm-msm@vger.kernel.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 11/80] dmaengine: qcom: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:05 +0300 Message-Id: <20250704075405.3217439-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/dma/qcom/bam_dma.c | 5 ----- drivers/dma/qcom/hidma.c | 9 --------- drivers/dma/qcom/hidma_dbg.c | 1 - drivers/dma/qcom/hidma_mgmt.c | 2 -- 4 files changed, 17 deletions(-) diff --git a/drivers/dma/qcom/bam_dma.c b/drivers/dma/qcom/bam_dma.c index bbc3276992bb..e6f642e8c731 100644 --- a/drivers/dma/qcom/bam_dma.c +++ b/drivers/dma/qcom/bam_dma.c @@ -608,7 +608,6 @@ static void bam_free_chan(struct dma_chan *chan) } =20 err: - pm_runtime_mark_last_busy(bdev->dev); pm_runtime_put_autosuspend(bdev->dev); } =20 @@ -784,7 +783,6 @@ static int bam_pause(struct dma_chan *chan) writel_relaxed(1, bam_addr(bdev, bchan->id, BAM_P_HALT)); bchan->paused =3D 1; spin_unlock_irqrestore(&bchan->vc.lock, flag); - pm_runtime_mark_last_busy(bdev->dev); pm_runtime_put_autosuspend(bdev->dev); =20 return 0; @@ -810,7 +808,6 @@ static int bam_resume(struct dma_chan *chan) writel_relaxed(0, bam_addr(bdev, bchan->id, BAM_P_HALT)); bchan->paused =3D 0; spin_unlock_irqrestore(&bchan->vc.lock, flag); - pm_runtime_mark_last_busy(bdev->dev); pm_runtime_put_autosuspend(bdev->dev); =20 return 0; @@ -927,7 +924,6 @@ static irqreturn_t bam_dma_irq(int irq, void *data) writel_relaxed(clr_mask, bam_addr(bdev, 0, BAM_IRQ_CLR)); } =20 - pm_runtime_mark_last_busy(bdev->dev); pm_runtime_put_autosuspend(bdev->dev); =20 return IRQ_HANDLED; @@ -1102,7 +1098,6 @@ static void bam_start_dma(struct bam_chan *bchan) writel_relaxed(bchan->tail * sizeof(struct bam_desc_hw), bam_addr(bdev, bchan->id, BAM_P_EVNT_REG)); =20 - pm_runtime_mark_last_busy(bdev->dev); pm_runtime_put_autosuspend(bdev->dev); } =20 diff --git a/drivers/dma/qcom/hidma.c b/drivers/dma/qcom/hidma.c index c2b3e4452e71..ded27a674e5f 100644 --- a/drivers/dma/qcom/hidma.c +++ b/drivers/dma/qcom/hidma.c @@ -185,7 +185,6 @@ static void hidma_callback(void *data) hidma_process_completed(mchan); =20 if (queued) { - pm_runtime_mark_last_busy(dmadev->ddev.dev); pm_runtime_put_autosuspend(dmadev->ddev.dev); } } @@ -316,11 +315,9 @@ static dma_cookie_t hidma_tx_submit(struct dma_async_t= x_descriptor *txd) =20 pm_runtime_get_sync(dmadev->ddev.dev); if (!hidma_ll_isenabled(dmadev->lldev)) { - pm_runtime_mark_last_busy(dmadev->ddev.dev); pm_runtime_put_autosuspend(dmadev->ddev.dev); return -ENODEV; } - pm_runtime_mark_last_busy(dmadev->ddev.dev); pm_runtime_put_autosuspend(dmadev->ddev.dev); =20 mdesc =3D container_of(txd, struct hidma_desc, desc); @@ -507,7 +504,6 @@ static int hidma_terminate_channel(struct dma_chan *cha= n) =20 rc =3D hidma_ll_enable(dmadev->lldev); out: - pm_runtime_mark_last_busy(dmadev->ddev.dev); pm_runtime_put_autosuspend(dmadev->ddev.dev); return rc; } @@ -525,7 +521,6 @@ static int hidma_terminate_all(struct dma_chan *chan) /* reinitialize the hardware */ pm_runtime_get_sync(dmadev->ddev.dev); rc =3D hidma_ll_setup(dmadev->lldev); - pm_runtime_mark_last_busy(dmadev->ddev.dev); pm_runtime_put_autosuspend(dmadev->ddev.dev); return rc; } @@ -569,7 +564,6 @@ static int hidma_pause(struct dma_chan *chan) if (hidma_ll_disable(dmadev->lldev)) dev_warn(dmadev->ddev.dev, "channel did not stop\n"); mchan->paused =3D true; - pm_runtime_mark_last_busy(dmadev->ddev.dev); pm_runtime_put_autosuspend(dmadev->ddev.dev); } return 0; @@ -591,7 +585,6 @@ static int hidma_resume(struct dma_chan *chan) else dev_err(dmadev->ddev.dev, "failed to resume the channel"); - pm_runtime_mark_last_busy(dmadev->ddev.dev); pm_runtime_put_autosuspend(dmadev->ddev.dev); } return rc; @@ -882,7 +875,6 @@ static int hidma_probe(struct platform_device *pdev) hidma_debug_init(dmadev); hidma_sysfs_init(dmadev); dev_info(&pdev->dev, "HI-DMA engine driver registration complete\n"); - pm_runtime_mark_last_busy(dmadev->ddev.dev); pm_runtime_put_autosuspend(dmadev->ddev.dev); return 0; =20 @@ -909,7 +901,6 @@ static void hidma_shutdown(struct platform_device *pdev) pm_runtime_get_sync(dmadev->ddev.dev); if (hidma_ll_disable(dmadev->lldev)) dev_warn(dmadev->ddev.dev, "channel did not stop\n"); - pm_runtime_mark_last_busy(dmadev->ddev.dev); pm_runtime_put_autosuspend(dmadev->ddev.dev); =20 } diff --git a/drivers/dma/qcom/hidma_dbg.c b/drivers/dma/qcom/hidma_dbg.c index ce87c7937a0e..7d7594da084c 100644 --- a/drivers/dma/qcom/hidma_dbg.c +++ b/drivers/dma/qcom/hidma_dbg.c @@ -103,7 +103,6 @@ static int hidma_chan_show(struct seq_file *s, void *un= used) hidma_ll_chstats(s, mchan->dmadev->lldev, mdesc->tre_ch); =20 hidma_ll_devstats(s, mchan->dmadev->lldev); - pm_runtime_mark_last_busy(dmadev->ddev.dev); pm_runtime_put_autosuspend(dmadev->ddev.dev); return 0; } diff --git a/drivers/dma/qcom/hidma_mgmt.c b/drivers/dma/qcom/hidma_mgmt.c index 4805ce390ffa..8442082bde23 100644 --- a/drivers/dma/qcom/hidma_mgmt.c +++ b/drivers/dma/qcom/hidma_mgmt.c @@ -150,7 +150,6 @@ int hidma_mgmt_setup(struct hidma_mgmt_dev *mgmtdev) val |=3D mgmtdev->chreset_timeout_cycles & HIDMA_CHRESET_TIMEOUT_MASK; writel(val, mgmtdev->virtaddr + HIDMA_CHRESET_TIMEOUT_OFFSET); =20 - pm_runtime_mark_last_busy(&mgmtdev->pdev->dev); pm_runtime_put_autosuspend(&mgmtdev->pdev->dev); return 0; } @@ -305,7 +304,6 @@ static int hidma_mgmt_probe(struct platform_device *pde= v) &res->start, mgmtdev->dma_channels); =20 platform_set_drvdata(pdev, mgmtdev); - pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); return 0; out: --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 168CB28D828; Fri, 4 Jul 2025 07:54:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615653; cv=none; b=C0Jf7oJxBomwCuYqwKtaWzxB1qfWpoWrxvfo7HacIzIKGWyzAlK51gRiolsF/wTcw+q4MsBzZWiShog2HdQAhyXmBrSH4Z4txg0J4DCcnPcWHmH78oRH/sWptILJlkUKMyhp3vHLCc2rZ4Ksu4u/xibAJVoQXY/jbW60RJbTz0w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615653; c=relaxed/simple; bh=SwA04YuHfWus8Oxzal44FMeOvDW0ynNWLHU3HfszPns=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ptd/sjQbdIaOivUDMiWuiFB+VZwmDegDEvBoL16cuBzPXJxSO3X+JMj74Gf5+sn+NW+dB+jADAB0NziySTO0d7J3TlasiYwyWk/ZHgbokmMc0K7mSSP7xpBg4RUpdQGCH2RwXkosUMQU7wVl+AU67c301RYeKUVsuIV4T0QsDnc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=dWzM/nVM; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="dWzM/nVM" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615651; x=1783151651; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=SwA04YuHfWus8Oxzal44FMeOvDW0ynNWLHU3HfszPns=; b=dWzM/nVMjhk52QC1M8NF50BrAhfsZiZAhExnJb2Ig2gJ4YnOasdamyEV nXO5vQMEjWQqkuMo/39Be9jM0SgVxfOvIPN0REZ9a3wwIs+xao8C8Uy9D zszUkumQaq/agqgW/oMwbCIOP77i3vxj/5HmPQ6ZoKtBF7CaiGJNSfDdO Fvm8qNj5L4Te8kimbGrnyh+06bDCDW/EylYYfcG42e+8UVv42wL9tnHRv LzSpLoSnnyStmuVRfHnM2Cg4x9QN9Ui2YvdcarnXgHJqqU9jSs4bwr8o0 UsyumyLrJFxdhX8nN3Sz6RrMEnmBkUtDiSSKCZhVLRmsD5LDsHrRfpI4f w==; X-CSE-ConnectionGUID: 7nyrrPVMTleRcEFJkb2TQQ== X-CSE-MsgGUID: RlAzjCvnSW2Mf9WJNoVUpg== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494497" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494497" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:10 -0700 X-CSE-ConnectionGUID: bJgNRm1OQAaHdiPuqBupcQ== X-CSE-MsgGUID: buF3RBOsQzOoL3A+8dOOYw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924192" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:08 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 270E44488D; Fri, 4 Jul 2025 10:54:06 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Linus Walleij , Vinod Koul Cc: linux-arm-kernel@lists.infradead.org, dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 12/80] dmaengine: ste_dma40: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:05 +0300 Message-Id: <20250704075405.3217535-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Reviewed-by: Linus Walleij --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/dma/ste_dma40.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/dma/ste_dma40.c b/drivers/dma/ste_dma40.c index d52e1685aed5..13d91d369be2 100644 --- a/drivers/dma/ste_dma40.c +++ b/drivers/dma/ste_dma40.c @@ -1452,7 +1452,6 @@ static int d40_pause(struct dma_chan *chan) =20 res =3D d40_channel_execute_command(d40c, D40_DMA_SUSPEND_REQ); =20 - pm_runtime_mark_last_busy(d40c->base->dev); pm_runtime_put_autosuspend(d40c->base->dev); spin_unlock_irqrestore(&d40c->lock, flags); return res; @@ -1479,7 +1478,6 @@ static int d40_resume(struct dma_chan *chan) if (d40_residue(d40c) || d40_tx_is_linked(d40c)) res =3D d40_channel_execute_command(d40c, D40_DMA_RUN); =20 - pm_runtime_mark_last_busy(d40c->base->dev); pm_runtime_put_autosuspend(d40c->base->dev); spin_unlock_irqrestore(&d40c->lock, flags); return res; @@ -1581,7 +1579,6 @@ static void dma_tc_handle(struct d40_chan *d40c) if (d40_queue_start(d40c) =3D=3D NULL) { d40c->busy =3D false; =20 - pm_runtime_mark_last_busy(d40c->base->dev); pm_runtime_put_autosuspend(d40c->base->dev); } =20 @@ -2055,7 +2052,6 @@ static int d40_free_dma(struct d40_chan *d40c) d40c->base->lookup_phy_chans[phy->num] =3D NULL; =20 if (d40c->busy) { - pm_runtime_mark_last_busy(d40c->base->dev); pm_runtime_put_autosuspend(d40c->base->dev); } =20 @@ -2063,7 +2059,6 @@ static int d40_free_dma(struct d40_chan *d40c) d40c->phy_chan =3D NULL; d40c->configured =3D false; mark_last_busy: - pm_runtime_mark_last_busy(d40c->base->dev); pm_runtime_put_autosuspend(d40c->base->dev); return res; } @@ -2466,7 +2461,6 @@ static int d40_alloc_chan_resources(struct dma_chan *= chan) if (is_free_phy) d40_config_write(d40c); mark_last_busy: - pm_runtime_mark_last_busy(d40c->base->dev); pm_runtime_put_autosuspend(d40c->base->dev); spin_unlock_irqrestore(&d40c->lock, flags); return err; @@ -2618,10 +2612,8 @@ static int d40_terminate_all(struct dma_chan *chan) chan_err(d40c, "Failed to stop channel\n"); =20 d40_term_all(d40c); - pm_runtime_mark_last_busy(d40c->base->dev); pm_runtime_put_autosuspend(d40c->base->dev); if (d40c->busy) { - pm_runtime_mark_last_busy(d40c->base->dev); pm_runtime_put_autosuspend(d40c->base->dev); } d40c->busy =3D false; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 8A18A28D8D0; Fri, 4 Jul 2025 07:54:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615653; cv=none; b=fq9JSo4cmneU5L7239V0MC/wrwFW8CKefuHk+pXJR2/VKMQN0IF/EYw9djh6ufLkOe7q7eZ36fPWMxR//rwnd0qg2GoGKE+8y/NTzzxb9gX25Ayebwv4YYtRud40hd2N4ni3fk1wrUsdqZ7ea+2ZjcEfDs8e69jOxh80iUrebww= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615653; c=relaxed/simple; bh=/CIbIR/zbhCjZ/cFIFqC/MmyrDN/rrFu56hCjz4GzXk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=gXwOe3IwHwGPRj0EuDHWnQdzvo8sivNxWZMVG5A34etbRvv/OAWUNTJaQZoqVVB1q/p9plBSq4P/TUnGtfGXuX1Ls5z6WVCUgo90t9RVJ2hO9845o2qpimWJXlBrnimacolBNW8IFfgI19UbFITZI/eCU1dyFEB/LpQVJHc13zw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=RoLTr3rf; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="RoLTr3rf" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615651; x=1783151651; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/CIbIR/zbhCjZ/cFIFqC/MmyrDN/rrFu56hCjz4GzXk=; b=RoLTr3rfII7UDfrek4XJWeQWLLCxbGkEtdBZc9qH4n32fAOkTxY0o656 gid/3SJBjBPpM8sX6z80+YaQBTExE8jtJanvKCb28N4Lz0GHbntWEhh+N ft84SZFEnuNvprRS1eAGwloHxgEMPOvpM9Xfbwybk3eVIAqS+xWVjQbNd YbA5UdHdVWmDDFn+8q7nmRwSnhhKRpgBqPRtXzsgwUi2ZMoCrzk2SpMW0 HyJWp5dTC5DfaLDp4B5xr6hhbpQW0BfNuHdr1vWuo29keHDFDKubFuXBk Z4vuZ7Kr1+ghhWnlUrCyWIJ+mjlWkc/YvW485glZvCzSbFye8uPyVRAjP Q==; X-CSE-ConnectionGUID: CPENT+9DRTWci19H2l50Ww== X-CSE-MsgGUID: s5lMWusrQti1NEHkAk75mw== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494501" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494501" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:10 -0700 X-CSE-ConnectionGUID: gj+SqCv9QA+K8twjZgRmSQ== X-CSE-MsgGUID: bEdlVY7kR+icdEMGIvk3Lg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924193" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:09 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id D917444910; Fri, 4 Jul 2025 10:54:06 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Vinod Koul , Sakari Ailus , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 13/80] dmaengine: ti: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:06 +0300 Message-Id: <20250704075406.3217578-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/dma/ti/cppi41.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/dma/ti/cppi41.c b/drivers/dma/ti/cppi41.c index 8d8c3d6038fc..88756dccd62c 100644 --- a/drivers/dma/ti/cppi41.c +++ b/drivers/dma/ti/cppi41.c @@ -390,7 +390,6 @@ static int cppi41_dma_alloc_chan_resources(struct dma_c= han *chan) if (!c->is_tx) cppi_writel(c->q_num, c->gcr_reg + RXHPCRA0); =20 - pm_runtime_mark_last_busy(cdd->ddev.dev); pm_runtime_put_autosuspend(cdd->ddev.dev); =20 return 0; @@ -411,7 +410,6 @@ static void cppi41_dma_free_chan_resources(struct dma_c= han *chan) =20 WARN_ON(!list_empty(&cdd->pending)); =20 - pm_runtime_mark_last_busy(cdd->ddev.dev); pm_runtime_put_autosuspend(cdd->ddev.dev); } =20 @@ -509,7 +507,6 @@ static void cppi41_dma_issue_pending(struct dma_chan *c= han) cppi41_run_queue(cdd); spin_unlock_irqrestore(&cdd->lock, flags); =20 - pm_runtime_mark_last_busy(cdd->ddev.dev); pm_runtime_put_autosuspend(cdd->ddev.dev); } =20 @@ -627,7 +624,6 @@ static struct dma_async_tx_descriptor *cppi41_dma_prep_= slave_sg( txd =3D &c->txd; =20 err_out_not_ready: - pm_runtime_mark_last_busy(cdd->ddev.dev); pm_runtime_put_autosuspend(cdd->ddev.dev); =20 return txd; @@ -1139,7 +1135,6 @@ static int cppi41_dma_probe(struct platform_device *p= dev) if (ret) goto err_of; =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 055D4299ABF; Fri, 4 Jul 2025 07:54:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615655; cv=none; b=heDr3mcAybZIXsVSk2v+EQ9D0f4TEemKez4gUnJGhcP/9k7SPn4v4UN9iHuzjByTZemYVz8NEh8UEetuEDktG2jXggC4D/zNza7/BWuHQtgtl8UOvz0LA0GBj18gMuARSzCwvHhKFF0nJfaSPNyo8z5JUyIQ7NQ27Y6p2HfZOs0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615655; c=relaxed/simple; bh=yOZfd0doZbXNg800IlwSq25+2rcm+my/SjHfpGQtN7o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=BJzFkO+q/ry4snv5dGDxuFfeg5TzUQ2UcKz45Mw6naNrR7XjZVrL5bNyPTiV3ueYP4E6ZnT5dc49VpSvpujTFQmNXLRAYEHLNA2G26W+J86/AlWLOI6uTh1Sfk6GeTl+y0OY+3IN1zoGmAswOr/h/XbOMQaOd+7ccOUl5sJcmjk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=NG9StyAI; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="NG9StyAI" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615654; x=1783151654; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yOZfd0doZbXNg800IlwSq25+2rcm+my/SjHfpGQtN7o=; b=NG9StyAILx59gox1SdfFPAFZFG+ahk4LKN0iebV01PkanOJMMk0gwSK4 PUa/Mvmu6R7s5KU+Cnml0UpGAOMvYSDWEcwG7JDJSCFUsEB9BLDxJmYjd kd0plzW2N9n39XeDbsn+Nj++MaWO16UG/C4x6gfwJrBJp4TX3pit0xKJd EIe8lqttqVmjvQo7Fe5ScK9AI2XVBHXwTN6F0W7oRvAYqZP/UtafEB78s scRWK3dXxjWhmSAvz0htju5dSQnPxezwMXH6jZSo/rv4iu084Z5paATnX 4oKzN3mIhHGbm6wQu0Gxw3yW0ZjcbnMshXYqefy7stf8QgyjT82HwIfvF w==; X-CSE-ConnectionGUID: ng8U1VzqRXy4PcBm3z5M9Q== X-CSE-MsgGUID: VnaoP7PGTImDf+HngUaTEw== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494535" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494535" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:12 -0700 X-CSE-ConnectionGUID: 7LRH1JZBRZa36akWsFoezQ== X-CSE-MsgGUID: Zfiru8UkStqJOwODVPppxg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924195" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:09 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id B5F5044394; Fri, 4 Jul 2025 10:54:07 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Vinod Koul , Michal Simek , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Sakari Ailus , Yan Zhen , Palmer Dabbelt , Abin Joseph Cc: dmaengine@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 14/80] dmaengine: zynqmp_dma: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:07 +0300 Message-Id: <20250704075407.3217630-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/dma/xilinx/zynqmp_dma.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/dma/xilinx/zynqmp_dma.c b/drivers/dma/xilinx/zynqmp_dm= a.c index d05fc5fcc77d..1e2b9f37fd40 100644 --- a/drivers/dma/xilinx/zynqmp_dma.c +++ b/drivers/dma/xilinx/zynqmp_dma.c @@ -695,7 +695,6 @@ static void zynqmp_dma_free_chan_resources(struct dma_c= han *dchan) (2 * ZYNQMP_DMA_DESC_SIZE(chan) * ZYNQMP_DMA_NUM_DESCS), chan->desc_pool_v, chan->desc_pool_p); kfree(chan->sw_desc_pool); - pm_runtime_mark_last_busy(chan->dev); pm_runtime_put_autosuspend(chan->dev); } =20 @@ -1145,7 +1144,6 @@ static int zynqmp_dma_probe(struct platform_device *p= dev) goto free_chan_resources; } =20 - pm_runtime_mark_last_busy(zdev->dev); pm_runtime_put_sync_autosuspend(zdev->dev); =20 return 0; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 828F92868B0; Fri, 4 Jul 2025 07:54:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615655; cv=none; b=Tn/U7VRKeRwPZFRO1xBOoMN/96aMET8jP4UyJUJZaMomLvbBSZWABdTxzUwpWAUuBG201U0lUA/kARcHoehc6NFJoLxx6XFVXG6cUVl3hGqq6YBQAXve1KckZudhLuwqYIALl+56yjJxfQ52ti2jb8vxDSifjceStk7eNlkf3Y0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615655; c=relaxed/simple; bh=PvexKr9/gRErtk+6ItgG0gzd86lk0Sl8dtRD60EIQqM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=R0crOhn7+i3grBmvSdHLk9evI3uQnYup19wGXeskOqhXAB6qi+F6k1Jk7BfsAqAZva9LMiKmKMa8em/Zg0RQdJyhfzdoVztuZgJCs/4dBA9XDZhaMekpn5gJZY9m86Kvf0TkDsVH2/ijEE0lyVraVLlI2x9xaItXmDzHVD1+3sU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=AYgFMUr9; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="AYgFMUr9" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615653; x=1783151653; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=PvexKr9/gRErtk+6ItgG0gzd86lk0Sl8dtRD60EIQqM=; b=AYgFMUr9yFEE26Msfn4p7pIVR2K891YYXwF8bjPP0yS9P8yUSJm2QVTw nWxCpswOy5rNtY+NATuSykpA8cLVbIf2mWJA5jUq6igUu0w+FVOZMLKDp xg0waGsvd28GlucfaGOCPJlrkDHtEay0s5EaHQvvJ1FqC7hZBXlp19+ym JCm7L2kNgTc7tdY2uejcZhLLyXfgaXW8Ejw77bXLR3PsZf3U8KunDnkU3 p3TpOhh72YRubrtclJyviyQO2MzzaJe6EkklDMcdRGeRgGQTVqXallKUp CAPZZxjopONjsuQe3jQ14e6hdmI3wWQgMt8gTdFOSUGZ2xno4nzZ0LEqK A==; X-CSE-ConnectionGUID: 8JgaxZAWTKmgaYlkL8elfA== X-CSE-MsgGUID: IRAvMsEUQHKTxUe4ikzvrA== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494532" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494532" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:12 -0700 X-CSE-ConnectionGUID: tiWNuHgPTZOgE7yQViXsfw== X-CSE-MsgGUID: ykaMj68pQ/CpLYcV53Unlw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924199" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:10 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 7216444424; Fri, 4 Jul 2025 10:54:08 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Linus Walleij , Bartosz Golaszewski Cc: patches@opensource.cirrus.com, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 15/80] gpio: arizona: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:08 +0300 Message-Id: <20250704075408.3217690-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Reviewed-by: Charles Keepax --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/gpio/gpio-arizona.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpio/gpio-arizona.c b/drivers/gpio/gpio-arizona.c index e530c94dcce8..89ffde693019 100644 --- a/drivers/gpio/gpio-arizona.c +++ b/drivers/gpio/gpio-arizona.c @@ -39,7 +39,6 @@ static int arizona_gpio_direction_in(struct gpio_chip *ch= ip, unsigned offset) return ret; =20 if (change && persistent) { - pm_runtime_mark_last_busy(chip->parent); pm_runtime_put_autosuspend(chip->parent); } =20 @@ -82,7 +81,6 @@ static int arizona_gpio_get(struct gpio_chip *chip, unsig= ned offset) return ret; } =20 - pm_runtime_mark_last_busy(chip->parent); pm_runtime_put_autosuspend(chip->parent); } =20 --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 2F33F2D027F for ; Fri, 4 Jul 2025 07:54:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615665; cv=none; b=b4A5qH9/oWp0zNjDn5rnQU6eEVE4hNy7BFkkgg/ZhUVjRDA2uP/xQ4tcnZ2HI+FR7H4yY0OlJbcMOV/eimXDLMs4Kv0K9ysVNxpGJa46veGokp9oN2XuJRpHV+gqscv6nOftTcSSwic9CyiFWSzGeE3iP6aNXVrljD0Fx//nYzo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615665; c=relaxed/simple; bh=2oLAN0I3MPH743jpOiM312shdseQ1P5Sz0tCpCEQSuw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ROfZLKKINR+Jx1WY+uM9i04jS8yQ6L2QUctarCdw0BXWvbkJy5miKuSceGadYXxVWQ6B9q42oV9xAfa4ibtHu84NJdyhd/QVRd72rqEc2llIioOdiaAOpHlTePkXTqnjcOQNVLz9DVGEr9xCLtsHWQKFZ19yikTIYPbGQ6wti10= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=n0F7qHh3; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="n0F7qHh3" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615663; x=1783151663; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2oLAN0I3MPH743jpOiM312shdseQ1P5Sz0tCpCEQSuw=; b=n0F7qHh3aau8cR2om4TYR4dCoriYmQ76iMyTOFwdZqZ+gpQR+M3R4ccC UH27meT+r1xOx8tp5z4mpuzbfN5n6Klr6ldyTT4cCC4t6Iq9HRXLxBn8Y +Z9Hsuuwbh67JWXTX+bT59cSV0Nx5vgC5tI6N7h1Tv/6UAIts94x35D8a sCUkqLkWPpW0JgkbgZgCvQzDAUK/RBoTWNBQvl+EVbdu5oa2r1+Qj+qGs ZbHgPmUH3bdRu5XgsjaixTsHE/y7MNSV/ZhK8TgeIh2P8MN17p0La0W3S f0PraOwAfOpAIyYrgvcZgw1LDAqaVAb795xJIN6hpq6NBbASB0taZIaNK A==; X-CSE-ConnectionGUID: HFDtwWwjQJSYWorJzThk7g== X-CSE-MsgGUID: 2ta+pU0ARhGp41bj15HT2A== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494595" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494595" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:22 -0700 X-CSE-ConnectionGUID: RhFtQ7PRQl6VBE4/Qd22QQ== X-CSE-MsgGUID: fBIQ85yES5ehhaXU4RLS3A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924260" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:11 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 8B01D44419; Fri, 4 Jul 2025 10:54:09 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Simona Vetter , Felix Kuehling , Kenneth Feng , Mario Limonciello , Alex Hung , Antonio Quartulli , Pratap Nirujogi , Sakari Ailus , Liviu Dudau , Harry Wentland , Dmitry Baryshkov , Jani Nikula , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Ma Ke , Yang Wang , Jesse Zhang , Lijo Lazar , Sathishkumar S , =?UTF-8?q?Andr=C3=A9=20Almeida?= , Hamza Mahfooz , Thomas Zimmermann , Tim Huang , =?UTF-8?q?Marek=20Ol=C5=A1=C3=A1k?= , Ingo Molnar , Thomas Gleixner , Asad Kamal , Srinivasan Shanmugam , Jack Xiao , Prike Liang , Shashank Sharma , Victor Skvortsov , Hawking Zhang , Tao Zhou , ganglxie , YiPeng Chai , Arunpravin Paneer Selvam Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 16/80] drm/amd: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:09 +0300 Message-Id: <20250704075409.3217885-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c | 1 - .../gpu/drm/amd/amdgpu/amdgpu_connectors.c | 4 --- drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | 25 ------------------- drivers/gpu/drm/amd/amdgpu/amdgpu_display.c | 2 -- drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c | 4 --- drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 2 -- drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c | 1 - drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 2 -- drivers/gpu/drm/amd/amdgpu/amdgpu_rap.c | 1 - drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c | 1 - .../gpu/drm/amd/amdgpu/amdgpu_securedisplay.c | 1 - drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c | 1 - drivers/gpu/drm/amd/amdkfd/kfd_process.c | 1 - drivers/gpu/drm/amd/pm/amdgpu_pm.c | 1 - 14 files changed, 47 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c b/drivers/gpu/drm/amd= /amdgpu/amdgpu_acpi.c index f5466c592d94..9e4f135b9173 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_acpi.c @@ -507,7 +507,6 @@ static int amdgpu_atif_handler(struct amdgpu_device *ad= ev, pm_runtime_get_sync(adev_to_drm(adev)->dev); /* Just fire off a uevent and let userspace tell us what to do */ drm_helper_hpd_irq_event(adev_to_drm(adev)); - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); } } diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c b/drivers/gpu/d= rm/amd/amdgpu/amdgpu_connectors.c index 5e375e9c4f5d..7220ecb93ff7 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c @@ -738,7 +738,6 @@ amdgpu_connector_lvds_detect(struct drm_connector *conn= ector, bool force) amdgpu_connector_update_scratch_regs(connector, ret); =20 if (!drm_kms_helper_is_poll_worker()) { - pm_runtime_mark_last_busy(connector->dev->dev); pm_runtime_put_autosuspend(connector->dev->dev); } =20 @@ -923,7 +922,6 @@ amdgpu_connector_vga_detect(struct drm_connector *conne= ctor, bool force) =20 out: if (!drm_kms_helper_is_poll_worker()) { - pm_runtime_mark_last_busy(connector->dev->dev); pm_runtime_put_autosuspend(connector->dev->dev); } =20 @@ -1150,7 +1148,6 @@ amdgpu_connector_dvi_detect(struct drm_connector *con= nector, bool force) =20 exit: if (!drm_kms_helper_is_poll_worker()) { - pm_runtime_mark_last_busy(connector->dev->dev); pm_runtime_put_autosuspend(connector->dev->dev); } =20 @@ -1450,7 +1447,6 @@ amdgpu_connector_dp_detect(struct drm_connector *conn= ector, bool force) amdgpu_connector_update_scratch_regs(connector, ret); out: if (!drm_kms_helper_is_poll_worker()) { - pm_runtime_mark_last_busy(connector->dev->dev); pm_runtime_put_autosuspend(connector->dev->dev); } =20 diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c b/drivers/gpu/drm/= amd/amdgpu/amdgpu_debugfs.c index 83f211903425..2c724e8354de 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c @@ -129,7 +129,6 @@ static int amdgpu_debugfs_process_reg_op(bool read, st= ruct file *f, if (use_bank) { if ((sh_bank !=3D 0xFFFFFFFF && sh_bank >=3D adev->gfx.config.max_sh_per= _se) || (se_bank !=3D 0xFFFFFFFF && se_bank >=3D adev->gfx.config.max_shader= _engines)) { - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); amdgpu_virt_disable_access_debugfs(adev); return -EINVAL; @@ -179,7 +178,6 @@ static int amdgpu_debugfs_process_reg_op(bool read, st= ruct file *f, if (pm_pg_lock) mutex_unlock(&adev->pm.mutex); =20 - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); =20 amdgpu_virt_disable_access_debugfs(adev); @@ -255,7 +253,6 @@ static ssize_t amdgpu_debugfs_regs2_op(struct file *f, = char __user *buf, u32 off if (rd->id.use_grbm) { if ((rd->id.grbm.sh !=3D 0xFFFFFFFF && rd->id.grbm.sh >=3D adev->gfx.con= fig.max_sh_per_se) || (rd->id.grbm.se !=3D 0xFFFFFFFF && rd->id.grbm.se >=3D adev->gfx.con= fig.max_shader_engines)) { - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); amdgpu_virt_disable_access_debugfs(adev); mutex_unlock(&rd->lock); @@ -310,7 +307,6 @@ static ssize_t amdgpu_debugfs_regs2_op(struct file *f, = char __user *buf, u32 off =20 mutex_unlock(&rd->lock); =20 - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); =20 amdgpu_virt_disable_access_debugfs(adev); @@ -446,7 +442,6 @@ static ssize_t amdgpu_debugfs_gprwave_read(struct file = *f, char __user *buf, siz amdgpu_gfx_select_se_sh(adev, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, rd->id.= xcc_id); mutex_unlock(&adev->grbm_idx_mutex); =20 - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); =20 if (!x) { @@ -557,7 +552,6 @@ static ssize_t amdgpu_debugfs_regs_pcie_read(struct fil= e *f, char __user *buf, =20 r =3D result; out: - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); amdgpu_virt_disable_access_debugfs(adev); return r; @@ -617,7 +611,6 @@ static ssize_t amdgpu_debugfs_regs_pcie_write(struct fi= le *f, const char __user =20 r =3D result; out: - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); amdgpu_virt_disable_access_debugfs(adev); return r; @@ -676,7 +669,6 @@ static ssize_t amdgpu_debugfs_regs_didt_read(struct fil= e *f, char __user *buf, =20 r =3D result; out: - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); amdgpu_virt_disable_access_debugfs(adev); return r; @@ -736,7 +728,6 @@ static ssize_t amdgpu_debugfs_regs_didt_write(struct fi= le *f, const char __user =20 r =3D result; out: - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); amdgpu_virt_disable_access_debugfs(adev); return r; @@ -795,7 +786,6 @@ static ssize_t amdgpu_debugfs_regs_smc_read(struct file= *f, char __user *buf, =20 r =3D result; out: - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); amdgpu_virt_disable_access_debugfs(adev); return r; @@ -855,7 +845,6 @@ static ssize_t amdgpu_debugfs_regs_smc_write(struct fil= e *f, const char __user * =20 r =3D result; out: - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); amdgpu_virt_disable_access_debugfs(adev); return r; @@ -1003,7 +992,6 @@ static ssize_t amdgpu_debugfs_sensor_read(struct file = *f, char __user *buf, =20 r =3D amdgpu_dpm_read_sensor(adev, idx, &values[0], &valuesize); =20 - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); =20 if (r) { @@ -1094,7 +1082,6 @@ static ssize_t amdgpu_debugfs_wave_read(struct file *= f, char __user *buf, amdgpu_gfx_select_se_sh(adev, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0); mutex_unlock(&adev->grbm_idx_mutex); =20 - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); =20 if (!x) { @@ -1192,7 +1179,6 @@ static ssize_t amdgpu_debugfs_gpr_read(struct file *f= , char __user *buf, amdgpu_gfx_select_se_sh(adev, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0); mutex_unlock(&adev->grbm_idx_mutex); =20 - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); =20 while (size) { @@ -1266,7 +1252,6 @@ static ssize_t amdgpu_debugfs_gfxoff_residency_read(s= truct file *f, char __user =20 r =3D result; out: - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); =20 return r; @@ -1315,7 +1300,6 @@ static ssize_t amdgpu_debugfs_gfxoff_residency_write(= struct file *f, const char =20 r =3D result; out: - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); =20 return r; @@ -1365,7 +1349,6 @@ static ssize_t amdgpu_debugfs_gfxoff_count_read(struc= t file *f, char __user *buf =20 r =3D result; out: - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); =20 return r; @@ -1414,7 +1397,6 @@ static ssize_t amdgpu_debugfs_gfxoff_write(struct fil= e *f, const char __user *bu =20 r =3D result; out: - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); =20 return r; @@ -1460,7 +1442,6 @@ static ssize_t amdgpu_debugfs_gfxoff_read(struct file= *f, char __user *buf, =20 r =3D result; out: - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); =20 return r; @@ -1501,7 +1482,6 @@ static ssize_t amdgpu_debugfs_gfxoff_status_read(stru= ct file *f, char __user *bu =20 r =3D result; out: - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); =20 return r; @@ -1701,7 +1681,6 @@ static int amdgpu_debugfs_test_ib_show(struct seq_fil= e *m, void *unused) =20 up_write(&adev->reset_domain->sem); =20 - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); =20 return 0; @@ -1721,7 +1700,6 @@ static int amdgpu_debugfs_evict_vram(void *data, u64 = *val) =20 *val =3D amdgpu_ttm_evict_resources(adev, TTM_PL_VRAM); =20 - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); =20 return 0; @@ -1742,7 +1720,6 @@ static int amdgpu_debugfs_evict_gtt(void *data, u64 *= val) =20 *val =3D amdgpu_ttm_evict_resources(adev, TTM_PL_TT); =20 - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); =20 return 0; @@ -1762,7 +1739,6 @@ static int amdgpu_debugfs_benchmark(void *data, u64 v= al) =20 r =3D amdgpu_benchmark(adev, val); =20 - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); =20 return r; @@ -2014,7 +1990,6 @@ static int amdgpu_debugfs_sclk_set(void *data, u64 va= l) ret =3D -EINVAL; =20 out: - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); =20 return ret; diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/= amd/amdgpu/amdgpu_display.c index 9e463d3ee927..d5844fee7204 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c @@ -332,8 +332,6 @@ int amdgpu_display_crtc_set_config(struct drm_mode_set = *set, if (crtc->enabled) active =3D true; =20 - pm_runtime_mark_last_busy(dev->dev); - adev =3D drm_to_adev(dev); /* if we have active crtcs and we don't have a power ref, * take the current one diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c b/drivers/gpu/drm/amd/= amdgpu/amdgpu_drv.c index b299e15bb5e5..24edb5a327c2 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_drv.c @@ -2228,7 +2228,6 @@ static void amdgpu_get_secondary_funcs(struct amdgpu_= device *adev) adev->pdev->bus->number, i); if (p) { pm_runtime_get_sync(&p->dev); - pm_runtime_mark_last_busy(&p->dev); pm_runtime_put_autosuspend(&p->dev); pci_dev_put(p); } @@ -2469,7 +2468,6 @@ static int amdgpu_pci_probe(struct pci_dev *pdev, =20 pm_runtime_allow(ddev->dev); =20 - pm_runtime_mark_last_busy(ddev->dev); pm_runtime_put_autosuspend(ddev->dev); =20 pci_wake_from_d3(pdev, TRUE); @@ -2907,7 +2905,6 @@ static int amdgpu_pmops_runtime_idle(struct device *d= ev) =20 ret =3D amdgpu_runtime_idle_check_userq(dev); done: - pm_runtime_mark_last_busy(dev); pm_runtime_autosuspend(dev); return ret; } @@ -2926,7 +2923,6 @@ long amdgpu_drm_ioctl(struct file *filp, =20 ret =3D drm_ioctl(filp, cmd, arg); =20 - pm_runtime_mark_last_busy(dev->dev); out: pm_runtime_put_autosuspend(dev->dev); return ret; diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c b/drivers/gpu/drm/am= d/amdgpu/amdgpu_fence.c index 2c3547f4cea4..5e52ac2f9206 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c @@ -267,7 +267,6 @@ bool amdgpu_fence_process(struct amdgpu_ring *ring) =20 dma_fence_signal(fence); dma_fence_put(fence); - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); } while (last_seq !=3D seq); =20 @@ -920,7 +919,6 @@ static int gpu_recover_get(void *data, u64 *val) =20 *val =3D atomic_read(&adev->reset_domain->reset_res); =20 - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); =20 return 0; diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c b/drivers/gpu/drm/amd/= amdgpu/amdgpu_gfx.c index c80c8f543532..c922e141f4c6 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c @@ -1594,7 +1594,6 @@ static ssize_t amdgpu_gfx_set_run_cleaner_shader(stru= ct device *dev, =20 ret =3D amdgpu_gfx_run_cleaner_shader(adev, value); =20 - pm_runtime_mark_last_busy(ddev->dev); pm_runtime_put_autosuspend(ddev->dev); =20 if (ret) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/= amdgpu/amdgpu_kms.c index 195ed81d39ff..c7233f30a29f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c @@ -1450,7 +1450,6 @@ int amdgpu_driver_open_kms(struct drm_device *dev, st= ruct drm_file *file_priv) kfree(fpriv); =20 out_suspend: - pm_runtime_mark_last_busy(dev->dev); pm_put: pm_runtime_put_autosuspend(dev->dev); =20 @@ -1521,7 +1520,6 @@ void amdgpu_driver_postclose_kms(struct drm_device *d= ev, kfree(fpriv); file_priv->driver_priv =3D NULL; =20 - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); } =20 diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_rap.c b/drivers/gpu/drm/amd/= amdgpu/amdgpu_rap.c index 123bcf5c2bb1..bacf888735db 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_rap.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_rap.c @@ -101,7 +101,6 @@ static ssize_t amdgpu_rap_debugfs_write(struct file *f,= const char __user *buf, } =20 amdgpu_gfx_off_ctrl(adev, true); - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); =20 return size; diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c b/drivers/gpu/drm/amd/= amdgpu/amdgpu_ras.c index dd37d8815ba5..258acce7db8f 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_ras.c @@ -3869,7 +3869,6 @@ static void amdgpu_ras_counte_dw(struct work_struct *= work) atomic_set(&con->ras_ue_count, ue_count); } =20 - pm_runtime_mark_last_busy(dev->dev); Out: pm_runtime_put_autosuspend(dev->dev); } diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_securedisplay.c b/drivers/gp= u/drm/amd/amdgpu/amdgpu_securedisplay.c index 41ebe690eeff..3739be1b71e0 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_securedisplay.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_securedisplay.c @@ -159,7 +159,6 @@ static ssize_t amdgpu_securedisplay_debugfs_write(struc= t file *f, const char __u dev_err(adev->dev, "Invalid input: %s\n", str); } =20 - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); =20 return size; diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c b/drivers/gpu/drm/am= d/amdgpu/amdgpu_userq.c index 295e7186e156..5e939ea8ea42 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_userq.c @@ -322,7 +322,6 @@ amdgpu_userq_destroy(struct drm_file *filp, int queue_i= d) amdgpu_userq_cleanup(uq_mgr, queue, queue_id); mutex_unlock(&uq_mgr->userq_mutex); =20 - pm_runtime_mark_last_busy(adev_to_drm(adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(adev)->dev); =20 return r; diff --git a/drivers/gpu/drm/amd/amdkfd/kfd_process.c b/drivers/gpu/drm/amd= /amdkfd/kfd_process.c index 5be28c6c4f6a..04b1abd8e80a 100644 --- a/drivers/gpu/drm/amd/amdkfd/kfd_process.c +++ b/drivers/gpu/drm/amd/amdkfd/kfd_process.c @@ -1083,7 +1083,6 @@ static void kfd_process_destroy_pdds(struct kfd_proce= ss *p) * for auto suspend */ if (pdd->runtime_inuse) { - pm_runtime_mark_last_busy(adev_to_drm(pdd->dev->adev)->dev); pm_runtime_put_autosuspend(adev_to_drm(pdd->dev->adev)->dev); pdd->runtime_inuse =3D false; } diff --git a/drivers/gpu/drm/amd/pm/amdgpu_pm.c b/drivers/gpu/drm/amd/pm/am= dgpu_pm.c index edd9895b46c0..728b3982df57 100644 --- a/drivers/gpu/drm/amd/pm/amdgpu_pm.c +++ b/drivers/gpu/drm/amd/pm/amdgpu_pm.c @@ -172,7 +172,6 @@ static int amdgpu_pm_get_access_if_active(struct amdgpu= _device *adev) */ static inline void amdgpu_pm_put_access(struct amdgpu_device *adev) { - pm_runtime_mark_last_busy(adev->dev); pm_runtime_put_autosuspend(adev->dev); } =20 --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 C3DC429E0E7 for ; Fri, 4 Jul 2025 07:54:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615658; cv=none; b=okfBj9v3ZIqOCuEPZB6l7lZUwhin7a4Om5xJRvVUirK+qisuWrQu/6YZDsHQPX1iYqPoYqfMQn+fyj0/jRtTgnEWQosCOnC7jrkkaKP1pnJk+SB14MD+Piu5ZisgDpaWgoZfoDcsloNQly0JhiVzcRH0AHlRtCCWl6zu+61vt0Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615658; c=relaxed/simple; bh=O8egqTt7UsUxxJR5g7PvhZjDC48I3N4QwWH4q93qWUQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=qQCwn/BQmFsIxlvNqc5K+/dJMM+OcW2BjGUIWlYvbWwAaeIp2WqhTaqipGIDmW63JybyGJ/SlP+29lEN3KgTHs0qJlUXB8Uv5iUmf6o1st1lIlBPvm7eEScqzZ0QisAk8koa+C3BZccP46qhyRTsbMzyNfp+ontsRItfqS4D6Vo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=c3szSnOx; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="c3szSnOx" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615656; x=1783151656; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=O8egqTt7UsUxxJR5g7PvhZjDC48I3N4QwWH4q93qWUQ=; b=c3szSnOxJ8aYQig54RvkXSKLERTLjnlmFrF83cVmpKJCRIPAz4q7gfui oHiGNkOzQW18Cfkq/5ighCOgpCAEprvVgfVm5PLeDIaguLS3LyZlJyVlt Z5/OsUQaPmjmLRTsSp4n/fF40pylM8KWsCtVpSPO6J0HeNGYRYd0e+wpW U63irEiruoQ2ntlRpn+Igp60Tu/6EEL99MV5VOMdKAHzYTlc55XbSJ2Qp ++7Vfv4yDBbneraJJo/BOgRXX4zIb/7BJxaH0PsCi2ZjrAdrJ66hOK8pf LromoOZnHD1aiJ7kE3OMcYOyhx5wd+Z43IoTDoWH6bOgaza3BNQgBdisA w==; X-CSE-ConnectionGUID: RcXoc7DhTPyb5g55IJWOeg== X-CSE-MsgGUID: oZWI6y+vQPWHe0XDM1EFSw== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494550" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494550" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:16 -0700 X-CSE-ConnectionGUID: WfIGKu++T/KZR4Pj6Hj17g== X-CSE-MsgGUID: UeLDkmiTSKSncwjAXB02OA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924240" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:12 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 6D57D447EB; Fri, 4 Jul 2025 10:54:10 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Lyude Paul , Danilo Krummrich , David Airlie , Simona Vetter , Ben Skeggs , Dave Airlie , Thomas Zimmermann , Jani Nikula , "Gustavo A. R. Silva" , Dmitry Baryshkov , Suraj Kandpal Cc: dri-devel@lists.freedesktop.org, nouveau@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 17/80] drm/nouveau: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:10 +0300 Message-Id: <20250704075410.3217943-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Acked-by: Danilo Krummrich --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/gpu/drm/nouveau/dispnv50/disp.c | 2 -- drivers/gpu/drm/nouveau/nouveau_connector.c | 1 - drivers/gpu/drm/nouveau/nouveau_debugfs.c | 1 - drivers/gpu/drm/nouveau/nouveau_display.c | 1 - drivers/gpu/drm/nouveau/nouveau_drm.c | 4 ---- drivers/gpu/drm/nouveau/nouveau_gem.c | 3 --- 6 files changed, 12 deletions(-) diff --git a/drivers/gpu/drm/nouveau/dispnv50/disp.c b/drivers/gpu/drm/nouv= eau/dispnv50/disp.c index e97e39abf3a2..682d21a8a82d 100644 --- a/drivers/gpu/drm/nouveau/dispnv50/disp.c +++ b/drivers/gpu/drm/nouveau/dispnv50/disp.c @@ -1222,7 +1222,6 @@ nv50_mstc_detect(struct drm_connector *connector, goto out; =20 out: - pm_runtime_mark_last_busy(connector->dev->dev); pm_runtime_put_autosuspend(connector->dev->dev); return ret; } @@ -2411,7 +2410,6 @@ nv50_disp_atomic_commit_tail(struct drm_atomic_state = *state) drm_atomic_state_put(state); =20 /* Drop the RPM ref we got from nv50_disp_atomic_commit() */ - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); } =20 diff --git a/drivers/gpu/drm/nouveau/nouveau_connector.c b/drivers/gpu/drm/= nouveau/nouveau_connector.c index 63621b1510f6..7d0c5e42d1dd 100644 --- a/drivers/gpu/drm/nouveau/nouveau_connector.c +++ b/drivers/gpu/drm/nouveau/nouveau_connector.c @@ -673,7 +673,6 @@ nouveau_connector_detect(struct drm_connector *connecto= r, bool force) if (!nv_connector->edid) drm_dp_cec_unset_edid(&nv_connector->aux); =20 - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); =20 return conn_status; diff --git a/drivers/gpu/drm/nouveau/nouveau_debugfs.c b/drivers/gpu/drm/no= uveau/nouveau_debugfs.c index 200e65a7cefc..40eedb349c6c 100644 --- a/drivers/gpu/drm/nouveau/nouveau_debugfs.c +++ b/drivers/gpu/drm/nouveau/nouveau_debugfs.c @@ -62,7 +62,6 @@ nouveau_debugfs_strap_peek(struct seq_file *m, void *data) seq_printf(m, "0x%08x\n", nvif_rd32(&drm->client.device.object, 0x101000)); =20 - pm_runtime_mark_last_busy(drm->dev->dev); pm_runtime_put_autosuspend(drm->dev->dev); =20 return 0; diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/no= uveau/nouveau_display.c index c50ec347b30a..c74f5ef315a7 100644 --- a/drivers/gpu/drm/nouveau/nouveau_display.c +++ b/drivers/gpu/drm/nouveau/nouveau_display.c @@ -495,7 +495,6 @@ nouveau_display_hpd_work(struct work_struct *work) if (first_changed_connector) drm_connector_put(first_changed_connector); =20 - pm_runtime_mark_last_busy(dev->dev); noop: pm_runtime_put_autosuspend(dev->dev); } diff --git a/drivers/gpu/drm/nouveau/nouveau_drm.c b/drivers/gpu/drm/nouvea= u/nouveau_drm.c index 0c82a63cd49d..1dccd4af1bea 100644 --- a/drivers/gpu/drm/nouveau/nouveau_drm.c +++ b/drivers/gpu/drm/nouveau/nouveau_drm.c @@ -1177,7 +1177,6 @@ nouveau_pmops_runtime_idle(struct device *dev) return -EBUSY; } =20 - pm_runtime_mark_last_busy(dev); pm_runtime_autosuspend(dev); /* we don't want the main rpm_idle to call suspend - we want to autosuspe= nd */ return 1; @@ -1224,7 +1223,6 @@ nouveau_drm_open(struct drm_device *dev, struct drm_f= ile *fpriv) kfree(cli); } =20 - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); return ret; } @@ -1258,7 +1256,6 @@ nouveau_drm_postclose(struct drm_device *dev, struct = drm_file *fpriv) =20 nouveau_cli_fini(cli); kfree(cli); - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); drm_dev_exit(dev_index); } @@ -1306,7 +1303,6 @@ nouveau_drm_ioctl(struct file *file, unsigned int cmd= , unsigned long arg) break; } =20 - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); return ret; } diff --git a/drivers/gpu/drm/nouveau/nouveau_gem.c b/drivers/gpu/drm/nouvea= u/nouveau_gem.c index 690e10fbf0bd..d0f034b4a67c 100644 --- a/drivers/gpu/drm/nouveau/nouveau_gem.c +++ b/drivers/gpu/drm/nouveau/nouveau_gem.c @@ -89,7 +89,6 @@ nouveau_gem_object_del(struct drm_gem_object *gem) =20 ttm_bo_put(&nvbo->bo); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); } =20 @@ -127,7 +126,6 @@ nouveau_gem_object_open(struct drm_gem_object *gem, str= uct drm_file *file_priv) ret =3D nouveau_vma_new(nvbo, vmm, &vma); else ret =3D 0; - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); out: ttm_bo_unreserve(&nvbo->bo); @@ -206,7 +204,6 @@ nouveau_gem_object_close(struct drm_gem_object *gem, st= ruct drm_file *file_priv) ret =3D pm_runtime_get_sync(dev); if (!WARN_ON(ret < 0 && ret !=3D -EACCES)) { nouveau_gem_object_unmap(nvbo, vma); - pm_runtime_mark_last_busy(dev); } pm_runtime_put_autosuspend(dev); } --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 096DE29B8E0 for ; Fri, 4 Jul 2025 07:54:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615659; cv=none; b=HeZSBjdCE9XEMYwUeyqDwbFH+Yqb6rP//kdJ6IsZhUj5befXWfhE32ZNxiV0T2CbmrRmZFlO4ZHH89kZsUW0ANnBJm3UzbD/4ultV6t/rhYmcXbVF6J7ODoPLXQy5DRmkpneRIHEFosp5/ktsp2Fh6xXnSPqSlzC2wEoOf01Z00= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615659; c=relaxed/simple; bh=KVlSDc0mZPkCLINDGK1BM9jwOUm48xtGzbIHTXiVMqM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=MicSWwphKRios07oPLrxjxIyvvSOOCufwlYhFiFmYoyMkNuk0FYbcEHs8eUI5LcaOS18M6XLovt5d88cZ6JdpqRoL0NuvgQpwC2E8kXc1+W+uoOOY9fgVN5V6tiRvlbhpDXjnYjiUsh53SCskn7orC1A0ksy2OHmKDwNXSuLGX8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=BJ4E0OOU; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="BJ4E0OOU" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615656; x=1783151656; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KVlSDc0mZPkCLINDGK1BM9jwOUm48xtGzbIHTXiVMqM=; b=BJ4E0OOUoVjzJkZq2dipMReFVAsuj3c9zStNayPn+QcX9qr57CAkvXym NBl0F5bbJZRgjmAbbnuZQF2VOj4Tj8D+oKyyJPit2EdjOfRB1suAg9r7b 9b6/GWIDEVyUzeZB4vWfOHY0H3Fx83d2kV+j4yFVBNR2oo8X71o1MsqzE XID9u5cTSZBZyjyaqMa7Huo0KYMMadUUSl6bKT0uXChaIBBH+CLmZx/WY DH1RIFXw4FzpMorOhOQc22KKPwPdBrlenPgPYnEtfXuXhjSRmjKT/vHjt V6RBmrMq+Po9LdqWg0AKkHO69zvMEaX0cneFfMeOSYe6BGGQT7fEliY1G g==; X-CSE-ConnectionGUID: Wg3k2ztnQo+OqlWTpCWwjg== X-CSE-MsgGUID: qQ0HgRS6TLKcx+AABF/gaQ== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494545" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494545" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:15 -0700 X-CSE-ConnectionGUID: 9R57z0ToQ9etEVLaTP/fQw== X-CSE-MsgGUID: hbP5tAbuSxCIwTiN0b6otg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924210" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:13 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 3E67544843; Fri, 4 Jul 2025 10:54:11 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Simona Vetter Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 18/80] drm/radeon: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:11 +0300 Message-Id: <20250704075411.3218009-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/gpu/drm/radeon/radeon_acpi.c | 1 - drivers/gpu/drm/radeon/radeon_connectors.c | 5 ----- drivers/gpu/drm/radeon/radeon_display.c | 2 -- drivers/gpu/drm/radeon/radeon_drv.c | 2 -- drivers/gpu/drm/radeon/radeon_fbdev.c | 2 -- drivers/gpu/drm/radeon/radeon_kms.c | 4 ---- 6 files changed, 16 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_acpi.c b/drivers/gpu/drm/radeon/= radeon_acpi.c index 22ce61bdfc06..08f8ba4fd148 100644 --- a/drivers/gpu/drm/radeon/radeon_acpi.c +++ b/drivers/gpu/drm/radeon/radeon_acpi.c @@ -408,7 +408,6 @@ static int radeon_atif_handler(struct radeon_device *rd= ev, pm_runtime_get_sync(rdev_to_drm(rdev)->dev); /* Just fire off a uevent and let userspace tell us what to do */ drm_helper_hpd_irq_event(rdev_to_drm(rdev)); - pm_runtime_mark_last_busy(rdev_to_drm(rdev)->dev); pm_runtime_put_autosuspend(rdev_to_drm(rdev)->dev); } } diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c b/drivers/gpu/drm/r= adeon/radeon_connectors.c index 9f6a3df951ba..7a4f05dbd6f7 100644 --- a/drivers/gpu/drm/radeon/radeon_connectors.c +++ b/drivers/gpu/drm/radeon/radeon_connectors.c @@ -876,7 +876,6 @@ radeon_lvds_detect(struct drm_connector *connector, boo= l force) radeon_connector_update_scratch_regs(connector, ret); =20 if (!drm_kms_helper_is_poll_worker()) { - pm_runtime_mark_last_busy(connector->dev->dev); pm_runtime_put_autosuspend(connector->dev->dev); } =20 @@ -1067,7 +1066,6 @@ radeon_vga_detect(struct drm_connector *connector, bo= ol force) =20 out: if (!drm_kms_helper_is_poll_worker()) { - pm_runtime_mark_last_busy(connector->dev->dev); pm_runtime_put_autosuspend(connector->dev->dev); } =20 @@ -1155,7 +1153,6 @@ radeon_tv_detect(struct drm_connector *connector, boo= l force) radeon_connector_update_scratch_regs(connector, ret); =20 if (!drm_kms_helper_is_poll_worker()) { - pm_runtime_mark_last_busy(connector->dev->dev); pm_runtime_put_autosuspend(connector->dev->dev); } =20 @@ -1403,7 +1400,6 @@ radeon_dvi_detect(struct drm_connector *connector, bo= ol force) =20 exit: if (!drm_kms_helper_is_poll_worker()) { - pm_runtime_mark_last_busy(connector->dev->dev); pm_runtime_put_autosuspend(connector->dev->dev); } =20 @@ -1715,7 +1711,6 @@ radeon_dp_detect(struct drm_connector *connector, boo= l force) =20 out: if (!drm_kms_helper_is_poll_worker()) { - pm_runtime_mark_last_busy(connector->dev->dev); pm_runtime_put_autosuspend(connector->dev->dev); } =20 diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/rade= on/radeon_display.c index 8f5f8abcb1b4..89c3f83561d6 100644 --- a/drivers/gpu/drm/radeon/radeon_display.c +++ b/drivers/gpu/drm/radeon/radeon_display.c @@ -644,8 +644,6 @@ radeon_crtc_set_config(struct drm_mode_set *set, if (crtc->enabled) active =3D true; =20 - pm_runtime_mark_last_busy(dev->dev); - rdev =3D dev->dev_private; /* if we have active crtcs and we don't have a power ref, take the current one */ diff --git a/drivers/gpu/drm/radeon/radeon_drv.c b/drivers/gpu/drm/radeon/r= adeon_drv.c index 88e821d67af7..d0af0cef178a 100644 --- a/drivers/gpu/drm/radeon/radeon_drv.c +++ b/drivers/gpu/drm/radeon/radeon_drv.c @@ -477,7 +477,6 @@ static int radeon_pmops_runtime_idle(struct device *dev) } } =20 - pm_runtime_mark_last_busy(dev); pm_runtime_autosuspend(dev); /* we don't want the main rpm_idle to call suspend - we want to autosuspe= nd */ return 1; @@ -499,7 +498,6 @@ long radeon_drm_ioctl(struct file *filp, =20 ret =3D drm_ioctl(filp, cmd, arg); =20 - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); return ret; } diff --git a/drivers/gpu/drm/radeon/radeon_fbdev.c b/drivers/gpu/drm/radeon= /radeon_fbdev.c index d4a58bd679db..419fcad8d283 100644 --- a/drivers/gpu/drm/radeon/radeon_fbdev.c +++ b/drivers/gpu/drm/radeon/radeon_fbdev.c @@ -155,7 +155,6 @@ static int radeon_fbdev_fb_open(struct fb_info *info, i= nt user) return 0; =20 err_pm_runtime_mark_last_busy: - pm_runtime_mark_last_busy(rdev_to_drm(rdev)->dev); pm_runtime_put_autosuspend(rdev_to_drm(rdev)->dev); return ret; } @@ -165,7 +164,6 @@ static int radeon_fbdev_fb_release(struct fb_info *info= , int user) struct drm_fb_helper *fb_helper =3D info->par; struct radeon_device *rdev =3D fb_helper->dev->dev_private; =20 - pm_runtime_mark_last_busy(rdev_to_drm(rdev)->dev); pm_runtime_put_autosuspend(rdev_to_drm(rdev)->dev); =20 return 0; diff --git a/drivers/gpu/drm/radeon/radeon_kms.c b/drivers/gpu/drm/radeon/r= adeon_kms.c index 645e33bf7947..3144890b6007 100644 --- a/drivers/gpu/drm/radeon/radeon_kms.c +++ b/drivers/gpu/drm/radeon/radeon_kms.c @@ -170,7 +170,6 @@ int radeon_driver_load_kms(struct drm_device *dev, unsi= gned long flags) pm_runtime_set_autosuspend_delay(dev->dev, 5000); pm_runtime_set_active(dev->dev); pm_runtime_allow(dev->dev); - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); } =20 @@ -677,7 +676,6 @@ int radeon_driver_open_kms(struct drm_device *dev, stru= ct drm_file *file_priv) file_priv->driver_priv =3D fpriv; } =20 - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); return 0; =20 @@ -687,7 +685,6 @@ int radeon_driver_open_kms(struct drm_device *dev, stru= ct drm_file *file_priv) kfree(fpriv); =20 err_suspend: - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); return r; } @@ -737,7 +734,6 @@ void radeon_driver_postclose_kms(struct drm_device *dev, kfree(fpriv); file_priv->driver_priv =3D NULL; } - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); } =20 --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 7EC3B2868B3 for ; Fri, 4 Jul 2025 07:54:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615661; cv=none; b=t/O/BSXByWTDsNhPln0PlT6g4anRMNzWAaA0E6PZ0wUkNgfW1bmEyp9Av/yvADGX/zqrxVZi4Oz1Q5vGLzZunM1odUDniQ8a0jHtNOS4K44h9oWDy3e2KZC1tmeohQ+l3WGztQ6cFCI+XLW+E7CVeJrDqqhavXrNCcxF546ErCs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615661; c=relaxed/simple; bh=3RwMRyp8fXMT0ekrMhYvr10mmIyqSJ+HSm2qdURO4ps=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=F1O8ZQ9KAT2Gmnt6xbGywsibcHUwwbjKwLuGx+I4bV/2Q4fN4R1zkDF+Tu5g94snqGHFgxrUS2FBENd5Iz4pTBO5qMcnfznxcsQfEfu6D8QqhPpM7E+4adz0U+Hq/Sd4/Em7s1Ry5FJeWcjBXWl2UVnMvBqvyKCBDeqTMxkmUAw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Ey7uKWX4; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Ey7uKWX4" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615659; x=1783151659; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3RwMRyp8fXMT0ekrMhYvr10mmIyqSJ+HSm2qdURO4ps=; b=Ey7uKWX4IA5WlkgQBK+hFjZGE/IkXj4tBR+CaDVNW9v2nLaf6yhwySc5 loR6DnTiihAzvf10ReGZYxiXjS3AWeNNERGH+klfGHEOGVtJo96U68c2/ ITalm4nkz4Nn4J+8SUYhW0AytVlUzuxxoJVU+Lcu56Km8hehe4y2KXjR3 hkzbCtJ6gpTMKLNHLFRqvRA9uX0aQr9dj/R838Dp3ZahQj15v8LcjQzUZ caUqLVHUYTyzfo7PFBzBgLoiwgvW5gEo8ji/KRrFMVN+5EbI1Xm1+oP9/ 8FqLmeHcGz0aUb3Gj3XswskuNscV99xlQdUbxY3/83YCnh5hZdivX4FM8 A==; X-CSE-ConnectionGUID: oI0M2TTqSlOolcfJyo6YSQ== X-CSE-MsgGUID: EW6mMNeOTKqtfBoCddAHGA== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494558" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494558" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:16 -0700 X-CSE-ConnectionGUID: r9sUPqNERrOEdYYEoEP/WQ== X-CSE-MsgGUID: EDcc4uMETdWK9rdj/PE7rw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924217" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:14 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 1857244433; Fri, 4 Jul 2025 10:54:12 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Boris Brezillon , Rob Herring , Steven Price , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 19/80] drm/panfrost: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:11 +0300 Message-Id: <20250704075411.3218059-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Reviewed-by: Steven Price --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/gpu/drm/panfrost/panfrost_perfcnt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/panfrost/panfrost_perfcnt.c b/drivers/gpu/drm/= panfrost/panfrost_perfcnt.c index 563f16bae543..0dd62e8b2fa7 100644 --- a/drivers/gpu/drm/panfrost/panfrost_perfcnt.c +++ b/drivers/gpu/drm/panfrost/panfrost_perfcnt.c @@ -203,7 +203,6 @@ static int panfrost_perfcnt_disable_locked(struct panfr= ost_device *pfdev, panfrost_mmu_as_put(pfdev, perfcnt->mapping->mmu); panfrost_gem_mapping_put(perfcnt->mapping); perfcnt->mapping =3D NULL; - pm_runtime_mark_last_busy(pfdev->dev); pm_runtime_put_autosuspend(pfdev->dev); =20 return 0; @@ -279,7 +278,6 @@ void panfrost_perfcnt_close(struct drm_file *file_priv) if (perfcnt->user =3D=3D pfile) panfrost_perfcnt_disable_locked(pfdev, file_priv); mutex_unlock(&perfcnt->lock); - pm_runtime_mark_last_busy(pfdev->dev); pm_runtime_put_autosuspend(pfdev->dev); } =20 --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 352D42BD58C; Fri, 4 Jul 2025 07:54:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615661; cv=none; b=rLQm6cxy6IoXTG1Y9xLaxdishAlVDMKYgZNtHraPlNZcPUpqztZtoW1S3EkRF0LFd9oW85xBDY/MZBi3iOl9mB7BL+jR1esfmOF2h9YW8gQh5CvoE3omOMoctl9enBxlF5h9pDRmSVAg/wCHu3chIyGA0KSWlVhGTa5176rlQ9E= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615661; c=relaxed/simple; bh=tmUXPuvlaoWz6QTEoX4UrTQSVfTa4IbL6SQssU7O328=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=b0GrM25z51BZwwrAjXUc9u7GKe89LXi6Q6TDAizf6heTm68tZRTiOdHVbIbFO+sBN2O8A88FhI8LIQS+z3bgH00apbyJzY72CU8Ca6ZniNJDpBi4fB0wuDshJ7P/yrMhLyS91yY/xFydK7Dj5q47IZGU4qPdLBePBg5zKHSTjqA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=KF7PtFX4; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="KF7PtFX4" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615659; x=1783151659; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=tmUXPuvlaoWz6QTEoX4UrTQSVfTa4IbL6SQssU7O328=; b=KF7PtFX48UZDbaxFCei7J2GaoZAseOcsI1GkPVDrtAgbgMMFDCjKZW5t vGwGae8f6AHjxvJp1TQFeMh+XRz24e+9F2Tk6+FuK1C9Rz4lGqPEjrCHZ +bAAlj4wAjwV3k+1N0F7BooNb3b+8jE0VfpjQ2fH2I55gXv2BoQFei9vu ymTNxqVBgzsOVJiXNbgIvqNhrm4pkH1R6QJrtEH08DqNOijmXQQrhIahx m2q/bobG9ylm9Z4Xv1WqvlAIFq36Ox2JnNPagt7/AeeCugLO7Qu5KLSv/ 36bRxavtNDI+aQWBNEGuiXJCHdE3RBLW5j/pvfBwQymiPtH5ADMrA7CSn w==; X-CSE-ConnectionGUID: TReStI9wT3iO4WcBr0JWUg== X-CSE-MsgGUID: HFTLH0cZTa2Vb7TOt4VKBg== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494569" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494569" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:18 -0700 X-CSE-ConnectionGUID: gsMY2fnbRSGRmhEKfux9FA== X-CSE-MsgGUID: WcHDulVFSaWpfz1yXBQViA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924237" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:15 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 6099A44394; Fri, 4 Jul 2025 10:54:13 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , Douglas Anderson , Lucas Stach , Russell King , Christian Gmeiner , Inki Dae , Seung-Woo Kim , Kyungmin Park , Krzysztof Kozlowski , Alim Akhtar , Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , Tvrtko Ursulin , Laurentiu Palcu , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Qiang Yu , Jessica Zhang , Boris Brezillon , Steven Price , Liviu Dudau , Thierry Reding , Mikko Perttunen , Jonathan Hunter , Jyri Sarha , Tomi Valkeinen , Dave Stevenson , =?UTF-8?q?Ma=C3=ADra=20Canal?= , Raspberry Pi Kernel Maintenance , Dmitry Baryshkov , Damon Ding , Ayushi Makhija , Luca Ceresoli , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Chen-Yu Tsai Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, etnaviv@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, intel-gfx@lists.freedesktop.org, imx@lists.linux.dev, lima@lists.freedesktop.org, linux-tegra@vger.kernel.org Subject: [PATCH 20/80] drivers: drm: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:13 +0300 Message-Id: <20250704075413.3218307-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Acked-by: Jani Nikula Acked-by: Thierry Reding Reviewed-by: Laurent Pinchart Reviewed-by: Luca Ceresoli Reviewed-by: Ma=C3=ADra Canal Reviewed-by: Steven Price --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 -- drivers/gpu/drm/bridge/analogix/anx7625.c | 2 -- drivers/gpu/drm/bridge/parade-ps8640.c | 2 -- drivers/gpu/drm/bridge/ti-sn65dsi86.c | 1 - drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 4 ---- drivers/gpu/drm/exynos/exynos_drm_fimc.c | 2 -- drivers/gpu/drm/exynos/exynos_drm_g2d.c | 2 -- drivers/gpu/drm/exynos/exynos_drm_gsc.c | 2 -- drivers/gpu/drm/exynos/exynos_drm_rotator.c | 1 - drivers/gpu/drm/exynos/exynos_drm_scaler.c | 1 - drivers/gpu/drm/i915/intel_runtime_pm.c | 2 -- drivers/gpu/drm/imx/dcss/dcss-crtc.c | 1 - drivers/gpu/drm/lima/lima_sched.c | 1 - drivers/gpu/drm/panel/panel-edp.c | 3 --- drivers/gpu/drm/panel/panel-samsung-atna33xc20.c | 2 -- drivers/gpu/drm/panel/panel-simple.c | 2 -- drivers/gpu/drm/panthor/panthor_sched.c | 2 -- drivers/gpu/drm/tegra/submit.c | 1 - drivers/gpu/drm/tidss/tidss_drv.c | 2 -- drivers/gpu/drm/vc4/vc4_v3d.c | 1 - 20 files changed, 36 deletions(-) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/g= pu/drm/bridge/analogix/analogix_dp_core.c index a1bc3e96dd35..2f815e2e02ca 100644 --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c @@ -1452,7 +1452,6 @@ static ssize_t analogix_dpaux_transfer(struct drm_dp_= aux *aux, =20 ret =3D analogix_dp_transfer(dp, msg); out: - pm_runtime_mark_last_busy(dp->dev); pm_runtime_put_autosuspend(dp->dev); =20 return ret; @@ -1472,7 +1471,6 @@ static int analogix_dpaux_wait_hpd_asserted(struct dr= m_dp_aux *aux, unsigned lon ret =3D readx_poll_timeout(analogix_dp_get_plug_in_status, dp, val, !val, wait_us / 100, wait_us); =20 - pm_runtime_mark_last_busy(dp->dev); pm_runtime_put_autosuspend(dp->dev); =20 return ret; diff --git a/drivers/gpu/drm/bridge/analogix/anx7625.c b/drivers/gpu/drm/br= idge/analogix/anx7625.c index 0ac4a82c5a6e..9577409a2eb2 100644 --- a/drivers/gpu/drm/bridge/analogix/anx7625.c +++ b/drivers/gpu/drm/bridge/analogix/anx7625.c @@ -1520,7 +1520,6 @@ static int anx7625_wait_hpd_asserted(struct drm_dp_au= x *aux, =20 pm_runtime_get_sync(dev); ret =3D _anx7625_hpd_polling(ctx, wait_us); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; @@ -1770,7 +1769,6 @@ static ssize_t anx7625_aux_transfer(struct drm_dp_aux= *aux, if (!ret) ret =3D anx7625_aux_trans(ctx, msg->request, msg->address, msg->size, msg->buffer); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); mutex_unlock(&ctx->aux_lock); =20 diff --git a/drivers/gpu/drm/bridge/parade-ps8640.c b/drivers/gpu/drm/bridg= e/parade-ps8640.c index 825777a5758f..4f46ce2c908e 100644 --- a/drivers/gpu/drm/bridge/parade-ps8640.c +++ b/drivers/gpu/drm/bridge/parade-ps8640.c @@ -198,7 +198,6 @@ static int ps8640_wait_hpd_asserted(struct drm_dp_aux *= aux, unsigned long wait_u */ pm_runtime_get_sync(dev); ret =3D _ps8640_wait_hpd_asserted(ps_bridge, wait_us); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; @@ -353,7 +352,6 @@ static ssize_t ps8640_aux_transfer(struct drm_dp_aux *a= ux, goto exit; } ret =3D ps8640_aux_transfer_msg(aux, msg); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 exit: diff --git a/drivers/gpu/drm/bridge/ti-sn65dsi86.c b/drivers/gpu/drm/bridge= /ti-sn65dsi86.c index db5cc4030238..fc100d4a6276 100644 --- a/drivers/gpu/drm/bridge/ti-sn65dsi86.c +++ b/drivers/gpu/drm/bridge/ti-sn65dsi86.c @@ -587,7 +587,6 @@ static ssize_t ti_sn_aux_transfer(struct drm_dp_aux *au= x, =20 exit: mutex_unlock(&pdata->comms_mutex); - pm_runtime_mark_last_busy(pdata->dev); pm_runtime_put_autosuspend(pdata->dev); =20 if (ret) diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnavi= v/etnaviv_gpu.c index cf0d9049bcf1..bc5a94dba2d4 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c @@ -916,13 +916,11 @@ int etnaviv_gpu_init(struct etnaviv_gpu *gpu) etnaviv_gpu_hw_init(gpu); mutex_unlock(&gpu->lock); =20 - pm_runtime_mark_last_busy(gpu->dev); pm_runtime_put_autosuspend(gpu->dev); =20 return 0; =20 fail: - pm_runtime_mark_last_busy(gpu->dev); pm_put: pm_runtime_put_autosuspend(gpu->dev); =20 @@ -1109,7 +1107,6 @@ int etnaviv_gpu_debugfs(struct etnaviv_gpu *gpu, stru= ct seq_file *m) =20 ret =3D 0; =20 - pm_runtime_mark_last_busy(gpu->dev); pm_put: pm_runtime_put_autosuspend(gpu->dev); =20 @@ -1509,7 +1506,6 @@ void etnaviv_gpu_recover_hang(struct etnaviv_gem_subm= it *submit) etnaviv_gpu_hw_init(gpu); =20 mutex_unlock(&gpu->lock); - pm_runtime_mark_last_busy(gpu->dev); pm_put: pm_runtime_put_autosuspend(gpu->dev); } diff --git a/drivers/gpu/drm/exynos/exynos_drm_fimc.c b/drivers/gpu/drm/exy= nos/exynos_drm_fimc.c index 09e33a26caaf..13ce35443206 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_fimc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_fimc.c @@ -967,7 +967,6 @@ static irqreturn_t fimc_irq_handler(int irq, void *dev_= id) struct exynos_drm_ipp_task *task =3D ctx->task; =20 ctx->task =3D NULL; - pm_runtime_mark_last_busy(ctx->dev); pm_runtime_put_autosuspend(ctx->dev); exynos_drm_ipp_task_done(task, 0); } @@ -1119,7 +1118,6 @@ static void fimc_abort(struct exynos_drm_ipp *ipp, struct exynos_drm_ipp_task *task =3D ctx->task; =20 ctx->task =3D NULL; - pm_runtime_mark_last_busy(ctx->dev); pm_runtime_put_autosuspend(ctx->dev); exynos_drm_ipp_task_done(task, -EIO); } diff --git a/drivers/gpu/drm/exynos/exynos_drm_g2d.c b/drivers/gpu/drm/exyn= os/exynos_drm_g2d.c index d32f2474cbaa..58a830ffdcd7 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_g2d.c +++ b/drivers/gpu/drm/exynos/exynos_drm_g2d.c @@ -881,7 +881,6 @@ static void g2d_runqueue_worker(struct work_struct *wor= k) g2d->runqueue_node =3D NULL; =20 if (runqueue_node) { - pm_runtime_mark_last_busy(g2d->dev); pm_runtime_put_autosuspend(g2d->dev); =20 complete(&runqueue_node->complete); @@ -1009,7 +1008,6 @@ static void g2d_wait_finish(struct g2d_data *g2d, str= uct drm_file *file) * the IRQ which triggers the PM runtime put(). * So do this manually here. */ - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 complete(&runqueue_node->complete); diff --git a/drivers/gpu/drm/exynos/exynos_drm_gsc.c b/drivers/gpu/drm/exyn= os/exynos_drm_gsc.c index e6d516e1976d..3b02126b7174 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gsc.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gsc.c @@ -1053,7 +1053,6 @@ static irqreturn_t gsc_irq_handler(int irq, void *dev= _id) struct exynos_drm_ipp_task *task =3D ctx->task; =20 ctx->task =3D NULL; - pm_runtime_mark_last_busy(ctx->dev); pm_runtime_put_autosuspend(ctx->dev); exynos_drm_ipp_task_done(task, err); } @@ -1156,7 +1155,6 @@ static void gsc_abort(struct exynos_drm_ipp *ipp, struct exynos_drm_ipp_task *task =3D ctx->task; =20 ctx->task =3D NULL; - pm_runtime_mark_last_busy(ctx->dev); pm_runtime_put_autosuspend(ctx->dev); exynos_drm_ipp_task_done(task, -EIO); } diff --git a/drivers/gpu/drm/exynos/exynos_drm_rotator.c b/drivers/gpu/drm/= exynos/exynos_drm_rotator.c index 7b0f4a98a70a..06a064f5d8b4 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_rotator.c +++ b/drivers/gpu/drm/exynos/exynos_drm_rotator.c @@ -107,7 +107,6 @@ static irqreturn_t rotator_irq_handler(int irq, void *a= rg) struct exynos_drm_ipp_task *task =3D rot->task; =20 rot->task =3D NULL; - pm_runtime_mark_last_busy(rot->dev); pm_runtime_put_autosuspend(rot->dev); exynos_drm_ipp_task_done(task, irq_status =3D=3D ROT_IRQ_STATUS_COMPLETE ? 0 : -EINVAL); diff --git a/drivers/gpu/drm/exynos/exynos_drm_scaler.c b/drivers/gpu/drm/e= xynos/exynos_drm_scaler.c index c8a1b6b0a29c..b59fa9973beb 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_scaler.c +++ b/drivers/gpu/drm/exynos/exynos_drm_scaler.c @@ -438,7 +438,6 @@ static irqreturn_t scaler_irq_handler(int irq, void *ar= g) struct exynos_drm_ipp_task *task =3D scaler->task; =20 scaler->task =3D NULL; - pm_runtime_mark_last_busy(scaler->dev); pm_runtime_put_autosuspend(scaler->dev); exynos_drm_ipp_task_done(task, scaler_task_done(val)); } diff --git a/drivers/gpu/drm/i915/intel_runtime_pm.c b/drivers/gpu/drm/i915= /intel_runtime_pm.c index 7ce3e6de0c19..8e95afced2ce 100644 --- a/drivers/gpu/drm/i915/intel_runtime_pm.c +++ b/drivers/gpu/drm/i915/intel_runtime_pm.c @@ -305,7 +305,6 @@ static void __intel_runtime_pm_put(struct intel_runtime= _pm *rpm, =20 intel_runtime_pm_release(rpm, wakelock); =20 - pm_runtime_mark_last_busy(kdev); pm_runtime_put_autosuspend(kdev); } =20 @@ -383,7 +382,6 @@ void intel_runtime_pm_enable(struct intel_runtime_pm *r= pm) dev_pm_set_driver_flags(kdev, DPM_FLAG_NO_DIRECT_COMPLETE); =20 pm_runtime_set_autosuspend_delay(kdev, 10000); /* 10s */ - pm_runtime_mark_last_busy(kdev); =20 /* * Take a permanent reference to disable the RPM functionality and drop diff --git a/drivers/gpu/drm/imx/dcss/dcss-crtc.c b/drivers/gpu/drm/imx/dcs= s/dcss-crtc.c index af91e45b5d13..7ad8dfd4367f 100644 --- a/drivers/gpu/drm/imx/dcss/dcss-crtc.c +++ b/drivers/gpu/drm/imx/dcss/dcss-crtc.c @@ -154,7 +154,6 @@ static void dcss_crtc_atomic_disable(struct drm_crtc *c= rtc, =20 drm_crtc_vblank_off(crtc); =20 - pm_runtime_mark_last_busy(dcss->dev); pm_runtime_put_autosuspend(dcss->dev); } =20 diff --git a/drivers/gpu/drm/lima/lima_sched.c b/drivers/gpu/drm/lima/lima_= sched.c index 954f4325b859..267d5b68031d 100644 --- a/drivers/gpu/drm/lima/lima_sched.c +++ b/drivers/gpu/drm/lima/lima_sched.c @@ -197,7 +197,6 @@ static void lima_pm_idle(struct lima_device *ldev) lima_devfreq_record_idle(&ldev->devfreq); =20 /* GPU can do auto runtime suspend */ - pm_runtime_mark_last_busy(ldev->dev); pm_runtime_put_autosuspend(ldev->dev); } =20 diff --git a/drivers/gpu/drm/panel/panel-edp.c b/drivers/gpu/drm/panel/pane= l-edp.c index 3796c41629cc..2de51e3ccca2 100644 --- a/drivers/gpu/drm/panel/panel-edp.c +++ b/drivers/gpu/drm/panel/panel-edp.c @@ -613,7 +613,6 @@ static int panel_edp_get_modes(struct drm_panel *panel, } } =20 - pm_runtime_mark_last_busy(panel->dev); pm_runtime_put_autosuspend(panel->dev); } =20 @@ -825,7 +824,6 @@ static int generic_edp_panel_probe(struct device *dev, = struct panel_edp *panel) } =20 exit: - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; @@ -917,7 +915,6 @@ static int panel_edp_probe(struct device *dev, const st= ruct panel_desc *desc, if (!panel->base.backlight && panel->aux) { pm_runtime_get_sync(dev); err =3D drm_panel_dp_aux_backlight(&panel->base, panel->aux); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 /* diff --git a/drivers/gpu/drm/panel/panel-samsung-atna33xc20.c b/drivers/gpu= /drm/panel/panel-samsung-atna33xc20.c index 20ec27d2d6c2..34a90ea4ba7b 100644 --- a/drivers/gpu/drm/panel/panel-samsung-atna33xc20.c +++ b/drivers/gpu/drm/panel/panel-samsung-atna33xc20.c @@ -236,7 +236,6 @@ static int atana33xc20_get_modes(struct drm_panel *pane= l, =20 num =3D drm_edid_connector_add_modes(connector); =20 - pm_runtime_mark_last_busy(panel->dev); pm_runtime_put_autosuspend(panel->dev); =20 return num; @@ -306,7 +305,6 @@ static int atana33xc20_probe(struct dp_aux_ep_device *a= ux_ep) =20 pm_runtime_get_sync(dev); ret =3D drm_panel_dp_aux_backlight(&panel->base, aux_ep->aux); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 /* diff --git a/drivers/gpu/drm/panel/panel-simple.c b/drivers/gpu/drm/panel/p= anel-simple.c index 3333d4a07504..d6bdee56b32f 100644 --- a/drivers/gpu/drm/panel/panel-simple.c +++ b/drivers/gpu/drm/panel/panel-simple.c @@ -320,7 +320,6 @@ static int panel_simple_unprepare(struct drm_panel *pan= el) { int ret; =20 - pm_runtime_mark_last_busy(panel->dev); ret =3D pm_runtime_put_autosuspend(panel->dev); if (ret < 0) return ret; @@ -389,7 +388,6 @@ static int panel_simple_get_modes(struct drm_panel *pan= el, =20 num +=3D drm_edid_connector_add_modes(connector); =20 - pm_runtime_mark_last_busy(panel->dev); pm_runtime_put_autosuspend(panel->dev); } =20 diff --git a/drivers/gpu/drm/panthor/panthor_sched.c b/drivers/gpu/drm/pant= hor/panthor_sched.c index a2248f692a03..f635f26a23f4 100644 --- a/drivers/gpu/drm/panthor/panthor_sched.c +++ b/drivers/gpu/drm/panthor/panthor_sched.c @@ -2446,7 +2446,6 @@ static void tick_work(struct work_struct *work) =20 out_unlock: mutex_unlock(&sched->lock); - pm_runtime_mark_last_busy(ptdev->base.dev); pm_runtime_put_autosuspend(ptdev->base.dev); =20 out_dev_exit: @@ -3203,7 +3202,6 @@ queue_run_job(struct drm_sched_job *sched_job) =20 out_unlock: mutex_unlock(&sched->lock); - pm_runtime_mark_last_busy(ptdev->base.dev); pm_runtime_put_autosuspend(ptdev->base.dev); =20 return done_fence; diff --git a/drivers/gpu/drm/tegra/submit.c b/drivers/gpu/drm/tegra/submit.c index 2430fcc97448..5e0e76ebc5be 100644 --- a/drivers/gpu/drm/tegra/submit.c +++ b/drivers/gpu/drm/tegra/submit.c @@ -502,7 +502,6 @@ static void release_job(struct host1x_job *job) kfree(job_data->used_mappings); kfree(job_data); =20 - pm_runtime_mark_last_busy(client->base.dev); pm_runtime_put_autosuspend(client->base.dev); } =20 diff --git a/drivers/gpu/drm/tidss/tidss_drv.c b/drivers/gpu/drm/tidss/tids= s_drv.c index a1b12e52aca4..e7e02d6017b4 100644 --- a/drivers/gpu/drm/tidss/tidss_drv.c +++ b/drivers/gpu/drm/tidss/tidss_drv.c @@ -45,8 +45,6 @@ void tidss_runtime_put(struct tidss_device *tidss) =20 dev_dbg(tidss->dev, "%s\n", __func__); =20 - pm_runtime_mark_last_busy(tidss->dev); - r =3D pm_runtime_put_autosuspend(tidss->dev); WARN_ON(r < 0); } diff --git a/drivers/gpu/drm/vc4/vc4_v3d.c b/drivers/gpu/drm/vc4/vc4_v3d.c index bb09df5000bd..11ec7e913974 100644 --- a/drivers/gpu/drm/vc4/vc4_v3d.c +++ b/drivers/gpu/drm/vc4/vc4_v3d.c @@ -153,7 +153,6 @@ vc4_v3d_pm_put(struct vc4_dev *vc4) =20 mutex_lock(&vc4->power_lock); if (--vc4->power_refcount =3D=3D 0) { - pm_runtime_mark_last_busy(&vc4->v3d->pdev->dev); pm_runtime_put_autosuspend(&vc4->v3d->pdev->dev); } mutex_unlock(&vc4->power_lock); --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 C9E572BD038 for ; Fri, 4 Jul 2025 07:54:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615660; cv=none; b=i7O+/DqOHWKSWndfSg4rI0dspLQErIgRxNz4xWlXOGAZVgL7fIFlanXYjjVlBsHb1O2yteoZc11Np3zgcd1TZXgjMs9eoziVqiiJ+jGmkLLNd+Vb4E94Am1eQuj1dOobxNybEjhQaMYyRiQJ5rRPchMWv9kPJRi0ddj97tFTQEA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615660; c=relaxed/simple; bh=jkS9/YATNHGwePG4Z6nuBAAtHBE+gydJOzbwcD0bugw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=fbJ2fvnM6VEk+LVki3ipgso7Goud/KaT310GlgHSfHLK/9uw6s2ALuvDcVmxfsrU+JpNe7ejGNdaRh+Sw21qcqgi9TIb2oKRzu+G3Xf6zXG6yyyFIo2ZOBEY3KQBAyY0m7O0SNJsAbsm9yesUKBoGMGdJ1+9WDhWQ1xLNLWmDcg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=PTKCaS07; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="PTKCaS07" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615658; x=1783151658; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jkS9/YATNHGwePG4Z6nuBAAtHBE+gydJOzbwcD0bugw=; b=PTKCaS07+uVUD22F+XJehbYJGDMnwtu03rT+WyVMiAaxL7uXf5kYCAMV FEB+ytjseDduNrfvrenBgxGJrhiBFuELRM2ueEys5ldp5XWq+6bXT5ebx LWpvPdJTWIXNP8AzFo6QMEt1cC+a6jKQQ01uzNiF2FMiR5MYq4agTSA9I glMEoOLP1TTolFaWPRsIwHxFAAZGD1wGNltXBFdYlYxzhIWIk21WEo1/J Uwz7ae3NlerhCGq+Fr2rSzk38jqMb1rFUzwt+cSwfPWO1WDbenCa4qaAs 9ziithr+WCX6osOykJ1JNHBa1eyvf66pTTvwa715FqJqvVu3uLrkuG3iM A==; X-CSE-ConnectionGUID: MVdk2ttBS92J7ipwPMPAkw== X-CSE-MsgGUID: Sd0qg+uRTZuV1EVhceXXUw== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494566" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494566" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:17 -0700 X-CSE-ConnectionGUID: RxateKRvQpesT7CzRi+HIw== X-CSE-MsgGUID: rJnaQAiQS7Sm1KrgVEE8Hg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924238" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:16 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 1C36044424; Fri, 4 Jul 2025 10:54:14 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Sebastian Reichel , Sakari Ailus Cc: linux-kernel@vger.kernel.org Subject: [PATCH 21/80] HSI: omap_ssi_port: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:13 +0300 Message-Id: <20250704075413.3218357-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Acked-by: Sebastian Reichel --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/hsi/controllers/omap_ssi_port.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/hsi/controllers/omap_ssi_port.c b/drivers/hsi/controll= ers/omap_ssi_port.c index aeb92b803a17..50dde968febe 100644 --- a/drivers/hsi/controllers/omap_ssi_port.c +++ b/drivers/hsi/controllers/omap_ssi_port.c @@ -362,7 +362,6 @@ static int ssi_async_break(struct hsi_msg *msg) spin_unlock_bh(&omap_port->lock); } out: - pm_runtime_mark_last_busy(omap_port->pdev); pm_runtime_put_autosuspend(omap_port->pdev); =20 return err; @@ -401,7 +400,6 @@ static int ssi_async(struct hsi_msg *msg) msg->status =3D HSI_STATUS_ERROR; } spin_unlock_bh(&omap_port->lock); - pm_runtime_mark_last_busy(omap_port->pdev); pm_runtime_put_autosuspend(omap_port->pdev); dev_dbg(&port->device, "msg status %d ttype %d ch %d\n", msg->status, msg->ttype, msg->channel); @@ -504,7 +502,6 @@ static int ssi_setup(struct hsi_client *cl) omap_port->ssr.mode =3D cl->rx_cfg.mode; out: spin_unlock_bh(&omap_port->lock); - pm_runtime_mark_last_busy(omap_port->pdev); pm_runtime_put_autosuspend(omap_port->pdev); =20 return err; @@ -570,7 +567,6 @@ static int ssi_flush(struct hsi_client *cl) pinctrl_pm_select_default_state(omap_port->pdev); =20 spin_unlock_bh(&omap_port->lock); - pm_runtime_mark_last_busy(omap_port->pdev); pm_runtime_put_autosuspend(omap_port->pdev); =20 return 0; @@ -625,7 +621,6 @@ static int ssi_stop_tx(struct hsi_client *cl) writel(SSI_WAKE(0), omap_ssi->sys + SSI_CLEAR_WAKE_REG(port->num)); spin_unlock_bh(&omap_port->wk_lock); =20 - pm_runtime_mark_last_busy(omap_port->pdev); pm_runtime_put_autosuspend(omap_port->pdev); /* Release clocks */ =20 =20 @@ -653,7 +648,6 @@ static void ssi_transfer(struct omap_ssi_port *omap_por= t, } } spin_unlock_bh(&omap_port->lock); - pm_runtime_mark_last_busy(omap_port->pdev); pm_runtime_put_autosuspend(omap_port->pdev); } =20 @@ -683,7 +677,6 @@ static void ssi_cleanup_queues(struct hsi_client *cl) txbufstate |=3D (1 << i); status |=3D SSI_DATAACCEPT(i); /* Release the clocks writes, also GDD ones */ - pm_runtime_mark_last_busy(omap_port->pdev); pm_runtime_put_autosuspend(omap_port->pdev); } ssi_flush_queue(&omap_port->txqueue[i], cl); @@ -739,7 +732,6 @@ static void ssi_cleanup_gdd(struct hsi_controller *ssi,= struct hsi_client *cl) * ssi_cleanup_queues */ if (msg->ttype =3D=3D HSI_MSG_READ) { - pm_runtime_mark_last_busy(omap_port->pdev); pm_runtime_put_autosuspend(omap_port->pdev); } omap_ssi->gdd_trn[i].msg =3D NULL; @@ -936,7 +928,6 @@ static void ssi_pio_complete(struct hsi_port *port, str= uct list_head *queue) reg =3D readl(omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); if (msg->ttype =3D=3D HSI_MSG_WRITE) { /* Release clocks for write transfer */ - pm_runtime_mark_last_busy(omap_port->pdev); pm_runtime_put_autosuspend(omap_port->pdev); } reg &=3D ~val; @@ -981,7 +972,6 @@ static irqreturn_t ssi_pio_thread(int irq, void *ssi_po= rt) /* TODO: sleep if we retry? */ } while (status_reg); =20 - pm_runtime_mark_last_busy(omap_port->pdev); pm_runtime_put_autosuspend(omap_port->pdev); =20 return IRQ_HANDLED; @@ -1018,7 +1008,6 @@ static irqreturn_t ssi_wake_thread(int irq __maybe_un= used, void *ssi_port) } hsi_event(port, HSI_EVENT_STOP_RX); if (test_and_clear_bit(SSI_WAKE_EN, &omap_port->flags)) { - pm_runtime_mark_last_busy(omap_port->pdev); pm_runtime_put_autosuspend(omap_port->pdev); } } --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 8F0AD2BE7C0 for ; Fri, 4 Jul 2025 07:54:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615662; cv=none; b=L7f+mUPWzW/GLpU/avTEUZD28zOOmur+BP7CkpnM93Qokl2WPs/aSlyVmz+0L0k9X97E5OOMN8UlKwsDXMoUImsMZUo9lrl4V8Rs1HLLScTnJU1yQRz8Fd4NqgRYt3z5QwDtP1jxDocXYaOYFuIugtREpHwS8V1fRMBqeqw0KAM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615662; c=relaxed/simple; bh=5Hx4Vms6Gxu/8rFa2Up0txUhrMnFHymKtoeJok1L+Oo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=mY/ZBHuur5848IH9Bhjx/+bJIfj2lNPt+C5p/9Ucno/ApqI2iYA12YuIrnhO4f4p2LyaEnBN6gHoel2r064sWrhwy/MCy1A4s3LdrFC/p86+1lIfJyIlHPwzc6DLSDMNw5bbPS6+bIfH416sdtYpdpRAkrJe72ySkHJkpJ930Nw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=how2gwV7; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="how2gwV7" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615660; x=1783151660; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=5Hx4Vms6Gxu/8rFa2Up0txUhrMnFHymKtoeJok1L+Oo=; b=how2gwV706mcxIhlonzd/l3+DPyjm7ZK99/8k4hSpvj79ANqkv41mB8Y BbY3d6dDVC9J7kuHUSuJ4RV0YHTvf97EgRBaaW/ZITm1FO+3m0srXeeiT hMmLOxM0v26ocvFHnEV8gvwXqMIA3dUS164AkgAFQj4q/qa9dfuweT9ZV pTL9LfZTb+NWgSkEP9WqVf90LoA5tj27o6dvWO56c3eQzvxLcTHSFuLJh KIqniYgLG8vYFkaYfASi1BoMspRCgjv1u7k/dFVkLQCN6z5j+ezxBgYE/ Ah4sJ0+X0zsMDutiqbR0pO0jjVTs1Ojn9x7vG0Nf7byZUIJIq37yBINd4 g==; X-CSE-ConnectionGUID: KMXHZs2GSwa+0l816VgG3g== X-CSE-MsgGUID: LoRJooxIS6e99pgNDBVjzw== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494572" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494572" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:18 -0700 X-CSE-ConnectionGUID: 2mqtTLXUTq+bpmvXXnf6rQ== X-CSE-MsgGUID: FVacNX9iRDuVwQJgPpJ6DQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924242" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:16 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id B059A4445A; Fri, 4 Jul 2025 10:54:14 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Alexander Shishkin , Maxime Coquelin , Alexandre Torgue Cc: linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 22/80] stm class: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:14 +0300 Message-Id: <20250704075414.3218411-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/hwtracing/stm/core.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/hwtracing/stm/core.c b/drivers/hwtracing/stm/core.c index cdba4e875b28..f75d06e3787a 100644 --- a/drivers/hwtracing/stm/core.c +++ b/drivers/hwtracing/stm/core.c @@ -659,7 +659,6 @@ static ssize_t stm_char_write(struct file *file, const = char __user *buf, =20 count =3D stm_write(stm, &stmf->output, 0, kbuf, count, NULL); =20 - pm_runtime_mark_last_busy(&stm->dev); pm_runtime_put_autosuspend(&stm->dev); kfree(kbuf); =20 @@ -679,7 +678,6 @@ static void stm_mmap_close(struct vm_area_struct *vma) struct stm_file *stmf =3D vma->vm_file->private_data; struct stm_device *stm =3D stmf->stm; =20 - pm_runtime_mark_last_busy(&stm->dev); pm_runtime_put_autosuspend(&stm->dev); } =20 @@ -1082,7 +1080,6 @@ static int __stm_source_link_drop(struct stm_source_d= evice *src, =20 stm_output_free(link, &src->output); list_del_init(&src->link_entry); - pm_runtime_mark_last_busy(&link->dev); pm_runtime_put_autosuspend(&link->dev); /* matches stm_find_device() from stm_source_link_store() */ stm_put_device(link); --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 2AF5B2DA776; Fri, 4 Jul 2025 07:54:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615674; cv=none; b=qMG3QwOPjMYRNpdKXurU1ZdBLOx42ovmxCnb9YLH2xLFEJo8VumxzR8TvItpCsaznXtteHTjxDHMKkJP8k+DAOIKE6sa/J6Fne6PJMI9SpbiiNPdHb8G/8CqSca2/FDtf9pr/iwTuWxJJQpSn85obGoLEd90m13sG+vj6XMB34o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615674; c=relaxed/simple; bh=xYuK9T9+tcQn64AIw71sMLb6RG4OnDJkGt94GjOYXp0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=CQ956qec/JqOvBEnEWdxQLbM4N+URSWzDuQLDiYxcfX8Iuu7f+gB4qKyuw/AgjygHmMUtiODPYrzlxtNZXhZThXItiMCuNXx/ZflupH9qEnSSbX7heNOOwE3ds53XBB7abP4qPiwhwkPGMj3B76e6OQoaZZZPzGWY6xosjTzrqY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ImNzoyn5; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ImNzoyn5" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615671; x=1783151671; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=xYuK9T9+tcQn64AIw71sMLb6RG4OnDJkGt94GjOYXp0=; b=ImNzoyn5QkeNTemk9Y35lx3JtH9bROPuEWHig+YWHSDfsgmYDmbrxQMd fEhP4RV6E5cEhDNeon27+E2xjFERM6/ddbCPDj0VjHNN4KTaEJD/pUuIg H0j5OuOSv53d0DsuuY8buARL8CT2fVwAWTlFZpWg2s36+U3GUhBrDfoCS NGhppPRMrroC8r+lc76Ry9tHJFDb5sf8bbmvRIcKebfp2yvkhyizu6LTM U/KRADHY1BoKlSGDF6SdQhdr41595kCfdMwOyETz98FmS2R0Ie3kFr415 6DbEZP1k+BrPnYqW9d4M+IrmEgLHri+BVVQjmLX42jfqJLg9JY6mauBXm w==; X-CSE-ConnectionGUID: /x4f9jZlRSuPw3G8MH6V/w== X-CSE-MsgGUID: OltbnzLuQmqbkpmgfnqdgQ== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494692" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494692" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:30 -0700 X-CSE-ConnectionGUID: QFWajt0PR7SFOZnG7l1PUA== X-CSE-MsgGUID: +OWarQq2Sw+E08H/hywhkQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924245" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:18 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id E8D0944843; Fri, 4 Jul 2025 10:54:15 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Elie Morisse , Shyam Sundar S K , Andi Shyti , Codrin Ciubotariu , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Michal Simek , Bartosz Golaszewski , Jarkko Nikula , Andy Shevchenko , Mika Westerberg , Jan Dabros , Jean Delvare , Dong Aisheng , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Oleksij Rempel , Gregory CLEMENT , Ajay Gupta , Aaro Koskinen , Andreas Kemnade , Kevin Hilman , Roger Quadros , Tony Lindgren , Janusz Krzysztofik , Vignesh R , Loic Poulain , Robert Foss , Mukesh Kumar Savaliya , Viken Dadhaniya , Chris Brandt , Fabrizio Castro , Orson Zhai , Baolin Wang , Chunyan Zhang , Pierre-Yves MORDRET , Alain Volmat , Maxime Coquelin , Alexandre Torgue Cc: linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, imx@lists.linux.dev, linux-omap@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH 23/80] i2c: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:15 +0300 Message-Id: <20250704075415.3218608-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Acked-by: Andi Shyti --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/i2c/busses/i2c-amd-mp2.h | 1 - drivers/i2c/busses/i2c-at91-core.c | 1 - drivers/i2c/busses/i2c-at91-master.c | 1 - drivers/i2c/busses/i2c-cadence.c | 1 - drivers/i2c/busses/i2c-davinci.c | 2 -- drivers/i2c/busses/i2c-designware-master.c | 1 - drivers/i2c/busses/i2c-hix5hd2.c | 1 - drivers/i2c/busses/i2c-i801.c | 1 - drivers/i2c/busses/i2c-img-scb.c | 3 --- drivers/i2c/busses/i2c-imx-lpi2c.c | 4 ---- drivers/i2c/busses/i2c-imx.c | 3 --- drivers/i2c/busses/i2c-mv64xxx.c | 1 - drivers/i2c/busses/i2c-nvidia-gpu.c | 1 - drivers/i2c/busses/i2c-omap.c | 3 --- drivers/i2c/busses/i2c-qcom-cci.c | 2 -- drivers/i2c/busses/i2c-qcom-geni.c | 1 - drivers/i2c/busses/i2c-qup.c | 3 --- drivers/i2c/busses/i2c-riic.c | 2 -- drivers/i2c/busses/i2c-rzv2m.c | 1 - drivers/i2c/busses/i2c-sprd.c | 2 -- drivers/i2c/busses/i2c-stm32f7.c | 5 ----- drivers/i2c/busses/i2c-xiic.c | 1 - 22 files changed, 41 deletions(-) diff --git a/drivers/i2c/busses/i2c-amd-mp2.h b/drivers/i2c/busses/i2c-amd-= mp2.h index 018a42de8b1e..9b7e9494dd12 100644 --- a/drivers/i2c/busses/i2c-amd-mp2.h +++ b/drivers/i2c/busses/i2c-amd-mp2.h @@ -207,7 +207,6 @@ static inline void amd_mp2_pm_runtime_get(struct amd_mp= 2_dev *mp2_dev) =20 static inline void amd_mp2_pm_runtime_put(struct amd_mp2_dev *mp2_dev) { - pm_runtime_mark_last_busy(&mp2_dev->pci_dev->dev); pm_runtime_put_autosuspend(&mp2_dev->pci_dev->dev); } =20 diff --git a/drivers/i2c/busses/i2c-at91-core.c b/drivers/i2c/busses/i2c-at= 91-core.c index edc047e3e535..b64adef778d4 100644 --- a/drivers/i2c/busses/i2c-at91-core.c +++ b/drivers/i2c/busses/i2c-at91-core.c @@ -313,7 +313,6 @@ static int __maybe_unused at91_twi_resume_noirq(struct = device *dev) return ret; } =20 - pm_runtime_mark_last_busy(dev); pm_request_autosuspend(dev); =20 at91_init_twi_bus(twi_dev); diff --git a/drivers/i2c/busses/i2c-at91-master.c b/drivers/i2c/busses/i2c-= at91-master.c index 59795c1c24ff..894cedbca99f 100644 --- a/drivers/i2c/busses/i2c-at91-master.c +++ b/drivers/i2c/busses/i2c-at91-master.c @@ -717,7 +717,6 @@ static int at91_twi_xfer(struct i2c_adapter *adap, stru= ct i2c_msg *msg, int num) =20 ret =3D (ret < 0) ? ret : num; out: - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); =20 return ret; diff --git a/drivers/i2c/busses/i2c-cadence.c b/drivers/i2c/busses/i2c-cade= nce.c index 697d095afbe4..0fb728ade92e 100644 --- a/drivers/i2c/busses/i2c-cadence.c +++ b/drivers/i2c/busses/i2c-cadence.c @@ -1128,7 +1128,6 @@ static int cdns_i2c_master_xfer(struct i2c_adapter *a= dap, struct i2c_msg *msgs, cdns_i2c_set_mode(CDNS_I2C_MODE_SLAVE, id); #endif =20 - pm_runtime_mark_last_busy(id->dev); pm_runtime_put_autosuspend(id->dev); return ret; } diff --git a/drivers/i2c/busses/i2c-davinci.c b/drivers/i2c/busses/i2c-davi= nci.c index 6a3d4e9e07f4..a773ba082321 100644 --- a/drivers/i2c/busses/i2c-davinci.c +++ b/drivers/i2c/busses/i2c-davinci.c @@ -543,7 +543,6 @@ i2c_davinci_xfer(struct i2c_adapter *adap, struct i2c_m= sg msgs[], int num) ret =3D num; =20 out: - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); =20 return ret; @@ -821,7 +820,6 @@ static int davinci_i2c_probe(struct platform_device *pd= ev) if (r) goto err_unuse_clocks; =20 - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); =20 return 0; diff --git a/drivers/i2c/busses/i2c-designware-master.c b/drivers/i2c/busse= s/i2c-designware-master.c index cbd88ffa5610..181ca0938fb2 100644 --- a/drivers/i2c/busses/i2c-designware-master.c +++ b/drivers/i2c/busses/i2c-designware-master.c @@ -901,7 +901,6 @@ i2c_dw_xfer(struct i2c_adapter *adap, struct i2c_msg ms= gs[], int num) i2c_dw_release_lock(dev); =20 done_nolock: - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); =20 return ret; diff --git a/drivers/i2c/busses/i2c-hix5hd2.c b/drivers/i2c/busses/i2c-hix5= hd2.c index 370f32974763..f8aa1ea0f9a6 100644 --- a/drivers/i2c/busses/i2c-hix5hd2.c +++ b/drivers/i2c/busses/i2c-hix5hd2.c @@ -373,7 +373,6 @@ static int hix5hd2_i2c_xfer(struct i2c_adapter *adap, ret =3D num; =20 out: - pm_runtime_mark_last_busy(priv->dev); pm_runtime_put_autosuspend(priv->dev); return ret; } diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c index a7f89946dad4..58088e9121a1 100644 --- a/drivers/i2c/busses/i2c-i801.c +++ b/drivers/i2c/busses/i2c-i801.c @@ -928,7 +928,6 @@ static s32 i801_access(struct i2c_adapter *adap, u16 ad= dr, */ iowrite8(SMBHSTSTS_INUSE_STS | STATUS_FLAGS, SMBHSTSTS(priv)); =20 - pm_runtime_mark_last_busy(&priv->pci_dev->dev); pm_runtime_put_autosuspend(&priv->pci_dev->dev); return ret; } diff --git a/drivers/i2c/busses/i2c-img-scb.c b/drivers/i2c/busses/i2c-img-= scb.c index a454f9f25146..88192c25c44c 100644 --- a/drivers/i2c/busses/i2c-img-scb.c +++ b/drivers/i2c/busses/i2c-img-scb.c @@ -1131,7 +1131,6 @@ static int img_i2c_xfer(struct i2c_adapter *adap, str= uct i2c_msg *msgs, break; } =20 - pm_runtime_mark_last_busy(adap->dev.parent); pm_runtime_put_autosuspend(adap->dev.parent); =20 return i2c->msg_status ? i2c->msg_status : num; @@ -1165,7 +1164,6 @@ static int img_i2c_init(struct img_i2c *i2c) "Unknown hardware revision (%d.%d.%d.%d)\n", (rev >> 24) & 0xff, (rev >> 16) & 0xff, (rev >> 8) & 0xff, rev & 0xff); - pm_runtime_mark_last_busy(i2c->adap.dev.parent); pm_runtime_put_autosuspend(i2c->adap.dev.parent); return -EINVAL; } @@ -1317,7 +1315,6 @@ static int img_i2c_init(struct img_i2c *i2c) /* Perform a synchronous sequence to reset the bus */ ret =3D img_i2c_reset_bus(i2c); =20 - pm_runtime_mark_last_busy(i2c->adap.dev.parent); pm_runtime_put_autosuspend(i2c->adap.dev.parent); =20 return ret; diff --git a/drivers/i2c/busses/i2c-imx-lpi2c.c b/drivers/i2c/busses/i2c-im= x-lpi2c.c index 064bc83840a6..6d97998859b1 100644 --- a/drivers/i2c/busses/i2c-imx-lpi2c.c +++ b/drivers/i2c/busses/i2c-imx-lpi2c.c @@ -362,7 +362,6 @@ static int lpi2c_imx_master_enable(struct lpi2c_imx_str= uct *lpi2c_imx) return 0; =20 rpm_put: - pm_runtime_mark_last_busy(lpi2c_imx->adapter.dev.parent); pm_runtime_put_autosuspend(lpi2c_imx->adapter.dev.parent); =20 return ret; @@ -376,7 +375,6 @@ static int lpi2c_imx_master_disable(struct lpi2c_imx_st= ruct *lpi2c_imx) temp &=3D ~MCR_MEN; writel(temp, lpi2c_imx->base + LPI2C_MCR); =20 - pm_runtime_mark_last_busy(lpi2c_imx->adapter.dev.parent); pm_runtime_put_autosuspend(lpi2c_imx->adapter.dev.parent); =20 return 0; @@ -1372,7 +1370,6 @@ static int lpi2c_imx_probe(struct platform_device *pd= ev) if (ret) goto rpm_disable; =20 - pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); =20 dev_info(&lpi2c_imx->adapter.dev, "LPI2C adapter registered\n"); @@ -1474,7 +1471,6 @@ static int lpi2c_suspend(struct device *dev) =20 static int lpi2c_resume(struct device *dev) { - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c index 60f5c790ad7c..dcce882f3eba 100644 --- a/drivers/i2c/busses/i2c-imx.c +++ b/drivers/i2c/busses/i2c-imx.c @@ -1637,7 +1637,6 @@ static int i2c_imx_xfer(struct i2c_adapter *adapter, =20 result =3D i2c_imx_xfer_common(adapter, msgs, num, false); =20 - pm_runtime_mark_last_busy(i2c_imx->adapter.dev.parent); pm_runtime_put_autosuspend(i2c_imx->adapter.dev.parent); =20 return result; @@ -1822,7 +1821,6 @@ static int i2c_imx_probe(struct platform_device *pdev) if (ret < 0) goto clk_notifier_unregister; =20 - pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); =20 dev_dbg(&i2c_imx->adapter.dev, "claimed irq %d\n", irq); @@ -1928,7 +1926,6 @@ static int i2c_imx_suspend(struct device *dev) =20 static int i2c_imx_resume(struct device *dev) { - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; diff --git a/drivers/i2c/busses/i2c-mv64xxx.c b/drivers/i2c/busses/i2c-mv64= xxx.c index 8fc26a511320..1acba628e16c 100644 --- a/drivers/i2c/busses/i2c-mv64xxx.c +++ b/drivers/i2c/busses/i2c-mv64xxx.c @@ -766,7 +766,6 @@ mv64xxx_i2c_xfer_core(struct i2c_adapter *adap, struct = i2c_msg msgs[], int num) drv_data->num_msgs =3D 0; drv_data->msgs =3D NULL; =20 - pm_runtime_mark_last_busy(&adap->dev); pm_runtime_put_autosuspend(&adap->dev); =20 return ret; diff --git a/drivers/i2c/busses/i2c-nvidia-gpu.c b/drivers/i2c/busses/i2c-n= vidia-gpu.c index 541d808d62d0..14c059b03945 100644 --- a/drivers/i2c/busses/i2c-nvidia-gpu.c +++ b/drivers/i2c/busses/i2c-nvidia-gpu.c @@ -216,7 +216,6 @@ static int gpu_i2c_xfer(struct i2c_adapter *adap, struc= t i2c_msg *msgs, int num) if (status2 < 0) dev_err(i2cd->dev, "i2c stop failed %d\n", status2); } - pm_runtime_mark_last_busy(i2cd->dev); pm_runtime_put_autosuspend(i2cd->dev); return status; } diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c index 8b01df3cc8e9..d62f15d1acfe 100644 --- a/drivers/i2c/busses/i2c-omap.c +++ b/drivers/i2c/busses/i2c-omap.c @@ -828,7 +828,6 @@ omap_i2c_xfer_common(struct i2c_adapter *adap, struct i= 2c_msg msgs[], int num, omap->set_mpu_wkup_lat(omap->dev, -1); =20 out: - pm_runtime_mark_last_busy(omap->dev); pm_runtime_put_autosuspend(omap->dev); return r; } @@ -1508,7 +1507,6 @@ omap_i2c_probe(struct platform_device *pdev) dev_info(omap->dev, "bus %d rev%d.%d at %d kHz\n", adap->nr, major, minor, omap->speed); =20 - pm_runtime_mark_last_busy(omap->dev); pm_runtime_put_autosuspend(omap->dev); =20 return 0; @@ -1602,7 +1600,6 @@ static int omap_i2c_suspend(struct device *dev) =20 static int omap_i2c_resume(struct device *dev) { - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; diff --git a/drivers/i2c/busses/i2c-qcom-cci.c b/drivers/i2c/busses/i2c-qco= m-cci.c index a3afa11a71a1..e631d79baf14 100644 --- a/drivers/i2c/busses/i2c-qcom-cci.c +++ b/drivers/i2c/busses/i2c-qcom-cci.c @@ -450,7 +450,6 @@ static int cci_xfer(struct i2c_adapter *adap, struct i2= c_msg msgs[], int num) ret =3D num; =20 err: - pm_runtime_mark_last_busy(cci->dev); pm_runtime_put_autosuspend(cci->dev); =20 return ret; @@ -508,7 +507,6 @@ static int __maybe_unused cci_suspend(struct device *de= v) static int __maybe_unused cci_resume(struct device *dev) { cci_resume_runtime(dev); - pm_runtime_mark_last_busy(dev); pm_request_autosuspend(dev); =20 return 0; diff --git a/drivers/i2c/busses/i2c-qcom-geni.c b/drivers/i2c/busses/i2c-qc= om-geni.c index 13889f52b6f7..30921e80d30f 100644 --- a/drivers/i2c/busses/i2c-qcom-geni.c +++ b/drivers/i2c/busses/i2c-qcom-geni.c @@ -714,7 +714,6 @@ static int geni_i2c_xfer(struct i2c_adapter *adap, else ret =3D geni_i2c_fifo_xfer(gi2c, msgs, num); =20 - pm_runtime_mark_last_busy(gi2c->se.dev); pm_runtime_put_autosuspend(gi2c->se.dev); gi2c->cur =3D NULL; gi2c->err =3D 0; diff --git a/drivers/i2c/busses/i2c-qup.c b/drivers/i2c/busses/i2c-qup.c index 6059f585843e..61207ca13890 100644 --- a/drivers/i2c/busses/i2c-qup.c +++ b/drivers/i2c/busses/i2c-qup.c @@ -1137,7 +1137,6 @@ static int qup_i2c_xfer(struct i2c_adapter *adap, ret =3D num; out: =20 - pm_runtime_mark_last_busy(qup->dev); pm_runtime_put_autosuspend(qup->dev); =20 return ret; @@ -1622,7 +1621,6 @@ static int qup_i2c_xfer_v2(struct i2c_adapter *adap, if (ret =3D=3D 0) ret =3D num; out: - pm_runtime_mark_last_busy(qup->dev); pm_runtime_put_autosuspend(qup->dev); =20 return ret; @@ -1989,7 +1987,6 @@ static int qup_i2c_suspend(struct device *device) static int qup_i2c_resume(struct device *device) { qup_i2c_pm_resume_runtime(device); - pm_runtime_mark_last_busy(device); pm_request_autosuspend(device); return 0; } diff --git a/drivers/i2c/busses/i2c-riic.c b/drivers/i2c/busses/i2c-riic.c index 9c164a4b9bb9..2b7893b6152e 100644 --- a/drivers/i2c/busses/i2c-riic.c +++ b/drivers/i2c/busses/i2c-riic.c @@ -206,7 +206,6 @@ static int riic_xfer(struct i2c_adapter *adap, struct i= 2c_msg msgs[], int num) } =20 out: - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return riic->err ?: num; @@ -452,7 +451,6 @@ static int riic_init_hw(struct riic_dev *riic) =20 riic_clear_set_bit(riic, ICCR1_IICRST, 0, RIIC_ICCR1); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); return 0; } diff --git a/drivers/i2c/busses/i2c-rzv2m.c b/drivers/i2c/busses/i2c-rzv2m.c index b0e9c0b62429..238714850673 100644 --- a/drivers/i2c/busses/i2c-rzv2m.c +++ b/drivers/i2c/busses/i2c-rzv2m.c @@ -372,7 +372,6 @@ static int rzv2m_i2c_xfer(struct i2c_adapter *adap, ret =3D num; =20 out: - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; diff --git a/drivers/i2c/busses/i2c-sprd.c b/drivers/i2c/busses/i2c-sprd.c index 56b2e5c5fb49..2eddddbc84a1 100644 --- a/drivers/i2c/busses/i2c-sprd.c +++ b/drivers/i2c/busses/i2c-sprd.c @@ -302,7 +302,6 @@ static int sprd_i2c_xfer(struct i2c_adapter *i2c_adap, ret =3D sprd_i2c_handle_msg(i2c_adap, &msgs[im++], 1); =20 err_msg: - pm_runtime_mark_last_busy(i2c_dev->dev); pm_runtime_put_autosuspend(i2c_dev->dev); =20 return ret < 0 ? ret : im; @@ -559,7 +558,6 @@ static int sprd_i2c_probe(struct platform_device *pdev) goto err_rpm_put; } =20 - pm_runtime_mark_last_busy(i2c_dev->dev); pm_runtime_put_autosuspend(i2c_dev->dev); return 0; =20 diff --git a/drivers/i2c/busses/i2c-stm32f7.c b/drivers/i2c/busses/i2c-stm3= 2f7.c index ef15475a7ee1..36843ac5d024 100644 --- a/drivers/i2c/busses/i2c-stm32f7.c +++ b/drivers/i2c/busses/i2c-stm32f7.c @@ -1757,7 +1757,6 @@ static int stm32f7_i2c_xfer_core(struct i2c_adapter *= i2c_adap, } =20 pm_free: - pm_runtime_mark_last_busy(i2c_dev->dev); pm_runtime_put_autosuspend(i2c_dev->dev); =20 return (ret < 0) ? ret : num; @@ -1866,7 +1865,6 @@ static int stm32f7_i2c_smbus_xfer(struct i2c_adapter = *adapter, u16 addr, } =20 pm_free: - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); return ret; } @@ -1973,7 +1971,6 @@ static int stm32f7_i2c_reg_slave(struct i2c_client *s= lave) if (!stm32f7_i2c_is_slave_registered(i2c_dev)) stm32f7_i2c_enable_wakeup(i2c_dev, false); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; @@ -2011,7 +2008,6 @@ static int stm32f7_i2c_unreg_slave(struct i2c_client = *slave) stm32f7_i2c_enable_wakeup(i2c_dev, false); } =20 - pm_runtime_mark_last_busy(i2c_dev->dev); pm_runtime_put_autosuspend(i2c_dev->dev); =20 return 0; @@ -2324,7 +2320,6 @@ static int stm32f7_i2c_probe(struct platform_device *= pdev) =20 dev_info(i2c_dev->dev, "STM32F7 I2C-%d bus adapter\n", adap->nr); =20 - pm_runtime_mark_last_busy(i2c_dev->dev); pm_runtime_put_autosuspend(i2c_dev->dev); =20 return 0; diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c index 607026c921d6..28015d77599d 100644 --- a/drivers/i2c/busses/i2c-xiic.c +++ b/drivers/i2c/busses/i2c-xiic.c @@ -1349,7 +1349,6 @@ static int xiic_xfer(struct i2c_adapter *adap, struct= i2c_msg *msgs, int num) mutex_unlock(&i2c->lock); =20 out: - pm_runtime_mark_last_busy(i2c->dev); pm_runtime_put_autosuspend(i2c->dev); return err; } --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 22CEF2BEC5F for ; Fri, 4 Jul 2025 07:54:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615662; cv=none; b=UOBdU/7vc2NDs7eg6FnNX9+8loao2KOmSrVj8U1ALcxVAh5XacdTh1+nm563qOAuJo+tx3qhzTsYgIh888TA9vaSBksXU320pABopkZ7pMpITnu1DxhnJ/h51hN/ISWn8BNjrl+acqbHTi5jsC/f+KD1rrOnPyJaMFANhV12WnE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615662; c=relaxed/simple; bh=h0lMe6Zm9CS9GXMsA2shed5+hSDPE9usNB0Lg7iJ170=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=bMT+W5vKhWzDlQByzLQxR2O2EjbYomrSQPhAN+wDIqfgx4cE/mLr2xZk1xw+BR+wb62snc9LwWbfE/+qcMj3dsgUnIkia1UfBzL24hMkMCMsVA/p991fZUlxLnSvWhf6F4Y/K3nna1hTQG+tVW+ERlVEnAhK88PuoPrpHHJkg2s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=A/hbBGu4; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="A/hbBGu4" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615661; x=1783151661; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=h0lMe6Zm9CS9GXMsA2shed5+hSDPE9usNB0Lg7iJ170=; b=A/hbBGu4V/9ob04NGyD5f8SSIl24peT403mzn8WEqVFGYYaZcdfFBeYm FIsiW4/IrqAQ+NeIJ8l4gWNw5MvWjKTL77mwyQDbomWnSjsXBHFgSJwHA DagGG3H+NGXNkCvPwkD2ZuDiCMbIhck2N8TNdLKsQtleY5OgF0zHR7OQU 23OPZhEeTO5G4hCB+RUuZSc1e0icbbWmz68ktgJjfKajZGhaIaRIOgCbf 9F4rIR5H+i4hrZhkR8WOvm9XRsSl3QIHqrYq0ZctaiMRNICPvDcMZ+Lm7 JL5LG1sl8X/cyoGuUb8WCK+YwESpDuI5mB2TMRwzL9xV2jFDjSOwX9UpE A==; X-CSE-ConnectionGUID: xk0+Gw40QNamqyTju2bvdw== X-CSE-MsgGUID: qRzVZPIeRGezRnNMLzQTyw== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494577" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494577" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:20 -0700 X-CSE-ConnectionGUID: VZFjeWY5TcazgNbcPfL/aA== X-CSE-MsgGUID: eyiD6zqhRn6LxYXLojBAuQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924249" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:18 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id CB436447EB; Fri, 4 Jul 2025 10:54:16 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Miquel Raynal , Frank Li , Alexandre Belloni Cc: linux-i3c@lists.infradead.org, imx@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 24/80] i3c: master: svc: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:16 +0300 Message-Id: <20250704075416.3218647-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Reviewed-by: Frank Li --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/i3c/master/svc-i3c-master.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/i3c/master/svc-i3c-master.c b/drivers/i3c/master/svc-i= 3c-master.c index 7e1a7cb94b43..4f68005c47d9 100644 --- a/drivers/i3c/master/svc-i3c-master.c +++ b/drivers/i3c/master/svc-i3c-master.c @@ -664,7 +664,6 @@ static int svc_i3c_master_set_speed(struct i3c_master_c= ontroller *m, } =20 rpm_out: - pm_runtime_mark_last_busy(master->dev); pm_runtime_put_autosuspend(master->dev); =20 return ret; @@ -779,7 +778,6 @@ static int svc_i3c_master_bus_init(struct i3c_master_co= ntroller *m) goto rpm_out; =20 rpm_out: - pm_runtime_mark_last_busy(master->dev); pm_runtime_put_autosuspend(master->dev); =20 return ret; @@ -801,7 +799,6 @@ static void svc_i3c_master_bus_cleanup(struct i3c_maste= r_controller *m) /* Disable master */ writel(0, master->regs + SVC_I3C_MCONFIG); =20 - pm_runtime_mark_last_busy(master->dev); pm_runtime_put_autosuspend(master->dev); } =20 @@ -1207,7 +1204,6 @@ static int svc_i3c_master_do_daa(struct i3c_master_co= ntroller *m) dev_err(master->dev, "Cannot handle such a list of devices"); =20 rpm_out: - pm_runtime_mark_last_busy(master->dev); pm_runtime_put_autosuspend(master->dev); =20 return ret; @@ -1511,7 +1507,6 @@ static void svc_i3c_master_enqueue_xfer(struct svc_i3= c_master *master, } spin_unlock_irqrestore(&master->xferqueue.lock, flags); =20 - pm_runtime_mark_last_busy(master->dev); pm_runtime_put_autosuspend(master->dev); } =20 @@ -1801,7 +1796,6 @@ static int svc_i3c_master_disable_ibi(struct i3c_dev_= desc *dev) =20 ret =3D i3c_master_disec_locked(m, dev->info.dyn_addr, I3C_CCC_EVENT_SIR); =20 - pm_runtime_mark_last_busy(master->dev); pm_runtime_put_autosuspend(master->dev); =20 return ret; @@ -1834,7 +1828,6 @@ static int svc_i3c_master_disable_hotjoin(struct i3c_= master_controller *m) if (!master->enabled_events) svc_i3c_master_disable_interrupts(master); =20 - pm_runtime_mark_last_busy(master->dev); pm_runtime_put_autosuspend(master->dev); =20 return 0; @@ -1954,7 +1947,6 @@ static int svc_i3c_master_probe(struct platform_devic= e *pdev) if (ret) goto rpm_disable; =20 - pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); =20 return 0; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 F0AB72C3242 for ; Fri, 4 Jul 2025 07:54:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615666; cv=none; b=duqawcFKEL7r0ewmM7KfaYvInAHEh+YtCObGYXzZJEf45ukNlEnqwxniNhmI6X6xPLCvAGFVc1EA4qUcCF+IYMUpUJjwiWZMEtJNGbng1XaQjA6S83PvAMkUPf1aK5ddrPuacMPYTjXKemNCyzATXRMEsFAxGBOuCdbqMviAMAA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615666; c=relaxed/simple; bh=q2znRzlNkp1VX01C6C6SWFWs8cikijZSrtuwfc3vXfo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FFk5QV4nz4xSLcaiCbYH5cBaQwaq+Nn6+aNyrfOGlAy7YiFG12BLw+8ZW1BnVWO2ZQxmGaTolmWAqXXwwejCBNA+Gr6RIP/WlGwIb+Uja/pTiekob4YTgpyHGtOHu9cFdHIKvVrUQISpSgZnRREUgjpLqz5EYNbyrrAJzI2uLYE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=IkJzONL/; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="IkJzONL/" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615663; x=1783151663; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=q2znRzlNkp1VX01C6C6SWFWs8cikijZSrtuwfc3vXfo=; b=IkJzONL/4mLoRXhhGhdOV0rzBoGUVKW+uWfMy3xi4bd8ms0GkzgoSBM1 mgsoQncyGIA08UuWASIAzj0Paz6mM2FRR15CjSxmmclSqFGIiSt/oNTCq SzlHtTQhD+U/+RydLcxk1TyghxPviPpuqLhcsHyEQfTgV46dL/jjh9GGs uHrgdjq35QAM4WGGQ/gVjNppbX2nAiRCuiZtFJG7A9ci6mMvOCJ5N6R5w 5tv7BVXJi5BCSpaoFLWRjOMEsdqPhfqYW1ej61o/LwkRv1Cr8lfxT5xy9 kvwLBqFWVSI4NSHLrwEM+Dn48cRV/Ap8Gmrmt0oFOFaLoidcPPw9Q+KPc w==; X-CSE-ConnectionGUID: w+8A0oeCSn6ppElfxODdVw== X-CSE-MsgGUID: g99wdkJKRj6ryMM37rqosA== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494584" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494584" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:22 -0700 X-CSE-ConnectionGUID: IUennC47Tk2lCs9hia+Stw== X-CSE-MsgGUID: DVXgBXKdTmiKM3rSFP38Iw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924252" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:19 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 90C7344424; Fri, 4 Jul 2025 10:54:17 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Alexandre Belloni , Frank Li , Aniket , Jarkko Nikula , Shyam Sundar S K , Wolfram Sang , Sakari Ailus , Billy Tsai Cc: linux-i3c@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 25/80] i3c: dw: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:17 +0300 Message-Id: <20250704075417.3218742-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/i3c/master/dw-i3c-master.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/i3c/master/dw-i3c-master.c b/drivers/i3c/master/dw-i3c= -master.c index 611c22b72c15..37bee9c21736 100644 --- a/drivers/i3c/master/dw-i3c-master.c +++ b/drivers/i3c/master/dw-i3c-master.c @@ -699,7 +699,6 @@ static int dw_i3c_master_bus_init(struct i3c_master_con= troller *m) dw_i3c_master_enable(master); =20 rpm_out: - pm_runtime_mark_last_busy(master->dev); pm_runtime_put_autosuspend(master->dev); return ret; } @@ -829,7 +828,6 @@ static int dw_i3c_master_send_ccc_cmd(struct i3c_master= _controller *m, else ret =3D dw_i3c_ccc_set(master, ccc); =20 - pm_runtime_mark_last_busy(master->dev); pm_runtime_put_autosuspend(master->dev); return ret; } @@ -912,7 +910,6 @@ static int dw_i3c_master_daa(struct i3c_master_controll= er *m) dw_i3c_master_free_xfer(xfer); =20 rpm_out: - pm_runtime_mark_last_busy(master->dev); pm_runtime_put_autosuspend(master->dev); return ret; } @@ -998,7 +995,6 @@ static int dw_i3c_master_priv_xfers(struct i3c_dev_desc= *dev, ret =3D xfer->ret; dw_i3c_master_free_xfer(xfer); =20 - pm_runtime_mark_last_busy(master->dev); pm_runtime_put_autosuspend(master->dev); return ret; } @@ -1148,7 +1144,6 @@ static int dw_i3c_master_i2c_xfers(struct i2c_dev_des= c *dev, ret =3D xfer->ret; dw_i3c_master_free_xfer(xfer); =20 - pm_runtime_mark_last_busy(master->dev); pm_runtime_put_autosuspend(master->dev); return ret; } @@ -1316,7 +1311,6 @@ static int dw_i3c_master_disable_hotjoin(struct i3c_m= aster_controller *m) writel(readl(master->regs + DEVICE_CTRL) | DEV_CTRL_HOT_JOIN_NACK, master->regs + DEVICE_CTRL); =20 - pm_runtime_mark_last_busy(master->dev); pm_runtime_put_autosuspend(master->dev); return 0; } @@ -1342,7 +1336,6 @@ static int dw_i3c_master_enable_ibi(struct i3c_dev_de= sc *dev) =20 if (rc) { dw_i3c_master_set_sir_enabled(master, dev, data->index, false); - pm_runtime_mark_last_busy(master->dev); pm_runtime_put_autosuspend(master->dev); } =20 @@ -1362,7 +1355,6 @@ static int dw_i3c_master_disable_ibi(struct i3c_dev_d= esc *dev) =20 dw_i3c_master_set_sir_enabled(master, dev, data->index, false); =20 - pm_runtime_mark_last_busy(master->dev); pm_runtime_put_autosuspend(master->dev); return 0; } --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 CECC42D4B6F; Fri, 4 Jul 2025 07:54:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615667; cv=none; b=XbO2jWiS/wGzCxT70GHiY6+oo59GswBW/FTAyjRIW+eFFvB8Q31Ux/8bgGoks07sY0I6xoHqs4yZT+mjGUZe8YrRb//50q/40dTROHrutuFBVsP/GxGZabjsGQnAonlvnPFZCkxkyPzSwF8Tjuyv455prj5A9a/MSuECHPN4B/o= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615667; c=relaxed/simple; bh=2WLiRATfI8wJEoYB6D4uEr4LXTXjQ0McJ6+WbU8bC9E=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Uq3nzM+xDJOrT75G0x5c89PA+fXnjs9/qfAbUrXXgYIBg/M+4wNU/Cb/UhkQFtofBYhy3HKGXKqxpCAzlfcLoE1zayRR7EhOy4VvrZLWMztM2B8WTSRiTzClbLr4Ch69/8wWnGUYot/nq2SCDkJYpBzc1NlcvaHaaJqsuHEsHe0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=TCV/J84Z; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="TCV/J84Z" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615665; x=1783151665; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=2WLiRATfI8wJEoYB6D4uEr4LXTXjQ0McJ6+WbU8bC9E=; b=TCV/J84Z4uLR/lrh1pazSewrZ+BhzmY1i68jYyh88IudOXvQzpdMSLjM xL/C4K4nfKR0jP7JQu73TxSFdFpEfrcgxzvgGwunQfoUGDpaZC01hzMI0 M2Unl0v0wqMBOaqsLv8arWiiDtA0bfuMfuJ5BSKDF2bu6lGyQI/I4Ooe6 rQRFUclUa4oxlbkVofYv0/UzSxM1d0Og0DJZUoslu3oCvAyppsLASsxL3 60j7Ke9zJA9fTzLAE35zynaYiqJmbRL3OD6rYU5GMLiG5QTl3k/ZRcI8W ++aipTF5GMBgUobVlENfluIepf0jxpZj3Burfrz5JJrdO/r0zgEiAw5DT g==; X-CSE-ConnectionGUID: OvyPaj4rQn+kkwN/IHfQ5A== X-CSE-MsgGUID: aX6jAeOCQF2EvEMvvv8VEw== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494607" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494607" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:23 -0700 X-CSE-ConnectionGUID: rWIsyR0XT9WSWSB/utMKWA== X-CSE-MsgGUID: Rz/jGlQuRYKzIxLB5RvwdQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924266" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:20 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 5208844433; Fri, 4 Jul 2025 10:54:18 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Even Xu , Xinpeng Sun , Jiri Kosina , Benjamin Tissoires , Srinivas Pandruvada , Mark Pearson , Sakari Ailus , Wentao Guan , Philipp Stanner Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 26/80] HID: intel-thc-hid: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:18 +0300 Message-Id: <20250704075418.3218839-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Reviewed-by: Even Xu --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c | 2 -- drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-hid.c | 1 - drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c | 2 -- drivers/hid/intel-thc-hid/intel-quickspi/quickspi-hid.c | 1 - 4 files changed, 6 deletions(-) diff --git a/drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c b/driv= ers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c index e944a6ccb776..599f12d3e657 100644 --- a/drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c +++ b/drivers/hid/intel-thc-hid/intel-quicki2c/pci-quicki2c.c @@ -328,7 +328,6 @@ static irqreturn_t quicki2c_irq_thread_handler(int irq,= void *dev_id) if (try_recover(qcdev)) qcdev->state =3D QUICKI2C_DISABLED; =20 - pm_runtime_mark_last_busy(qcdev->dev); pm_runtime_put_autosuspend(qcdev->dev); =20 return IRQ_HANDLED; @@ -711,7 +710,6 @@ static int quicki2c_probe(struct pci_dev *pdev, const s= truct pci_device_id *id) /* Enable runtime power management */ pm_runtime_use_autosuspend(qcdev->dev); pm_runtime_set_autosuspend_delay(qcdev->dev, DEFAULT_AUTO_SUSPEND_DELAY_M= S); - pm_runtime_mark_last_busy(qcdev->dev); pm_runtime_put_noidle(qcdev->dev); pm_runtime_put_autosuspend(qcdev->dev); =20 diff --git a/drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-hid.c b/driv= ers/hid/intel-thc-hid/intel-quicki2c/quicki2c-hid.c index 5c3ec95bb3fd..834a537b6780 100644 --- a/drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-hid.c +++ b/drivers/hid/intel-thc-hid/intel-quicki2c/quicki2c-hid.c @@ -72,7 +72,6 @@ static int quicki2c_hid_raw_request(struct hid_device *hi= d, break; } =20 - pm_runtime_mark_last_busy(qcdev->dev); pm_runtime_put_autosuspend(qcdev->dev); =20 return ret; diff --git a/drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c b/driv= ers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c index 5e5f179dd113..2b518d88645a 100644 --- a/drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c +++ b/drivers/hid/intel-thc-hid/intel-quickspi/pci-quickspi.c @@ -335,7 +335,6 @@ static irqreturn_t quickspi_irq_thread_handler(int irq,= void *dev_id) if (try_recover(qsdev)) qsdev->state =3D QUICKSPI_DISABLED; =20 - pm_runtime_mark_last_busy(qsdev->dev); pm_runtime_put_autosuspend(qsdev->dev); =20 return IRQ_HANDLED; @@ -670,7 +669,6 @@ static int quickspi_probe(struct pci_dev *pdev, /* Enable runtime power management */ pm_runtime_use_autosuspend(qsdev->dev); pm_runtime_set_autosuspend_delay(qsdev->dev, DEFAULT_AUTO_SUSPEND_DELAY_M= S); - pm_runtime_mark_last_busy(qsdev->dev); pm_runtime_put_noidle(qsdev->dev); pm_runtime_put_autosuspend(qsdev->dev); =20 diff --git a/drivers/hid/intel-thc-hid/intel-quickspi/quickspi-hid.c b/driv= ers/hid/intel-thc-hid/intel-quickspi/quickspi-hid.c index ad52e402c28a..82c72bfa2795 100644 --- a/drivers/hid/intel-thc-hid/intel-quickspi/quickspi-hid.c +++ b/drivers/hid/intel-thc-hid/intel-quickspi/quickspi-hid.c @@ -71,7 +71,6 @@ static int quickspi_hid_raw_request(struct hid_device *hi= d, break; } =20 - pm_runtime_mark_last_busy(qsdev->dev); pm_runtime_put_autosuspend(qsdev->dev); =20 return ret; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 2170C2BEC5F; Fri, 4 Jul 2025 07:54:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615669; cv=none; b=r0P9jL53GLe3Eg0iaRoOYDL+h93WqoFIm8TeCl5hUUBEBX2Kisd9Ti9+3ziFgxFDq4+nCwsjglCJaP3Gntezs9SsLyu7sGUxKcCbJP7/0W3sUAfPsCT+RahNxT4gq5Fw2DD/vsdHYVlMfmi6SagU40K9mVy/gkpYCi+HOXTUfLk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615669; c=relaxed/simple; bh=hodRrjwtQdKJyAnyDT8gDvka1yFbsBbyR3nOMwfXLaQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=oaKv11wQhcQ2TpL/zBH/obMnyA++Ls58M4IxUNBOLJq/H/hW2jGokpbm1Gd+69DIS09DV1Dg7//6b/wcbc5o+t2ZfbEOY/WS5BoCffIvatp73b2iSDxXhMbmbBF4iuynBRQwJ2fgJern4ErAOxzLXwd5Y2RstLp2gjf49tdyhZ4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=HuCZpGej; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="HuCZpGej" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615667; x=1783151667; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hodRrjwtQdKJyAnyDT8gDvka1yFbsBbyR3nOMwfXLaQ=; b=HuCZpGejcNKBwgYUtmgDGcQLkDDI4KME9sPKhDbYf8nRQHHIME87PiGM xJz3OFf7vfESDm2PqcXJnsMvCAFJbYhAYY4Gj6qOXf+SvX+LQiY7oY+Xy 9rgoiSq9eXNm2JIIjtFUM2U8t72o+1Gldw9d+jfoN2jXawJNasMMTVUJm LWAhjV5YTBRHcZ6r/XG58NX8rD0kD7LJ95lqCcB+VsPNIVKsSOz5E2vpx rCLdNmRDgIvPQkFwdu1beR/BsjfpbJWxwZG8yju6KljdNAFb3FMOD0yeB Lxqa9pZvhdQMb8+cfhck4Q/N+dzRtOAg9gaEcoiE2oxTTpkOhs3IRD6vz g==; X-CSE-ConnectionGUID: Rixt8luaTEm+MtgoFiyc7g== X-CSE-MsgGUID: WfMNvqsPQl2Z8wpj1dBAXA== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494620" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494620" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:25 -0700 X-CSE-ConnectionGUID: Nhg5XJTsR8uk/JCZIms7Bw== X-CSE-MsgGUID: DtTDLEm6RCqiTN8aWa3q5A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924255" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:21 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id EEDC54445A; Fri, 4 Jul 2025 10:54:18 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Waqar Hameed , Sakari Ailus , Julien Stephan , Peter Zijlstra , Bo Liu , Greg KH , Al Viro , Sean Nyekjaer , Marcelo Schmitt , Rayyan Ansari , Francisco Henriques , Matti Vaittinen Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 27/80] iio: accel: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:18 +0300 Message-Id: <20250704075418.3218938-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Reviewed-by: Matti Vaittinen --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/iio/accel/bmc150-accel-core.c | 1 - drivers/iio/accel/bmi088-accel-core.c | 3 --- drivers/iio/accel/fxls8962af-core.c | 1 - drivers/iio/accel/kxcjk-1013.c | 1 - drivers/iio/accel/kxsd9.c | 3 --- drivers/iio/accel/mma8452.c | 1 - drivers/iio/accel/mma9551_core.c | 1 - drivers/iio/accel/msa311.c | 6 ------ 8 files changed, 17 deletions(-) diff --git a/drivers/iio/accel/bmc150-accel-core.c b/drivers/iio/accel/bmc1= 50-accel-core.c index be5fbb0c5d29..f45beae83f8b 100644 --- a/drivers/iio/accel/bmc150-accel-core.c +++ b/drivers/iio/accel/bmc150-accel-core.c @@ -335,7 +335,6 @@ static int bmc150_accel_set_power_state(struct bmc150_a= ccel_data *data, bool on) if (on) { ret =3D pm_runtime_resume_and_get(dev); } else { - pm_runtime_mark_last_busy(dev); ret =3D pm_runtime_put_autosuspend(dev); } =20 diff --git a/drivers/iio/accel/bmi088-accel-core.c b/drivers/iio/accel/bmi0= 88-accel-core.c index dea126f993c1..c7da90af0d2d 100644 --- a/drivers/iio/accel/bmi088-accel-core.c +++ b/drivers/iio/accel/bmi088-accel-core.c @@ -375,7 +375,6 @@ static int bmi088_accel_read_raw(struct iio_dev *indio_= dev, return -EINVAL; =20 out_read_raw_pm_put: - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; @@ -419,7 +418,6 @@ static int bmi088_accel_write_raw(struct iio_dev *indio= _dev, return ret; =20 ret =3D bmi088_accel_set_scale(data, val, val2); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); return ret; case IIO_CHAN_INFO_SAMP_FREQ: @@ -428,7 +426,6 @@ static int bmi088_accel_write_raw(struct iio_dev *indio= _dev, return ret; =20 ret =3D bmi088_accel_set_sample_freq(data, val); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); return ret; default: diff --git a/drivers/iio/accel/fxls8962af-core.c b/drivers/iio/accel/fxls89= 62af-core.c index 12598feaa693..8afd151c03ad 100644 --- a/drivers/iio/accel/fxls8962af-core.c +++ b/drivers/iio/accel/fxls8962af-core.c @@ -222,7 +222,6 @@ static int fxls8962af_power_off(struct fxls8962af_data = *data) struct device *dev =3D regmap_get_device(data->regmap); int ret; =20 - pm_runtime_mark_last_busy(dev); ret =3D pm_runtime_put_autosuspend(dev); if (ret) dev_err(dev, "failed to power off\n"); diff --git a/drivers/iio/accel/kxcjk-1013.c b/drivers/iio/accel/kxcjk-1013.c index 6aefe8221296..44d770729186 100644 --- a/drivers/iio/accel/kxcjk-1013.c +++ b/drivers/iio/accel/kxcjk-1013.c @@ -637,7 +637,6 @@ static int kxcjk1013_set_power_state(struct kxcjk1013_d= ata *data, bool on) if (on) ret =3D pm_runtime_resume_and_get(&data->client->dev); else { - pm_runtime_mark_last_busy(&data->client->dev); ret =3D pm_runtime_put_autosuspend(&data->client->dev); } if (ret < 0) { diff --git a/drivers/iio/accel/kxsd9.c b/drivers/iio/accel/kxsd9.c index cfc31265cdd0..4717d80fc24a 100644 --- a/drivers/iio/accel/kxsd9.c +++ b/drivers/iio/accel/kxsd9.c @@ -151,7 +151,6 @@ static int kxsd9_write_raw(struct iio_dev *indio_dev, ret =3D kxsd9_write_scale(indio_dev, val2); } =20 - pm_runtime_mark_last_busy(st->dev); pm_runtime_put_autosuspend(st->dev); =20 return ret; @@ -199,7 +198,6 @@ static int kxsd9_read_raw(struct iio_dev *indio_dev, } =20 error_ret: - pm_runtime_mark_last_busy(st->dev); pm_runtime_put_autosuspend(st->dev); =20 return ret; @@ -250,7 +248,6 @@ static int kxsd9_buffer_postdisable(struct iio_dev *ind= io_dev) { struct kxsd9_state *st =3D iio_priv(indio_dev); =20 - pm_runtime_mark_last_busy(st->dev); pm_runtime_put_autosuspend(st->dev); =20 return 0; diff --git a/drivers/iio/accel/mma8452.c b/drivers/iio/accel/mma8452.c index aba444a980d9..5863478bab62 100644 --- a/drivers/iio/accel/mma8452.c +++ b/drivers/iio/accel/mma8452.c @@ -227,7 +227,6 @@ static int mma8452_set_runtime_pm_state(struct i2c_clie= nt *client, bool on) if (on) { ret =3D pm_runtime_resume_and_get(&client->dev); } else { - pm_runtime_mark_last_busy(&client->dev); ret =3D pm_runtime_put_autosuspend(&client->dev); } =20 diff --git a/drivers/iio/accel/mma9551_core.c b/drivers/iio/accel/mma9551_c= ore.c index 3e7d9b79ed0e..22768f43fd24 100644 --- a/drivers/iio/accel/mma9551_core.c +++ b/drivers/iio/accel/mma9551_core.c @@ -672,7 +672,6 @@ int mma9551_set_power_state(struct i2c_client *client, = bool on) if (on) ret =3D pm_runtime_resume_and_get(&client->dev); else { - pm_runtime_mark_last_busy(&client->dev); ret =3D pm_runtime_put_autosuspend(&client->dev); } =20 diff --git a/drivers/iio/accel/msa311.c b/drivers/iio/accel/msa311.c index 3e10225410e8..ec70a517c0a9 100644 --- a/drivers/iio/accel/msa311.c +++ b/drivers/iio/accel/msa311.c @@ -607,7 +607,6 @@ static int msa311_read_raw_data(struct iio_dev *indio_d= ev, err =3D msa311_get_axis(msa311, chan, &axis); mutex_unlock(&msa311->lock); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 iio_device_release_direct(indio_dev); @@ -741,7 +740,6 @@ static int msa311_write_scale(struct iio_dev *indio_dev= , int val, int val2) break; } =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 if (err) @@ -781,7 +779,6 @@ static int msa311_write_samp_freq(struct iio_dev *indio= _dev, int val, int val2) break; } =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 iio_device_release_direct(indio_dev); @@ -832,7 +829,6 @@ static int msa311_debugfs_reg_access(struct iio_dev *in= dio_dev, =20 mutex_unlock(&msa311->lock); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 if (err) @@ -855,7 +851,6 @@ static int msa311_buffer_postdisable(struct iio_dev *in= dio_dev) struct msa311_priv *msa311 =3D iio_priv(indio_dev); struct device *dev =3D msa311->dev; =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; @@ -1231,7 +1226,6 @@ static int msa311_probe(struct i2c_client *i2c) if (err) return err; =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 err =3D devm_iio_device_register(dev, indio_dev); --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 1B0B72E03E3; Fri, 4 Jul 2025 07:54:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615679; cv=none; b=KleaiI1dOXHjbjrZ9N2U6OmxaumxljLh7sHaZJYuIVMOTIkfEw9eZGLNa39D0Rt/FIuxYzKJMxmRPsvT2yEItArA/NJAkxVKIG5NRP/4++AqvGlV6SGXpHm8X5iq8+XEXH2AOMzzAbaHoDifwrOgipsdRIuoYDHIG2IizcCkjBE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615679; c=relaxed/simple; bh=QbMjMby8Pwl0MnNO9PpYJpQ3wUGLrg04vUF7Y6hQgD4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hYYps50V1uNB962ggbIy4NT68+BlXp/GxlfiyO3vHQ9uFwlcm5EUXXH8cZq1nr+WrGYnutvSSkJBxTRx1Ci2zkr9pf3h25pQEp662xvFlRDWeI5MNDu5pp3UX6LIkrcVTMCt/6aPEaZ6fHqeSkY5+T1vyR3QdDCqag2hQbO0YP8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=QJdLiCke; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="QJdLiCke" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615677; x=1783151677; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=QbMjMby8Pwl0MnNO9PpYJpQ3wUGLrg04vUF7Y6hQgD4=; b=QJdLiCke6KraIdaC6v/gWaxWgtXzz36uGWHLMHjhAbDlk/+vIBUTw8z+ uEeD51hwjf724gD/rfZMBGN3TfEFxfmfop6bmHXzhezsRgsK62y3APN2M GpS3+Ygqnx8orzn68tl8z2uoivW1gzkEwmJHARv3jJw/SMwMGQ3pMyzRi NPQUauTzIeEdjVWRzwfAVU7LrwNZahvZAGpzJX/FaRE+kEdk8CsI2jJTB vKfxWXaeOwW9P6O7jAb/BTp+eP8RVaWHGsj1yjecVAonqo107P+wzkfDC SMsf28EpUIVA/+KXs19cLm91BJBDeLakCCfcAecUYUKEc/4u8k2r3bV6q Q==; X-CSE-ConnectionGUID: Bl2I5HL+Rv6hMVmPNAGgyw== X-CSE-MsgGUID: yxMwr1QIT8yxSBq/ckIajA== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494763" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494763" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:32 -0700 X-CSE-ConnectionGUID: +yFu4+TsSMKsGHSqPDp44g== X-CSE-MsgGUID: FEA+89GqRpalH70hPrQ1Cw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924258" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:22 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 3391B4488D; Fri, 4 Jul 2025 10:54:20 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Linus Walleij , Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Eugen Hristev , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Cai Huoqing , Haibo Chen , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Marek Vasut , Geert Uytterhoeven , Magnus Damm , Lad Prabhakar , Maxime Coquelin , Alexandre Torgue , Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Francesco Dolcini , =?UTF-8?q?Jo=C3=A3o=20Paulo=20Gon=C3=A7alves?= , "Jiri Slaby (SUSE)" , Fabrice Gasnier , "Rob Herring (Arm)" , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Sakari Ailus , Mike Looijmans , Olivier Moysan , Christophe JAILLET , Julien Stephan Cc: linux-arm-kernel@lists.infradead.org, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-renesas-soc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-sunxi@lists.linux.dev Subject: [PATCH 28/80] iio: adc: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:19 +0300 Message-Id: <20250704075420.3219092-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Reviewed-by: Linus Walleij --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/iio/adc/ab8500-gpadc.c | 1 - drivers/iio/adc/at91-sama5d2_adc.c | 10 ---------- drivers/iio/adc/imx8qxp-adc.c | 2 -- drivers/iio/adc/imx93_adc.c | 1 - drivers/iio/adc/rcar-gyroadc.c | 1 - drivers/iio/adc/rzg2l_adc.c | 3 --- drivers/iio/adc/stm32-adc-core.c | 1 - drivers/iio/adc/stm32-adc.c | 7 ------- drivers/iio/adc/sun4i-gpadc-iio.c | 2 -- drivers/iio/adc/ti-ads1015.c | 1 - drivers/iio/adc/ti-ads1100.c | 1 - drivers/iio/adc/ti-ads1119.c | 2 -- 12 files changed, 32 deletions(-) diff --git a/drivers/iio/adc/ab8500-gpadc.c b/drivers/iio/adc/ab8500-gpadc.c index f3b057f92310..8eaa1dd6a89b 100644 --- a/drivers/iio/adc/ab8500-gpadc.c +++ b/drivers/iio/adc/ab8500-gpadc.c @@ -607,7 +607,6 @@ static int ab8500_gpadc_read(struct ab8500_gpadc *gpadc, } =20 /* This eventually drops the regulator */ - pm_runtime_mark_last_busy(gpadc->dev); pm_runtime_put_autosuspend(gpadc->dev); =20 return (high_data << 8) | low_data; diff --git a/drivers/iio/adc/at91-sama5d2_adc.c b/drivers/iio/adc/at91-sama= 5d2_adc.c index c3450246730e..67846fefe21a 100644 --- a/drivers/iio/adc/at91-sama5d2_adc.c +++ b/drivers/iio/adc/at91-sama5d2_adc.c @@ -896,7 +896,6 @@ static int at91_adc_config_emr(struct at91_adc_state *s= t, emr |=3D osr | AT91_SAMA5D2_TRACKX(trackx); at91_adc_writel(st, EMR, emr); =20 - pm_runtime_mark_last_busy(st->dev); pm_runtime_put_autosuspend(st->dev); =20 st->oversampling_ratio =3D oversampling_ratio; @@ -971,7 +970,6 @@ static int at91_adc_configure_touch(struct at91_adc_sta= te *st, bool state) AT91_SAMA5D2_IER_PEN | AT91_SAMA5D2_IER_NOPEN); at91_adc_writel(st, TSMR, 0); =20 - pm_runtime_mark_last_busy(st->dev); pm_runtime_put_autosuspend(st->dev); return 0; } @@ -1143,7 +1141,6 @@ static int at91_adc_configure_trigger(struct iio_trig= ger *trig, bool state) at91_adc_configure_trigger_registers(st, state); =20 if (!state) { - pm_runtime_mark_last_busy(st->dev); pm_runtime_put_autosuspend(st->dev); } =20 @@ -1336,7 +1333,6 @@ static int at91_adc_buffer_prepare(struct iio_dev *in= dio_dev) at91_adc_writel(st, IER, AT91_SAMA5D2_IER_DRDY); =20 pm_runtime_put: - pm_runtime_mark_last_busy(st->dev); pm_runtime_put_autosuspend(st->dev); return ret; } @@ -1394,7 +1390,6 @@ static int at91_adc_buffer_postdisable(struct iio_dev= *indio_dev) if (st->dma_st.dma_chan) dmaengine_terminate_sync(st->dma_st.dma_chan); =20 - pm_runtime_mark_last_busy(st->dev); pm_runtime_put_autosuspend(st->dev); =20 return 0; @@ -1603,7 +1598,6 @@ static void at91_adc_setup_samp_freq(struct iio_dev *= indio_dev, unsigned freq, mr |=3D AT91_SAMA5D2_MR_TRACKTIM(tracktim); at91_adc_writel(st, MR, mr); =20 - pm_runtime_mark_last_busy(st->dev); pm_runtime_put_autosuspend(st->dev); =20 dev_dbg(&indio_dev->dev, "freq: %u, startup: %u, prescal: %u, tracktim=3D= %u\n", @@ -1809,7 +1803,6 @@ static int at91_adc_read_info_raw(struct iio_dev *ind= io_dev, at91_adc_readl(st, LCDR); =20 pm_runtime_put: - pm_runtime_mark_last_busy(st->dev); pm_runtime_put_autosuspend(st->dev); return ret; } @@ -1890,7 +1883,6 @@ static int at91_adc_read_temp(struct iio_dev *indio_d= ev, restore_config: /* Revert previous settings. */ at91_adc_temp_sensor_configure(st, false); - pm_runtime_mark_last_busy(st->dev); pm_runtime_put_autosuspend(st->dev); if (ret < 0) return ret; @@ -2465,7 +2457,6 @@ static int at91_adc_probe(struct platform_device *pde= v) dev_info(&pdev->dev, "version: %x\n", readl_relaxed(st->base + st->soc_info.platform->layout->VERSION)); =20 - pm_runtime_mark_last_busy(st->dev); pm_runtime_put_autosuspend(st->dev); =20 return 0; @@ -2567,7 +2558,6 @@ static int at91_adc_resume(struct device *dev) at91_adc_configure_trigger_registers(st, true); } =20 - pm_runtime_mark_last_busy(st->dev); pm_runtime_put_autosuspend(st->dev); =20 return 0; diff --git a/drivers/iio/adc/imx8qxp-adc.c b/drivers/iio/adc/imx8qxp-adc.c index be13a6ed7e00..d9da24efdcbe 100644 --- a/drivers/iio/adc/imx8qxp-adc.c +++ b/drivers/iio/adc/imx8qxp-adc.c @@ -229,7 +229,6 @@ static int imx8qxp_adc_read_raw(struct iio_dev *indio_d= ev, ret =3D wait_for_completion_interruptible_timeout(&adc->completion, IMX8QXP_ADC_TIMEOUT); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_sync_autosuspend(dev); =20 if (ret =3D=3D 0) { @@ -295,7 +294,6 @@ static int imx8qxp_adc_reg_access(struct iio_dev *indio= _dev, unsigned int reg, =20 *readval =3D readl(adc->regs + reg); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_sync_autosuspend(dev); =20 return 0; diff --git a/drivers/iio/adc/imx93_adc.c b/drivers/iio/adc/imx93_adc.c index 7feaafd2316f..bb5bd22269b9 100644 --- a/drivers/iio/adc/imx93_adc.c +++ b/drivers/iio/adc/imx93_adc.c @@ -248,7 +248,6 @@ static int imx93_adc_read_raw(struct iio_dev *indio_dev, mutex_lock(&adc->lock); ret =3D imx93_adc_read_channel_conversion(adc, chan->channel, val); mutex_unlock(&adc->lock); - pm_runtime_mark_last_busy(dev); pm_runtime_put_sync_autosuspend(dev); if (ret < 0) return ret; diff --git a/drivers/iio/adc/rcar-gyroadc.c b/drivers/iio/adc/rcar-gyroadc.c index cc326f21d398..467c6a9213ab 100644 --- a/drivers/iio/adc/rcar-gyroadc.c +++ b/drivers/iio/adc/rcar-gyroadc.c @@ -166,7 +166,6 @@ static int rcar_gyroadc_set_power(struct rcar_gyroadc *= priv, bool on) if (on) { return pm_runtime_resume_and_get(dev); } else { - pm_runtime_mark_last_busy(dev); return pm_runtime_put_autosuspend(dev); } } diff --git a/drivers/iio/adc/rzg2l_adc.c b/drivers/iio/adc/rzg2l_adc.c index 9674d48074c9..29264a410def 100644 --- a/drivers/iio/adc/rzg2l_adc.c +++ b/drivers/iio/adc/rzg2l_adc.c @@ -249,7 +249,6 @@ static int rzg2l_adc_conversion(struct iio_dev *indio_d= ev, struct rzg2l_adc *adc rzg2l_adc_start_stop(adc, false); =20 rpm_put: - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); return ret; } @@ -411,7 +410,6 @@ static int rzg2l_adc_hw_init(struct device *dev, struct= rzg2l_adc *adc) rzg2l_adc_writel(adc, RZG2L_ADM(3), reg); =20 exit_hw_init: - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); return ret; } @@ -591,7 +589,6 @@ static int rzg2l_adc_resume(struct device *dev) =20 rpm_restore: if (adc->was_rpm_active) { - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); } resets_restore: diff --git a/drivers/iio/adc/stm32-adc-core.c b/drivers/iio/adc/stm32-adc-c= ore.c index dea166c53369..b42fee4a4695 100644 --- a/drivers/iio/adc/stm32-adc-core.c +++ b/drivers/iio/adc/stm32-adc-core.c @@ -795,7 +795,6 @@ static int stm32_adc_probe(struct platform_device *pdev) goto err_irq_remove; } =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; diff --git a/drivers/iio/adc/stm32-adc.c b/drivers/iio/adc/stm32-adc.c index 588c69e175f5..54147d0afc0f 100644 --- a/drivers/iio/adc/stm32-adc.c +++ b/drivers/iio/adc/stm32-adc.c @@ -1528,7 +1528,6 @@ static int stm32_adc_single_conv(struct iio_dev *indi= o_dev, =20 stm32_adc_conv_irq_disable(adc); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; @@ -1564,7 +1563,6 @@ static int stm32_adc_write_raw(struct iio_dev *indio_= dev, =20 adc->cfg->set_ovs(indio_dev, idx); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 adc->ovs_idx =3D idx; @@ -1759,7 +1757,6 @@ static int stm32_adc_update_scan_mode(struct iio_dev = *indio_dev, adc->num_conv =3D bitmap_weight(scan_mask, iio_get_masklength(indio_dev)); =20 ret =3D stm32_adc_conf_scan_seq(indio_dev, scan_mask); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; @@ -1808,7 +1805,6 @@ static int stm32_adc_debugfs_reg_access(struct iio_de= v *indio_dev, else *readval =3D stm32_adc_readl(adc, reg); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; @@ -1954,7 +1950,6 @@ static int stm32_adc_buffer_postenable(struct iio_dev= *indio_dev) err_clr_trig: stm32_adc_set_trig(indio_dev, NULL); err_pm_put: - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; @@ -1977,7 +1972,6 @@ static int stm32_adc_buffer_predisable(struct iio_dev= *indio_dev) if (stm32_adc_set_trig(indio_dev, NULL)) dev_err(&indio_dev->dev, "Can't clear trigger\n"); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; @@ -2614,7 +2608,6 @@ static int stm32_adc_probe(struct platform_device *pd= ev) goto err_hw_stop; } =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 if (IS_ENABLED(CONFIG_DEBUG_FS)) diff --git a/drivers/iio/adc/sun4i-gpadc-iio.c b/drivers/iio/adc/sun4i-gpad= c-iio.c index 6b8d6bee1873..a439f4864111 100644 --- a/drivers/iio/adc/sun4i-gpadc-iio.c +++ b/drivers/iio/adc/sun4i-gpadc-iio.c @@ -245,7 +245,6 @@ static int sun4i_gpadc_read(struct iio_dev *indio_dev, = int channel, int *val, *val =3D info->temp_data; =20 ret =3D 0; - pm_runtime_mark_last_busy(indio_dev->dev.parent); =20 err: pm_runtime_put_autosuspend(indio_dev->dev.parent); @@ -272,7 +271,6 @@ static int sun4i_gpadc_temp_read(struct iio_dev *indio_= dev, int *val) =20 regmap_read(info->regmap, SUN4I_GPADC_TEMP_DATA, val); =20 - pm_runtime_mark_last_busy(indio_dev->dev.parent); pm_runtime_put_autosuspend(indio_dev->dev.parent); =20 return 0; diff --git a/drivers/iio/adc/ti-ads1015.c b/drivers/iio/adc/ti-ads1015.c index 48549d617e5f..d3920fcb131b 100644 --- a/drivers/iio/adc/ti-ads1015.c +++ b/drivers/iio/adc/ti-ads1015.c @@ -377,7 +377,6 @@ static int ads1015_set_power_state(struct ads1015_data = *data, bool on) if (on) { ret =3D pm_runtime_resume_and_get(dev); } else { - pm_runtime_mark_last_busy(dev); ret =3D pm_runtime_put_autosuspend(dev); } =20 diff --git a/drivers/iio/adc/ti-ads1100.c b/drivers/iio/adc/ti-ads1100.c index b0790e300b18..aa8946063c7d 100644 --- a/drivers/iio/adc/ti-ads1100.c +++ b/drivers/iio/adc/ti-ads1100.c @@ -105,7 +105,6 @@ static int ads1100_get_adc_result(struct ads1100_data *= data, int chan, int *val) =20 ret =3D i2c_master_recv(data->client, (char *)&buffer, sizeof(buffer)); =20 - pm_runtime_mark_last_busy(&data->client->dev); pm_runtime_put_autosuspend(&data->client->dev); =20 if (ret < 0) { diff --git a/drivers/iio/adc/ti-ads1119.c b/drivers/iio/adc/ti-ads1119.c index d2f86e1ec656..9f576cfe63f9 100644 --- a/drivers/iio/adc/ti-ads1119.c +++ b/drivers/iio/adc/ti-ads1119.c @@ -291,7 +291,6 @@ static int ads1119_single_conversion(struct ads1119_sta= te *st, *val =3D sign_extend32(sample, chan->scan_type.realbits - 1); ret =3D IIO_VAL_INT; pdown: - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); return ret; } @@ -470,7 +469,6 @@ static int ads1119_triggered_buffer_postdisable(struct = iio_dev *indio_dev) if (ret) return ret; =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 393362D542C; Fri, 4 Jul 2025 07:54:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615667; cv=none; b=ICk+FijGw/sdhBWNgrzMZQNaLtBb4XHwIPZirSyT/wEJquyPFNrjqGVtA7Ek4bXDcMOUap2zD/p79qY4dW4QXcyGKG8i240hpWM/CdaFFOffkrIWFuidDFANwXZlAD6FghJNoNZc5RSJB93ExPbnE1b7JpbtExHXdMxjIjzwz54= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615667; c=relaxed/simple; bh=EsSRBPHL51gb+N+5iscaLJIMNNVWp/ZmaF2YUnpikUU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=CBxvQPYbme9U0slMyKfwCMfR0OS7+9wa6cAYuTbm+yL3zX+9FGXqe+/NlY/qwL7X55I6EErHUtDb7ZFz94/LFt7+UDEKt46sagEv8R5zrP20l/5U1sIk3fsZLP7HWXw92FfmtDQGV00QS4QuimV2dcbrpdnEA9NDRpB3S0v5t8Q= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=hQHbbXQV; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="hQHbbXQV" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615666; x=1783151666; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=EsSRBPHL51gb+N+5iscaLJIMNNVWp/ZmaF2YUnpikUU=; b=hQHbbXQVoS7KlqWhGqUPzqm0gZhKH5DbmVjnMXBtsp+WKaB89qQskePN AwL/NcdifJQsHrGKA2lLX3r15XwKYQb/V6MwIj6a4RxwssK+rKwSU/lzM MMvhDawrndoExWqouvqD4MgebV/KwlK06sNcSTh5Lg4+CZBBJAy1YPmCQ 9jFsEJCAazlCb/CllacYrMC64CjZfIy47IWbRG6n/LO/b2oWphaWcSRMD LudJcA3GSdOzMP1J8JDUko58HNVQjA0cmW9a8OIbZLsA3ieUZFcylpE+v bKvpSg59e8kBmiKhsqMQ29TdPowbvFHQxk2YNb47rMco3a2O37Lp2gcEj w==; X-CSE-ConnectionGUID: wB3T8GAkQi+uYAF/rtbfrw== X-CSE-MsgGUID: 7tZPsp/vRH2tMW8Y8cBj/g== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494614" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494614" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:25 -0700 X-CSE-ConnectionGUID: qtuDCPjqR1OZ4WgHSakl5Q== X-CSE-MsgGUID: zqALsrCnTiGhdANOempUEg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924263" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:22 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id CA85844910; Fri, 4 Jul 2025 10:54:20 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Sakari Ailus , Waqar Hameed , Marcelo Schmitt , Vasileios Amoiridis Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 29/80] iio: chemical: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:20 +0300 Message-Id: <20250704075420.3219166-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/iio/chemical/atlas-sensor.c | 2 -- drivers/iio/chemical/bme680_core.c | 3 --- 2 files changed, 5 deletions(-) diff --git a/drivers/iio/chemical/atlas-sensor.c b/drivers/iio/chemical/atl= as-sensor.c index 1daaa36f87a9..8bbba85af699 100644 --- a/drivers/iio/chemical/atlas-sensor.c +++ b/drivers/iio/chemical/atlas-sensor.c @@ -425,7 +425,6 @@ static int atlas_buffer_predisable(struct iio_dev *indi= o_dev) if (ret) return ret; =20 - pm_runtime_mark_last_busy(&data->client->dev); ret =3D pm_runtime_put_autosuspend(&data->client->dev); if (ret) return ret; @@ -491,7 +490,6 @@ static int atlas_read_measurement(struct atlas_data *da= ta, int reg, __be32 *val) =20 ret =3D regmap_bulk_read(data->regmap, reg, val, sizeof(*val)); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; diff --git a/drivers/iio/chemical/bme680_core.c b/drivers/iio/chemical/bme6= 80_core.c index 61d446fd456c..70f81c4a96ba 100644 --- a/drivers/iio/chemical/bme680_core.c +++ b/drivers/iio/chemical/bme680_core.c @@ -950,7 +950,6 @@ static int bme680_read_raw(struct iio_dev *indio_dev, return ret; =20 ret =3D __bme680_read_raw(indio_dev, chan, val, val2, mask); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; @@ -1021,7 +1020,6 @@ static int bme680_write_raw(struct iio_dev *indio_dev, return ret; =20 ret =3D __bme680_write_raw(indio_dev, chan, val, val2, mask); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; @@ -1140,7 +1138,6 @@ static int bme680_buffer_postdisable(struct iio_dev *= indio_dev) struct bme680_data *data =3D iio_priv(indio_dev); struct device *dev =3D regmap_get_device(data->regmap); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); return 0; } --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 A87A22D6611; Fri, 4 Jul 2025 07:54:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615669; cv=none; b=t+8jfW84KGr9w0SxKkLtAL3awl2oa7kxURhV/Ps7dM4g5TXW0AvT+ujPzE4q+f6+nuRQvQgyMHh1MvFpEJpM9x65s2+fP1vgKwqOJ4y0P1/PraPBG1/52VCnNsWWx+vcQnFvlcFzxnzE/ZbzaHrakMWDPDDJ9KB2dXgvh8BAyYQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615669; c=relaxed/simple; bh=eEMXgNk8O9i8u94PDwyXfwKEs6jdqR9SbmKxC3eBhrY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=L5H/9gLJAfVD4e1cpViz5S2Ar1pXhaIYkaUBs71BcfBhPv4jVP/zQ12JxlfzPaCrXy+RzuH5RLNM/MhnZEBfwYQKsrukjKWj2N4lVHeYo5pcbDHP9rYfX/D8yg3Zwp8mEOdW6e76g6kDMEwuFmDDtVnYe3z2CxFNvHjiPuzVlFQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=AY8v/1M/; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="AY8v/1M/" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615667; x=1783151667; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=eEMXgNk8O9i8u94PDwyXfwKEs6jdqR9SbmKxC3eBhrY=; b=AY8v/1M/0PQp5DA0UNufoDL3QqWaqLiUDf9126qGrsDdGDTv+Zz8eSOS DasQAsZ/LkZjgpY8fBLczNCWcfTVwuad0HWm5AF/5hfpex4faJ6ub6OhK Hh5j9UaKu/JRi7KunDbfTJXSlXsXTh09CPgPfd87FHCcvUxLd5nyybq4F 80CYri0rM0QIj5ydgqWjJZsMvzF4Ct8pI+wbIs6TTpHNYeNbYNrliQJhl Rl3xtDQ9cljKVLfv1M4+HwhxDxqlSHSuWJeF4fubCmYzZ9aLDNHb1H59l re0dWYHtKeElzNMcTWskUv3PYV1D4dib/PhdclMwCkfsb5XT59jmUz0F5 A==; X-CSE-ConnectionGUID: hlQgJgl7Qtq49rFxEt+8sQ== X-CSE-MsgGUID: gCmaUy6QQJuzdRqfkva8bA== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494633" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494633" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:26 -0700 X-CSE-ConnectionGUID: y4e4yWymRNK1WTvnPcl7zQ== X-CSE-MsgGUID: V7rlD42dQFqqPct9gwu6pQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924267" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:23 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 7A6FE447EB; Fri, 4 Jul 2025 10:54:21 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Greg KH , Sakari Ailus , Peter Zijlstra , Christophe JAILLET , Srinivas Pandruvada Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 30/80] iio: common: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:21 +0300 Message-Id: <20250704075421.3219234-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/iio/common/hid-sensors/hid-sensor-trigger.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/iio/common/hid-sensors/hid-sensor-trigger.c b/drivers/= iio/common/hid-sensors/hid-sensor-trigger.c index 48193937275b..5540e2d28f4a 100644 --- a/drivers/iio/common/hid-sensors/hid-sensor-trigger.c +++ b/drivers/iio/common/hid-sensors/hid-sensor-trigger.c @@ -163,7 +163,6 @@ int hid_sensor_power_state(struct hid_sensor_common *st= , bool state) ret =3D pm_runtime_resume_and_get(&st->pdev->dev); } else { atomic_dec(&st->user_requested_state); - pm_runtime_mark_last_busy(&st->pdev->dev); pm_runtime_use_autosuspend(&st->pdev->dev); ret =3D pm_runtime_put_autosuspend(&st->pdev->dev); } --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 403EE2D6638; Fri, 4 Jul 2025 07:54:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615670; cv=none; b=DniCbrpjoYXp5jsGzxiCRfNOuhup7vn3BOHEVW29K0a7JxvT8lHnjpMSIzGWgN5YZr9ITgOFb/AN+HHJRkUq9gyHeaEgpqWbghLnydRXggn4ps2sNt/8MaOXFF687jViRfbuRFGfBATDVWPE6cZl5okBRhjc5NaHtpx3XwJsQjk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615670; c=relaxed/simple; bh=iWBWM0U4T919tQGPGfn9BScin0AJyspS/yqsVimSI2Q=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ehakGMswGkgb/MqLnxPK7pKY8tbayMvsQDWAdk6MRobUYxiS9wPm3bpYIcfZOCwR4eL7qTVLhUyIukYFdgV8Q1uplRpLzXA56LExjwpIA48dmlT2sf9Hc6M211viVPpe7NKYhR9ZQlM3OGahDnv3PnPxld+YPiBjWDRgAYUhn1A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=SgqInHLr; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="SgqInHLr" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615668; x=1783151668; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=iWBWM0U4T919tQGPGfn9BScin0AJyspS/yqsVimSI2Q=; b=SgqInHLrh5Ey+6QTxzP2B2ogOKiz0BB+Vx3+xf2pAXEq2tqwAb8UBbyM 9ed+r8YpRKcx4vjE8N8A5EBYUzOH5tjo3xF9CUPiD9CA1+1RHxOHNIlGO iBtE/4d5uDy0erCyNgeECBt7Uhnhg5oW8x9rxU1tmoslN5AMtnFU8th13 1UH53ujqh4Hp7U/WEZmVDl0hlucCckSve1NfyiG2MTOlgFrROMyGTHJPT 7+AY8NqrNnVf8t08MVkpdrOwSk+fjvK7ZDt8h1g9ak+uwD4IEdL2EkLLA I5DyHOD95cnsCocf7ZVbwMFKHXJtc9Nqa59KhKSeJYCGxjFXejpUZvMUh w==; X-CSE-ConnectionGUID: m1NKziOZTDasnewOTupUDg== X-CSE-MsgGUID: lFBXTsx5TDWylBqepNcm3g== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494640" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494640" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:27 -0700 X-CSE-ConnectionGUID: 1PPAJs0KT4yeS0NQgpsEJA== X-CSE-MsgGUID: PargF/5ZSQyGI5qazvbrfg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924271" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:24 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 4FF4244A4B; Fri, 4 Jul 2025 10:54:22 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Maxime Coquelin , Alexandre Torgue , Sakari Ailus , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Cc: linux-iio@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 31/80] iio: dac: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:22 +0300 Message-Id: <20250704075422.3219331-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/iio/dac/stm32-dac.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/iio/dac/stm32-dac.c b/drivers/iio/dac/stm32-dac.c index 344388338d9b..7d47c7dddbf8 100644 --- a/drivers/iio/dac/stm32-dac.c +++ b/drivers/iio/dac/stm32-dac.c @@ -96,7 +96,6 @@ static int stm32_dac_set_enable_state(struct iio_dev *ind= io_dev, int ch, udelay(1); =20 if (!enable) { - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); } =20 @@ -104,7 +103,6 @@ static int stm32_dac_set_enable_state(struct iio_dev *i= ndio_dev, int ch, =20 err_put_pm: if (enable) { - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); } =20 @@ -349,7 +347,6 @@ static int stm32_dac_probe(struct platform_device *pdev) if (ret) goto err_pm_put; =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 170192D879A; Fri, 4 Jul 2025 07:54:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615671; cv=none; b=EzfhJTDvYwPc/tPE8KyTVvV9ps93n7Rh1twoJ1awkdNac+OQo/P+9CdLF/f7BuSc3+LwwMQvBxS/rVTDnguMv1GlTSnliBYcIGWXk/nRfQZ7i88ZnFFXvP0OBUGMqp3tiiOrWr16nH3UG6wsMuVjhJxLaM+MXMc/fc6x2uHh/A0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615671; c=relaxed/simple; bh=DN1KFlObEouhcuoe+jy028IdoQid+nHGeBZgjV8M6aI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ujkisZVA8/ti/rP7RCQOMxHN9pX75fbN3yLsfNStuj+WupxhcMFk3EJm/RT9xn0V1tVm5X6rtYCmc5iMOsBTo8Bt83QZPWCWrjEDnw0KSzepEjGRpVE0SvxqozIgPYpFRfwKDD80fjt2yfpJ5od+xSpMm+b2g/c27r843HJxl3k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=dnx02pyy; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="dnx02pyy" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615669; x=1783151669; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=DN1KFlObEouhcuoe+jy028IdoQid+nHGeBZgjV8M6aI=; b=dnx02pyyGZjvb9vjoPd3HFt5B/04xKQ7kPKIma/b17FYj3a1zXilg/du pBwM7BywjcRBw+qHo06f5LqUvHt3U3DnxnDfU5HoVYgFbdUGJWLp7nOd1 FUlB+O46YIsfZN4Kt/ZjXKx76dz7Y8E1ycrfT8f/r1xWz3PQx/6UUuBy5 3xnTshC4pHazudFH6hf5UmIBE0MvQ76rqk2j5l+0iZP78smu/9Tyc5snC 66eKJsE/ivbjGW29b/NjoFSL/m8tEXMtlSvV8uVxnLOvBE/zLPAzrdvE3 w8i7MONLRNTHQ40BTbyG0qiIlwIvtHvn+UPIZS9wWBXZOouV5pVhauBQt Q==; X-CSE-ConnectionGUID: VkkZyOJNRIiLSfpR7NEgFA== X-CSE-MsgGUID: hvDQYDVcSkWLfJL9c0Uyng== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494674" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494674" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:28 -0700 X-CSE-ConnectionGUID: XH/YptOcQOKsZp63w+c0Aw== X-CSE-MsgGUID: 3SB//a+nR0qZR4dIqGDWvg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924274" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:25 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 4316044419; Fri, 4 Jul 2025 10:54:23 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Rui Miguel Silva , Linus Walleij , Julien Stephan , Hans de Goede , Waqar Hameed , Sakari Ailus Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 32/80] iio: gyro: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:22 +0300 Message-Id: <20250704075422.3219401-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Reviewed-by: Linus Walleij Reviewed-by: Rui Miguel Silva --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/iio/gyro/bmg160_core.c | 1 - drivers/iio/gyro/fxas21002c_core.c | 2 -- drivers/iio/gyro/mpu3050-core.c | 3 --- drivers/iio/gyro/mpu3050-i2c.c | 1 - 4 files changed, 7 deletions(-) diff --git a/drivers/iio/gyro/bmg160_core.c b/drivers/iio/gyro/bmg160_core.c index 781d3e96645f..4dbe3c0cc5eb 100644 --- a/drivers/iio/gyro/bmg160_core.c +++ b/drivers/iio/gyro/bmg160_core.c @@ -310,7 +310,6 @@ static int bmg160_set_power_state(struct bmg160_data *d= ata, bool on) if (on) ret =3D pm_runtime_get_sync(dev); else { - pm_runtime_mark_last_busy(dev); ret =3D pm_runtime_put_autosuspend(dev); } =20 diff --git a/drivers/iio/gyro/fxas21002c_core.c b/drivers/iio/gyro/fxas2100= 2c_core.c index 754c8a564ba4..a88670207cec 100644 --- a/drivers/iio/gyro/fxas21002c_core.c +++ b/drivers/iio/gyro/fxas21002c_core.c @@ -373,8 +373,6 @@ static int fxas21002c_pm_put(struct fxas21002c_data *d= ata) { struct device *dev =3D regmap_get_device(data->regmap); =20 - pm_runtime_mark_last_busy(dev); - return pm_runtime_put_autosuspend(dev); } =20 diff --git a/drivers/iio/gyro/mpu3050-core.c b/drivers/iio/gyro/mpu3050-cor= e.c index 16553948c5c3..67ae7d1012bc 100644 --- a/drivers/iio/gyro/mpu3050-core.c +++ b/drivers/iio/gyro/mpu3050-core.c @@ -370,7 +370,6 @@ static int mpu3050_read_raw(struct iio_dev *indio_dev, =20 out_read_raw_unlock: mutex_unlock(&mpu3050->lock); - pm_runtime_mark_last_busy(mpu3050->dev); pm_runtime_put_autosuspend(mpu3050->dev); =20 return ret; @@ -662,7 +661,6 @@ static int mpu3050_buffer_postdisable(struct iio_dev *i= ndio_dev) { struct mpu3050 *mpu3050 =3D iio_priv(indio_dev); =20 - pm_runtime_mark_last_busy(mpu3050->dev); pm_runtime_put_autosuspend(mpu3050->dev); =20 return 0; @@ -976,7 +974,6 @@ static int mpu3050_drdy_trigger_set_state(struct iio_tr= igger *trig, if (ret) dev_err(mpu3050->dev, "error resetting FIFO\n"); =20 - pm_runtime_mark_last_busy(mpu3050->dev); pm_runtime_put_autosuspend(mpu3050->dev); mpu3050->hw_irq_trigger =3D false; =20 diff --git a/drivers/iio/gyro/mpu3050-i2c.c b/drivers/iio/gyro/mpu3050-i2c.c index 8e284f47242c..092878f2c886 100644 --- a/drivers/iio/gyro/mpu3050-i2c.c +++ b/drivers/iio/gyro/mpu3050-i2c.c @@ -27,7 +27,6 @@ static int mpu3050_i2c_bypass_deselect(struct i2c_mux_cor= e *mux, u32 chan_id) { struct mpu3050 *mpu3050 =3D i2c_mux_priv(mux); =20 - pm_runtime_mark_last_busy(mpu3050->dev); pm_runtime_put_autosuspend(mpu3050->dev); return 0; } --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 802772D8DDF; Fri, 4 Jul 2025 07:54:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615671; cv=none; b=rcqvqCEGhyGhufiycgfKnb5wPIh5KT4beVSoUHZ2kxLYrghXjohJ9m3/D1dbzmQychnt21RVe9/+IXzGpNghO5jRR5DLOL8gj3KJGdX5Dnx70Nl3Jk0aq+Gd72eF00pM7b2KZXdEwIFGck169Jncss7Pz1gX9IcPopI0/EbmBtw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615671; c=relaxed/simple; bh=qbtIAI5uewIloEDrr1CezLGRWGhcnEHM5qLOuB4lMpw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=HDq6OQwfXL5H2/WJArA2Qtq23WX5TxZrxtMJEQHd0lvDIu1k/mErgxdm7Aonl+BO3dlTCk4hEJGfVf/orektNwly0Z4FQekk2jWQP3mwyve62AVGrFxM2pWYofP6g5D6/T+l5WQg8pf3A9z8PtpJ5663LXt+3XXnAe56r1zKu4w= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=YjHA7Ifo; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="YjHA7Ifo" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615669; x=1783151669; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qbtIAI5uewIloEDrr1CezLGRWGhcnEHM5qLOuB4lMpw=; b=YjHA7IfofF//qKXbqbohx2YBhyjGRCDM9H8LAMMJ4cY7gRcKOzxEF7p1 2u6pfsY187OqNRDpiZbxICb4TgX1Snp+R1g/jbGofx43O1DndK/gT+QVB 16DeaxRL80sZ1pz80X0YdA3eOH/5KayvszxTyanw1sm74We3fKgrn+5jH AoLpXYd/ZmOaI7zmzkKz+IbSRdYBZVuTRsX2O4UXHiLsIRaAYsFphgx+V 7JKUqC7KAMWrnN10bBSybrMZIVzOZco3qgWgc+jlUWAtO8xXwHIwg4p++ Y9YRnbYCwS6/RkbalJJC0TTAeL5MXIiws/8X9ktpp6DB1TVa3rsYsbBdo w==; X-CSE-ConnectionGUID: Xs6hYK3dRIGpr/F019v61Q== X-CSE-MsgGUID: AZaOR70qTpupVRV+F28F4g== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494680" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494680" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:28 -0700 X-CSE-ConnectionGUID: ZasxoBPFS3+kUOoWDH4WVg== X-CSE-MsgGUID: 0Tl0AWXQQq2Do/O0e42OXA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924277" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:26 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 06D7944424; Fri, 4 Jul 2025 10:54:24 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Jean-Baptiste Maneyrol , Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Waqar Hameed , Javier Carrasco Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 33/80] iio: imu: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:23 +0300 Message-Id: <20250704075423.3219461-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c | 5 ----- drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c | 1 - drivers/iio/imu/inv_icm42600/inv_icm42600_gyro.c | 5 ----- drivers/iio/imu/inv_icm42600/inv_icm42600_temp.c | 1 - drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 6 ------ drivers/iio/imu/inv_mpu6050/inv_mpu_trigger.c | 1 - drivers/iio/imu/kmx61.c | 1 - 7 files changed, 20 deletions(-) diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c b/drivers/ii= o/imu/inv_icm42600/inv_icm42600_accel.c index 8a6f09e68f49..11cab815e1e2 100644 --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_accel.c @@ -289,7 +289,6 @@ static int inv_icm42600_accel_read_sensor(struct iio_de= v *indio_dev, ret =3D -EINVAL; exit: mutex_unlock(&st->lock); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); return ret; } @@ -367,7 +366,6 @@ static int inv_icm42600_accel_write_scale(struct iio_de= v *indio_dev, ret =3D inv_icm42600_set_accel_conf(st, &conf, NULL); =20 mutex_unlock(&st->lock); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; @@ -471,7 +469,6 @@ static int inv_icm42600_accel_write_odr(struct iio_dev = *indio_dev, =20 out_unlock: mutex_unlock(&st->lock); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; @@ -523,7 +520,6 @@ static int inv_icm42600_accel_read_offset(struct inv_ic= m42600_state *st, memcpy(data, st->buffer, sizeof(data)); =20 mutex_unlock(&st->lock); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); if (ret) return ret; @@ -661,7 +657,6 @@ static int inv_icm42600_accel_write_offset(struct inv_i= cm42600_state *st, =20 out_unlock: mutex_unlock(&st->lock); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); return ret; } diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c b/drivers/i= io/imu/inv_icm42600/inv_icm42600_buffer.c index 00b9db52ca78..8c36ad87f328 100644 --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_buffer.c @@ -439,7 +439,6 @@ static int inv_icm42600_buffer_postdisable(struct iio_d= ev *indio_dev) if (sleep) msleep(sleep); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_gyro.c b/drivers/iio= /imu/inv_icm42600/inv_icm42600_gyro.c index 9ba6f13628e6..8a7cc9127631 100644 --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_gyro.c +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_gyro.c @@ -184,7 +184,6 @@ static int inv_icm42600_gyro_read_sensor(struct inv_icm= 42600_state *st, ret =3D -EINVAL; exit: mutex_unlock(&st->lock); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); return ret; } @@ -283,7 +282,6 @@ static int inv_icm42600_gyro_write_scale(struct iio_dev= *indio_dev, ret =3D inv_icm42600_set_gyro_conf(st, &conf, NULL); =20 mutex_unlock(&st->lock); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; @@ -378,7 +376,6 @@ static int inv_icm42600_gyro_write_odr(struct iio_dev *= indio_dev, =20 out_unlock: mutex_unlock(&st->lock); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; @@ -430,7 +427,6 @@ static int inv_icm42600_gyro_read_offset(struct inv_icm= 42600_state *st, memcpy(data, st->buffer, sizeof(data)); =20 mutex_unlock(&st->lock); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); if (ret) return ret; @@ -567,7 +563,6 @@ static int inv_icm42600_gyro_write_offset(struct inv_ic= m42600_state *st, =20 out_unlock: mutex_unlock(&st->lock); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); return ret; } diff --git a/drivers/iio/imu/inv_icm42600/inv_icm42600_temp.c b/drivers/iio= /imu/inv_icm42600/inv_icm42600_temp.c index 8b15afca498c..684007376178 100644 --- a/drivers/iio/imu/inv_icm42600/inv_icm42600_temp.c +++ b/drivers/iio/imu/inv_icm42600/inv_icm42600_temp.c @@ -37,7 +37,6 @@ static int inv_icm42600_temp_read(struct inv_icm42600_sta= te *st, s16 *temp) =20 exit: mutex_unlock(&st->lock); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c b/drivers/iio/imu/i= nv_mpu6050/inv_mpu_core.c index b8656c02354a..c351d0e4f810 100644 --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c @@ -735,7 +735,6 @@ static int inv_mpu6050_read_channel_data(struct iio_dev= *indio_dev, break; } =20 - pm_runtime_mark_last_busy(pdev); pm_runtime_put_autosuspend(pdev); =20 return ret; @@ -938,7 +937,6 @@ static int inv_mpu6050_write_raw(struct iio_dev *indio_= dev, break; } =20 - pm_runtime_mark_last_busy(pdev); pm_runtime_put_autosuspend(pdev); error_write_raw_unlock: mutex_unlock(&st->lock); @@ -1146,14 +1144,12 @@ static int inv_mpu6050_enable_wom(struct inv_mpu605= 0_state *st, bool en) st->chip_config.wom_en =3D false; } =20 - pm_runtime_mark_last_busy(pdev); pm_runtime_put_autosuspend(pdev); } =20 return result; =20 error_suspend: - pm_runtime_mark_last_busy(pdev); pm_runtime_put_autosuspend(pdev); return result; } @@ -1249,7 +1245,6 @@ static int inv_mpu6050_write_event_value(struct iio_d= ev *indio_dev, value =3D (u64)val * 1000000ULL + (u64)val2; result =3D inv_mpu6050_set_wom_threshold(st, value, INV_MPU6050_FREQ_DIVI= DER(st)); =20 - pm_runtime_mark_last_busy(pdev); pm_runtime_put_autosuspend(pdev); =20 return result; @@ -1357,7 +1352,6 @@ inv_mpu6050_fifo_rate_store(struct device *dev, struc= t device_attribute *attr, if (result) goto fifo_rate_fail_power_off; =20 - pm_runtime_mark_last_busy(pdev); fifo_rate_fail_power_off: pm_runtime_put_autosuspend(pdev); fifo_rate_fail_unlock: diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_trigger.c b/drivers/iio/im= u/inv_mpu6050/inv_mpu_trigger.c index 5b1088cc3704..10a473342075 100644 --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_trigger.c +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_trigger.c @@ -194,7 +194,6 @@ static int inv_mpu6050_set_enable(struct iio_dev *indio= _dev, bool enable) result =3D inv_mpu6050_prepare_fifo(st, false); if (result) goto error_power_off; - pm_runtime_mark_last_busy(pdev); pm_runtime_put_autosuspend(pdev); } =20 diff --git a/drivers/iio/imu/kmx61.c b/drivers/iio/imu/kmx61.c index 55c82891e08c..42016d56c852 100644 --- a/drivers/iio/imu/kmx61.c +++ b/drivers/iio/imu/kmx61.c @@ -750,7 +750,6 @@ static int kmx61_set_power_state(struct kmx61_data *dat= a, bool on, u8 device) if (on) { ret =3D pm_runtime_resume_and_get(&data->client->dev); } else { - pm_runtime_mark_last_busy(&data->client->dev); ret =3D pm_runtime_put_autosuspend(&data->client->dev); } if (ret < 0) { --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 A42D22D542C; Fri, 4 Jul 2025 07:54:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615675; cv=none; b=dQ2TxWP0b1dIqNrX5oj9jdtEgpnW4jqD6+Wuh38nShjAK2oCPylKI1D+YgWTKG7lT/2QkYnoXJi3nLq+7chuFq+r30nt6ge7cEzgkpXTy0sHDLeB6G3+rjzBgKe8BunLMP7JphBF3nCqQTY/Y8wHFmcR17vEcVBqmSUKP4BJfOs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615675; c=relaxed/simple; bh=CRIWCLPCoDeia77/badXqEi5i8gzI/aN0BfcHkaARVU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Rv3Tx+5cGoDbfD0d7rf9nD32t9pbr2FN/KZyL9VKDFDH3siw5Y0FOoD9LwiNzA21LQ6aVeP/jiBylosGAQDXQ6ScUH7CJ1t3QN6v6saxA3BTH8NpzeLdGnIV15Xl8BXEtrMT8f+LBjGVsI8+SwZ3ASTXA1jzrAh4OY7Oa2tYFyY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=cCMjBQKd; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="cCMjBQKd" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615672; x=1783151672; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CRIWCLPCoDeia77/badXqEi5i8gzI/aN0BfcHkaARVU=; b=cCMjBQKdkd3z3ZYMmfxn3ChrHqXvlmp1uG+ssZK4J9xN+uxQZ0lzUJiF ea6zFzO+N92myD9s9xGdcPORe9N8/tly61xdel2jhcr9/Ocf/RWX80JnJ vbNNVQu7YB6kiT6DckHZcZDnfutQwInvncRfmCsyO9rh2S3JcvSvJBc6+ shpjNjY+t2vGGnBhiO8hzrpBWWlZI8AmO9L+Pj4PALJa7S48tMZygsojI mEMhvXlu4fdVnB0Iy8obo7TeFVptiWRzGBDTCvfLWQ6MM2ONVw1SAFHlm eI1i99idjDIe1fDoKE1d5O2N0F9rymr7VfI/xlTKVTE6xXMJsfVq2mowk A==; X-CSE-ConnectionGUID: 0fQALHxnRfCq8NWaZcAJIA== X-CSE-MsgGUID: FEMv23WnRumA2GC2GhzJgw== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494715" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494715" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:32 -0700 X-CSE-ConnectionGUID: 9JGs9zU8R3mlxCN1zcIBUg== X-CSE-MsgGUID: rPW2CgHGQ+Onfly1RQWb+A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924282" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:26 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id D826644433; Fri, 4 Jul 2025 10:54:24 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Subhajit Ghosh , Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Linus Walleij , Julien Stephan , Sakari Ailus , Waqar Hameed , Abhash Jha , chuguangqing , Shreeya Patel , Marek Vasut , Al Viro , Vasileios Amoiridis , Per-Daniel Olsson , Javier Carrasco Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 34/80] iio: light: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:24 +0300 Message-Id: <20250704075424.3219556-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Reviewed-by: Linus Walleij --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/iio/light/apds9306.c | 2 -- drivers/iio/light/apds9960.c | 1 - drivers/iio/light/bh1780.c | 1 - drivers/iio/light/gp2ap002.c | 2 -- drivers/iio/light/isl29028.c | 1 - drivers/iio/light/ltrf216a.c | 1 - drivers/iio/light/pa12203001.c | 1 - drivers/iio/light/rpr0521.c | 1 - drivers/iio/light/tsl2583.c | 1 - drivers/iio/light/tsl2591.c | 2 -- drivers/iio/light/us5182d.c | 1 - drivers/iio/light/vcnl4000.c | 1 - drivers/iio/light/vcnl4035.c | 1 - 13 files changed, 16 deletions(-) diff --git a/drivers/iio/light/apds9306.c b/drivers/iio/light/apds9306.c index f676da245aa7..5916cabd0755 100644 --- a/drivers/iio/light/apds9306.c +++ b/drivers/iio/light/apds9306.c @@ -537,7 +537,6 @@ static int apds9306_read_data(struct apds9306_data *dat= a, int *val, int reg) =20 *val =3D get_unaligned_le24(&buff); =20 - pm_runtime_mark_last_busy(data->dev); pm_runtime_put_autosuspend(data->dev); =20 return 0; @@ -1121,7 +1120,6 @@ static int apds9306_write_event_config(struct iio_dev= *indio_dev, if (ret) return ret; =20 - pm_runtime_mark_last_busy(data->dev); pm_runtime_put_autosuspend(data->dev); =20 return 0; diff --git a/drivers/iio/light/apds9960.c b/drivers/iio/light/apds9960.c index b92d0fce5aec..79b202c59a0f 100644 --- a/drivers/iio/light/apds9960.c +++ b/drivers/iio/light/apds9960.c @@ -495,7 +495,6 @@ static int apds9960_set_power_state(struct apds9960_dat= a *data, bool on) usleep_range(data->als_adc_int_us, APDS9960_MAX_INT_TIME_IN_US); } else { - pm_runtime_mark_last_busy(dev); ret =3D pm_runtime_put_autosuspend(dev); } =20 diff --git a/drivers/iio/light/bh1780.c b/drivers/iio/light/bh1780.c index c7c877d2fe67..5d3c6d5276ba 100644 --- a/drivers/iio/light/bh1780.c +++ b/drivers/iio/light/bh1780.c @@ -111,7 +111,6 @@ static int bh1780_read_raw(struct iio_dev *indio_dev, value =3D bh1780_read_word(bh1780, BH1780_REG_DLOW); if (value < 0) return value; - pm_runtime_mark_last_busy(&bh1780->client->dev); pm_runtime_put_autosuspend(&bh1780->client->dev); *val =3D value; =20 diff --git a/drivers/iio/light/gp2ap002.c b/drivers/iio/light/gp2ap002.c index 42859e5b1089..a0d8a58f2704 100644 --- a/drivers/iio/light/gp2ap002.c +++ b/drivers/iio/light/gp2ap002.c @@ -271,7 +271,6 @@ static int gp2ap002_read_raw(struct iio_dev *indio_dev, } =20 out: - pm_runtime_mark_last_busy(gp2ap002->dev); pm_runtime_put_autosuspend(gp2ap002->dev); =20 return ret; @@ -353,7 +352,6 @@ static int gp2ap002_write_event_config(struct iio_dev *= indio_dev, pm_runtime_get_sync(gp2ap002->dev); gp2ap002->enabled =3D true; } else { - pm_runtime_mark_last_busy(gp2ap002->dev); pm_runtime_put_autosuspend(gp2ap002->dev); gp2ap002->enabled =3D false; } diff --git a/drivers/iio/light/isl29028.c b/drivers/iio/light/isl29028.c index 0e4284823d44..5ff20d423def 100644 --- a/drivers/iio/light/isl29028.c +++ b/drivers/iio/light/isl29028.c @@ -341,7 +341,6 @@ static int isl29028_set_pm_runtime_busy(struct isl29028= _chip *chip, bool on) if (on) { ret =3D pm_runtime_resume_and_get(dev); } else { - pm_runtime_mark_last_busy(dev); ret =3D pm_runtime_put_autosuspend(dev); } =20 diff --git a/drivers/iio/light/ltrf216a.c b/drivers/iio/light/ltrf216a.c index 61f57a82b872..5f27f754fe1c 100644 --- a/drivers/iio/light/ltrf216a.c +++ b/drivers/iio/light/ltrf216a.c @@ -208,7 +208,6 @@ static int ltrf216a_set_power_state(struct ltrf216a_dat= a *data, bool on) return ret; } } else { - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); } =20 diff --git a/drivers/iio/light/pa12203001.c b/drivers/iio/light/pa12203001.c index 8885852bef22..93823421f42f 100644 --- a/drivers/iio/light/pa12203001.c +++ b/drivers/iio/light/pa12203001.c @@ -189,7 +189,6 @@ static int pa12203001_set_power_state(struct pa12203001= _data *data, bool on, ret =3D pm_runtime_resume_and_get(&data->client->dev); =20 } else { - pm_runtime_mark_last_busy(&data->client->dev); ret =3D pm_runtime_put_autosuspend(&data->client->dev); } =20 diff --git a/drivers/iio/light/rpr0521.c b/drivers/iio/light/rpr0521.c index c50183f07240..15e2cca22e4d 100644 --- a/drivers/iio/light/rpr0521.c +++ b/drivers/iio/light/rpr0521.c @@ -361,7 +361,6 @@ static int rpr0521_set_power_state(struct rpr0521_data = *data, bool on, if (on) { ret =3D pm_runtime_resume_and_get(&data->client->dev); } else { - pm_runtime_mark_last_busy(&data->client->dev); ret =3D pm_runtime_put_autosuspend(&data->client->dev); } if (ret < 0) { diff --git a/drivers/iio/light/tsl2583.c b/drivers/iio/light/tsl2583.c index fc3b0c4226be..d3a4923e5adc 100644 --- a/drivers/iio/light/tsl2583.c +++ b/drivers/iio/light/tsl2583.c @@ -646,7 +646,6 @@ static int tsl2583_set_pm_runtime_busy(struct tsl2583_c= hip *chip, bool on) if (on) { ret =3D pm_runtime_resume_and_get(&chip->client->dev); } else { - pm_runtime_mark_last_busy(&chip->client->dev); ret =3D pm_runtime_put_autosuspend(&chip->client->dev); } =20 diff --git a/drivers/iio/light/tsl2591.c b/drivers/iio/light/tsl2591.c index 08476f193a44..c5557867ea43 100644 --- a/drivers/iio/light/tsl2591.c +++ b/drivers/iio/light/tsl2591.c @@ -772,7 +772,6 @@ static int tsl2591_read_raw(struct iio_dev *indio_dev, err_unlock: mutex_unlock(&chip->als_mutex); =20 - pm_runtime_mark_last_busy(&client->dev); pm_runtime_put_autosuspend(&client->dev); =20 return ret; @@ -995,7 +994,6 @@ static int tsl2591_write_event_config(struct iio_dev *i= ndio_dev, pm_runtime_get_sync(&client->dev); } else if (!state && chip->events_enabled) { chip->events_enabled =3D false; - pm_runtime_mark_last_busy(&client->dev); pm_runtime_put_autosuspend(&client->dev); } =20 diff --git a/drivers/iio/light/us5182d.c b/drivers/iio/light/us5182d.c index 61a0957317a1..8f0f85e98f3a 100644 --- a/drivers/iio/light/us5182d.c +++ b/drivers/iio/light/us5182d.c @@ -369,7 +369,6 @@ static int us5182d_set_power_state(struct us5182d_data = *data, bool on) if (on) { ret =3D pm_runtime_resume_and_get(&data->client->dev); } else { - pm_runtime_mark_last_busy(&data->client->dev); ret =3D pm_runtime_put_autosuspend(&data->client->dev); } =20 diff --git a/drivers/iio/light/vcnl4000.c b/drivers/iio/light/vcnl4000.c index 90e7d4421abf..39e2cf20038a 100644 --- a/drivers/iio/light/vcnl4000.c +++ b/drivers/iio/light/vcnl4000.c @@ -581,7 +581,6 @@ static int vcnl4000_set_pm_runtime_state(struct vcnl400= 0_data *data, bool on) if (on) { ret =3D pm_runtime_resume_and_get(dev); } else { - pm_runtime_mark_last_busy(dev); ret =3D pm_runtime_put_autosuspend(dev); } =20 diff --git a/drivers/iio/light/vcnl4035.c b/drivers/iio/light/vcnl4035.c index 01bc99564f98..079fb49bf73b 100644 --- a/drivers/iio/light/vcnl4035.c +++ b/drivers/iio/light/vcnl4035.c @@ -147,7 +147,6 @@ static int vcnl4035_set_pm_runtime_state(struct vcnl403= 5_data *data, bool on) if (on) { ret =3D pm_runtime_resume_and_get(dev); } else { - pm_runtime_mark_last_busy(dev); ret =3D pm_runtime_put_autosuspend(dev); } =20 --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 129642DECC6; Fri, 4 Jul 2025 07:54:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615680; cv=none; b=HeKpA2t8mvhgzAHApBWJrQMcA1mpypCPTzGyL4ttnMEFgI0uCv4MpBao2q0H2SD8n8qgMuqp4tJLQxrrP3QWi9DwBZZHHmXVVOQWbSWCF126ukZwcuKloWqPJfYxjpbxVp9F6bZ/5eyvWHOBhluAHIlNnBDro2i0k/DxymudCo4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615680; c=relaxed/simple; bh=KXGcRkCRmz1Yw49o+1krTntMeAh4fibBDbmqTKlKnJc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=X2UiKrjX7pWYb1kWglgeWGwFQhZBjuWFP3Zosf7mhM+dO4iVGI3pwhSnJPEg4pe/81l5EsK/SAadHHqpeNQ7xn5P2oaaoU8OnbrI8FDK3knlo7cnRCEFGyUP8+ExAWWcI/frvfIt1cNzPgB+zRodUiq7vZX0TfNlqXyZnZ2u4UQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=mOhBYska; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mOhBYska" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615678; x=1783151678; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=KXGcRkCRmz1Yw49o+1krTntMeAh4fibBDbmqTKlKnJc=; b=mOhBYskac4u/u7hsom1f0v5Q7AsmI4pENvjpevX4wsJKvE6jgDyACe1l i9H9ShyDahabrar7OnWns3a+TAA8GtAD4imR1m9xYID8iS1tiqLz+9FWG 2IurM4fspzh7YoChthDhbvzw4pTltFvq0ko6PpcUEWt1fe5Qfnk5jzah9 KVZTRfnkIz7cNez+sPOgl25R5fb3CzgS/hTm5YibE9AXQQW9yDXgTjBed 3vAnzQhUA9aNmV+/gjHIxhC76XZxy/JXEtMd5XVT/2ZV/nwbbQ3qFrJEl DZvF74X/OECCmIGnaa8OpfUotTTY7xNiB0s2Iyt98VWzGyrNRGTaj0V56 A==; X-CSE-ConnectionGUID: VAPZc6yZRHaNzqJG5yHHLg== X-CSE-MsgGUID: 6QcJjU9CQDOCKn6tITgE9Q== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494767" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494767" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:33 -0700 X-CSE-ConnectionGUID: 0Yoxver4SRSwG28kmp1JFg== X-CSE-MsgGUID: HXkGrzJVS7uANh8xY2lUDA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924290" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:28 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 02D0B4445A; Fri, 4 Jul 2025 10:54:26 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Linus Walleij , Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Gerald Loacker , =?UTF-8?q?Barnab=C3=A1s=20Cz=C3=A9m=C3=A1n?= , Krzysztof Kozlowski , Sakari Ailus , Neil Armstrong , Waqar Hameed , Hans de Goede , Peter Zijlstra , Jakob Hauser , David Laight , Al Viro Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 35/80] iio: magnetometer: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:25 +0300 Message-Id: <20250704075425.3219648-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Reviewed-by: Linus Walleij --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/iio/magnetometer/ak8974.c | 2 -- drivers/iio/magnetometer/ak8975.c | 1 - drivers/iio/magnetometer/als31300.c | 2 -- drivers/iio/magnetometer/bmc150_magn.c | 1 - drivers/iio/magnetometer/tmag5273.c | 2 -- drivers/iio/magnetometer/yamaha-yas530.c | 2 -- 6 files changed, 10 deletions(-) diff --git a/drivers/iio/magnetometer/ak8974.c b/drivers/iio/magnetometer/a= k8974.c index 947fe8a475f2..68ece700c7ce 100644 --- a/drivers/iio/magnetometer/ak8974.c +++ b/drivers/iio/magnetometer/ak8974.c @@ -583,7 +583,6 @@ static int ak8974_measure_channel(struct ak8974 *ak8974= , unsigned long address, *val =3D (s16)le16_to_cpu(hw_values[address]); out_unlock: mutex_unlock(&ak8974->lock); - pm_runtime_mark_last_busy(&ak8974->i2c->dev); pm_runtime_put_autosuspend(&ak8974->i2c->dev); =20 return ret; @@ -678,7 +677,6 @@ static void ak8974_fill_buffer(struct iio_dev *indio_de= v) =20 out_unlock: mutex_unlock(&ak8974->lock); - pm_runtime_mark_last_busy(&ak8974->i2c->dev); pm_runtime_put_autosuspend(&ak8974->i2c->dev); } =20 diff --git a/drivers/iio/magnetometer/ak8975.c b/drivers/iio/magnetometer/a= k8975.c index a1e92b2abffd..3fd0171e5d69 100644 --- a/drivers/iio/magnetometer/ak8975.c +++ b/drivers/iio/magnetometer/ak8975.c @@ -775,7 +775,6 @@ static int ak8975_read_axis(struct iio_dev *indio_dev, = int index, int *val) =20 mutex_unlock(&data->lock); =20 - pm_runtime_mark_last_busy(&data->client->dev); pm_runtime_put_autosuspend(&data->client->dev); =20 /* Swap bytes and convert to valid range. */ diff --git a/drivers/iio/magnetometer/als31300.c b/drivers/iio/magnetometer= /als31300.c index f72af829715f..03d060995ba6 100644 --- a/drivers/iio/magnetometer/als31300.c +++ b/drivers/iio/magnetometer/als31300.c @@ -140,7 +140,6 @@ static int als31300_get_measure(struct als31300_data *d= ata, *z =3D ALS31300_DATA_Z_GET(buf); =20 out: - pm_runtime_mark_last_busy(data->dev); pm_runtime_put_autosuspend(data->dev); =20 return ret; @@ -401,7 +400,6 @@ static int als31300_probe(struct i2c_client *i2c) pm_runtime_set_autosuspend_delay(dev, 200); pm_runtime_use_autosuspend(dev); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 ret =3D devm_iio_device_register(dev, indio_dev); diff --git a/drivers/iio/magnetometer/bmc150_magn.c b/drivers/iio/magnetome= ter/bmc150_magn.c index 761daead5ada..53d860e640a9 100644 --- a/drivers/iio/magnetometer/bmc150_magn.c +++ b/drivers/iio/magnetometer/bmc150_magn.c @@ -263,7 +263,6 @@ static int bmc150_magn_set_power_state(struct bmc150_ma= gn_data *data, bool on) if (on) { ret =3D pm_runtime_resume_and_get(data->dev); } else { - pm_runtime_mark_last_busy(data->dev); ret =3D pm_runtime_put_autosuspend(data->dev); } =20 diff --git a/drivers/iio/magnetometer/tmag5273.c b/drivers/iio/magnetometer= /tmag5273.c index 2ca5c26f0091..f9ef501249e3 100644 --- a/drivers/iio/magnetometer/tmag5273.c +++ b/drivers/iio/magnetometer/tmag5273.c @@ -295,7 +295,6 @@ static int tmag5273_read_raw(struct iio_dev *indio_dev, =20 ret =3D tmag5273_get_measure(data, &t, &x, &y, &z, &angle, &magnitude); =20 - pm_runtime_mark_last_busy(data->dev); pm_runtime_put_autosuspend(data->dev); =20 if (ret) @@ -668,7 +667,6 @@ static int tmag5273_probe(struct i2c_client *i2c) indio_dev->channels =3D tmag5273_channels; indio_dev->num_channels =3D ARRAY_SIZE(tmag5273_channels); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 ret =3D devm_iio_device_register(dev, indio_dev); diff --git a/drivers/iio/magnetometer/yamaha-yas530.c b/drivers/iio/magneto= meter/yamaha-yas530.c index 340607111d9a..d49e37edcbed 100644 --- a/drivers/iio/magnetometer/yamaha-yas530.c +++ b/drivers/iio/magnetometer/yamaha-yas530.c @@ -623,7 +623,6 @@ static int yas5xx_read_raw(struct iio_dev *indio_dev, case IIO_CHAN_INFO_RAW: pm_runtime_get_sync(yas5xx->dev); ret =3D ci->get_measure(yas5xx, &t, &x, &y, &z); - pm_runtime_mark_last_busy(yas5xx->dev); pm_runtime_put_autosuspend(yas5xx->dev); if (ret) return ret; @@ -664,7 +663,6 @@ static void yas5xx_fill_buffer(struct iio_dev *indio_de= v) =20 pm_runtime_get_sync(yas5xx->dev); ret =3D ci->get_measure(yas5xx, &t, &x, &y, &z); - pm_runtime_mark_last_busy(yas5xx->dev); pm_runtime_put_autosuspend(yas5xx->dev); if (ret) { dev_err(yas5xx->dev, "error refilling buffer\n"); --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 B6E612DFA3F; Fri, 4 Jul 2025 07:54:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615678; cv=none; b=ihQ3vcdPtPbuv3YnAzJjPhApKBU5+Bp3aI2x1lGjAab/kwI0j9YT1pzq4lrQ2gtBCFUQsndox2dcxX7b7w1lNiSj34muHp8pUSr3WwBIxc20vjj+ixYc5e2x9AzEJLa1J1zdTWwvobPqNqq6/M2lRjQthvteVnMte/AjH6L5Lz8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615678; c=relaxed/simple; bh=iZ8uhSvPympr52JRHUIloT5pt7V7PTIo8Iu2f3mqroc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=RsRdOrgYE7YcIYbhf4BY1q4HnoSYdem6MQe1uRGjWfMqlmd1+tQjoj494HHkf4Cxo3VexS/BlZwsxxldX2DLPM42QiZ+H8U5jGfeEU202walF21F+AwJogGItyYni5Zh6AlVC86oQQmLM4GYs2XCu+ei9U5sE2SWd9zSyxtg1bM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=U4MChP7r; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="U4MChP7r" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615676; x=1783151676; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=iZ8uhSvPympr52JRHUIloT5pt7V7PTIo8Iu2f3mqroc=; b=U4MChP7ryMSj7mfBm1LS09wE196w5SlEnXrgeHaTi8qCcX90q+z3k7zh kTUxNYxjwpJD0ECz2fdLYvcl40KI/FUKLaDGre2tQSndijBYukez1OAUp p44yfRu13XVcdyjOyYhN27i/7SZR9oeWI0Hsr6wPrVt0fKRlfeO1L3uWu r5LaVLbN8m9ui8WmYjHFEurVCzw2jfHf41Q3TED/rQNsy6iS5FwkazWBX GPhsiSgDzLf4ig+41OSDQRF6po0MQxsMCSmQTe3s8H18zUUPO13UE8Wg7 krpn958EYie0nGys2WR2ujeuPUkYC6216QGBxXkTBtQdLR4t5xrNlX7zx A==; X-CSE-ConnectionGUID: fw2XA+ZxQkae+SMAmmvUkw== X-CSE-MsgGUID: YQOFJD05Qmeh2jVFlmG1Xg== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494740" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494740" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:32 -0700 X-CSE-ConnectionGUID: Xx2vY2G3RGeFt+YJuPVp5w== X-CSE-MsgGUID: fkSRgt++S62xRvHsdma/qw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924293" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:28 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id A6FA044910; Fri, 4 Jul 2025 10:54:26 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Vasileios Amoiridis , Sakari Ailus , Marcelo Schmitt , Jean-Baptiste Maneyrol , Peter Zijlstra , Greg KH , Matti Vaittinen , Al Viro , Javier Carrasco Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 36/80] iio: pressure: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:26 +0300 Message-Id: <20250704075426.3219792-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/iio/pressure/bmp280-core.c | 5 ----- drivers/iio/pressure/icp10100.c | 1 - drivers/iio/pressure/mpl115.c | 2 -- drivers/iio/pressure/zpa2326.c | 2 -- 4 files changed, 10 deletions(-) diff --git a/drivers/iio/pressure/bmp280-core.c b/drivers/iio/pressure/bmp2= 80-core.c index 74505c9ec1a0..b66f3b905055 100644 --- a/drivers/iio/pressure/bmp280-core.c +++ b/drivers/iio/pressure/bmp280-core.c @@ -752,7 +752,6 @@ static int bmp280_read_raw(struct iio_dev *indio_dev, =20 pm_runtime_get_sync(data->dev); ret =3D bmp280_read_raw_impl(indio_dev, chan, val, val2, mask); - pm_runtime_mark_last_busy(data->dev); pm_runtime_put_autosuspend(data->dev); =20 return ret; @@ -927,7 +926,6 @@ static int bmp280_write_raw(struct iio_dev *indio_dev, =20 pm_runtime_get_sync(data->dev); ret =3D bmp280_write_raw_impl(indio_dev, chan, val, val2, mask); - pm_runtime_mark_last_busy(data->dev); pm_runtime_put_autosuspend(data->dev); =20 return ret; @@ -2255,7 +2253,6 @@ static int bmp580_nvmem_read(void *priv, unsigned int= offset, void *val, =20 pm_runtime_get_sync(data->dev); ret =3D bmp580_nvmem_read_impl(priv, offset, val, bytes); - pm_runtime_mark_last_busy(data->dev); pm_runtime_put_autosuspend(data->dev); =20 return ret; @@ -2330,7 +2327,6 @@ static int bmp580_nvmem_write(void *priv, unsigned in= t offset, void *val, =20 pm_runtime_get_sync(data->dev); ret =3D bmp580_nvmem_write_impl(priv, offset, val, bytes); - pm_runtime_mark_last_busy(data->dev); pm_runtime_put_autosuspend(data->dev); =20 return ret; @@ -3120,7 +3116,6 @@ static int bmp280_buffer_postdisable(struct iio_dev *= indio_dev) { struct bmp280_data *data =3D iio_priv(indio_dev); =20 - pm_runtime_mark_last_busy(data->dev); pm_runtime_put_autosuspend(data->dev); =20 return 0; diff --git a/drivers/iio/pressure/icp10100.c b/drivers/iio/pressure/icp1010= 0.c index 1951c1cc84cf..3d83d0098a57 100644 --- a/drivers/iio/pressure/icp10100.c +++ b/drivers/iio/pressure/icp10100.c @@ -265,7 +265,6 @@ static int icp10100_get_measures(struct icp10100_state = *st, (be16_to_cpu(measures[1]) >> 8); *temperature =3D be16_to_cpu(measures[2]); =20 - pm_runtime_mark_last_busy(&st->client->dev); error_measure: pm_runtime_put_autosuspend(&st->client->dev); return ret; diff --git a/drivers/iio/pressure/mpl115.c b/drivers/iio/pressure/mpl115.c index 71beb28b7f2c..830a5065c008 100644 --- a/drivers/iio/pressure/mpl115.c +++ b/drivers/iio/pressure/mpl115.c @@ -108,7 +108,6 @@ static int mpl115_read_raw(struct iio_dev *indio_dev, ret =3D mpl115_comp_pressure(data, val, val2); if (ret < 0) return ret; - pm_runtime_mark_last_busy(data->dev); pm_runtime_put_autosuspend(data->dev); =20 return IIO_VAL_INT_PLUS_MICRO; @@ -118,7 +117,6 @@ static int mpl115_read_raw(struct iio_dev *indio_dev, ret =3D mpl115_read_temp(data); if (ret < 0) return ret; - pm_runtime_mark_last_busy(data->dev); pm_runtime_put_autosuspend(data->dev); *val =3D ret >> 6; =20 diff --git a/drivers/iio/pressure/zpa2326.c b/drivers/iio/pressure/zpa2326.c index 6eef37c0952d..4923a558a26a 100644 --- a/drivers/iio/pressure/zpa2326.c +++ b/drivers/iio/pressure/zpa2326.c @@ -697,7 +697,6 @@ static void zpa2326_suspend(struct iio_dev *indio_dev) =20 zpa2326_sleep(indio_dev); =20 - pm_runtime_mark_last_busy(parent); pm_runtime_put_autosuspend(parent); } =20 @@ -708,7 +707,6 @@ static void zpa2326_init_runtime(struct device *parent) pm_runtime_enable(parent); pm_runtime_set_autosuspend_delay(parent, 1000); pm_runtime_use_autosuspend(parent); - pm_runtime_mark_last_busy(parent); pm_runtime_put_autosuspend(parent); } =20 --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 A299B2DAFDF; Fri, 4 Jul 2025 07:54:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615676; cv=none; b=KgDInYj506zo60D9U93ICLfUqN22z79rXThDC1TI8a/qHqTh6gHakMdl5PazusFGrMHpmXl2weQqEV1zcKoc9UFqK3lvTF7aHj74Zu4CaVCTEVONNaJQ+C9PILqheH+EII41Sjqcac6IlSy6XW9QHRnzUet3Jlkyps6IWoEUByo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615676; c=relaxed/simple; bh=feFnRJruPs12PNpvwdA5mfXFpw0U2Z/9ohGffVvSXnk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=HytyEdBl+i9brHjshg8xLcFdiNanYlv3WRVLSrzAKnBUTNUTNvst34Km3yfmb/KxSGroVDnBrC78hV+b8cKzw9b/er2bl0VsirRsVCJEfGPWgpQGa0CoyOjMFYwRoqtdKk6XrImEcotAB9jq9S4LzbyrQHmUUke6Tk5OOBsaUJ8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Rg2WGBw0; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Rg2WGBw0" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615674; x=1783151674; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=feFnRJruPs12PNpvwdA5mfXFpw0U2Z/9ohGffVvSXnk=; b=Rg2WGBw0B2p/ZPnzH5OdHAITXnovnqisW/SfCRHa6GfApS+NQNs/u29V FmjUICqjfClo0KDuOk90jaIgDzNVVOSRbJRRaCX9odxfa0knvcA+pmzMi b8auLieftcBEDAP+0afULWTRY8exLghIHUKzSL3+r91XG71Y8bchkUeub 2wNH+vDvB7FBHhJqckkwe0yKsTcrsJAGceTgKX07tT2bP0ZRNLZSl/e0x 5Hmby+qVAWZEPyOUUBTdx0LhivfKvWMqIoo3YMZ+olahU3uU6Eivb9toK iby0boCa7nJ+p3SPBcuKjdaTNh+0xDEDJ8R4ANVpWNpxZHXzL1NFoHJ3x A==; X-CSE-ConnectionGUID: IBhLQrroTy+YYze8GnLxdQ== X-CSE-MsgGUID: Gvnx9dqoRNSCjLas4ql78Q== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494726" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494726" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:32 -0700 X-CSE-ConnectionGUID: DK5QhGGXTvGZ9wYi7rJpVQ== X-CSE-MsgGUID: mqKhOVBnTpKYZlr9BhokPw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924304" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:29 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 8698E447EB; Fri, 4 Jul 2025 10:54:27 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko , Andreas Klinger , Marcelo Schmitt , Sakari Ailus Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 37/80] iio: proximity: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:27 +0300 Message-Id: <20250704075427.3219858-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/iio/proximity/pulsedlight-lidar-lite-v2.c | 1 - drivers/iio/proximity/srf04.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/iio/proximity/pulsedlight-lidar-lite-v2.c b/drivers/ii= o/proximity/pulsedlight-lidar-lite-v2.c index 1deaf70e92ce..d53a596128f5 100644 --- a/drivers/iio/proximity/pulsedlight-lidar-lite-v2.c +++ b/drivers/iio/proximity/pulsedlight-lidar-lite-v2.c @@ -191,7 +191,6 @@ static int lidar_get_measurement(struct lidar_data *dat= a, u16 *reg) } ret =3D -EIO; } - pm_runtime_mark_last_busy(&client->dev); pm_runtime_put_autosuspend(&client->dev); =20 return ret; diff --git a/drivers/iio/proximity/srf04.c b/drivers/iio/proximity/srf04.c index b059bac1078b..f2e2c638a2b6 100644 --- a/drivers/iio/proximity/srf04.c +++ b/drivers/iio/proximity/srf04.c @@ -118,7 +118,6 @@ static int srf04_read(struct srf04_data *data) gpiod_set_value(data->gpiod_trig, 0); =20 if (data->gpiod_power) { - pm_runtime_mark_last_busy(data->dev); pm_runtime_put_autosuspend(data->dev); } =20 --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 452A12DE213; Fri, 4 Jul 2025 07:54:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615677; cv=none; b=oPZwT00JNY/myyBKkGIyVH50oB/Bu/G7au/NzTrDZtn6bE+iaIonlHDagY+83UBYn06YSIcGOp1A7CtYrx3eRz0Fe94Bc6SZdE/1N2XjU2Qsl5Mvif3Yg+hG+AgbRoZhN8m2iHk9NhfP9GF/0bqd1QM+/Y2GGMDZlEosF8r/NHg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615677; c=relaxed/simple; bh=U4cRFiXhV5fuNveZFy2qth9WbtB5GmycvcJ19tMoPUA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=RDUYFx/fiLVeiViOC70F9P5lH2NjDnnDBgH/2JQR4VLKtTnQ21+VrjAGLp+HtQQR5UIhVKeuh6EQ/Q16+O93oUMn8XCEvkpFWVLmfH39MBS6x34mCN4H39Z41OybjYFKJb+HODas1Mul6SWgX4n0bbF5rfc7gQntlL/3YvkrjsM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=dkF+MixR; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="dkF+MixR" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615674; x=1783151674; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=U4cRFiXhV5fuNveZFy2qth9WbtB5GmycvcJ19tMoPUA=; b=dkF+MixRkAZeCq9C4/xBIomZkwGF6IRv+nOvpLqyomHd+7mlzOV9JwbV 6AsQTN/oXNucaT9Tr0Q1U+SeeBes/79Rc3fjN5PgXIDt1Hx7lTkAHAKsx O0h+AVeKvIgRMarRwZ6EyUWfTwYi1rimf6NT9A2sEfbJkvKt7SDdKfoSk BV2V/xOE0wBV+bgbLMCAxWKdKS79v5aCC96SbUz8+aAzEHn9veZeZeSjG 0dLdiKi8t5Iu3NZ91XCFUYwsLvqWjlrlBOHVCcka2GX/ONWgsBlXfx2zM i1/eiJ9i3KEw6zJd95yUTvc/nrMSM83CuMlNqfHupJLs3mFnvz4Bt+50W A==; X-CSE-ConnectionGUID: qEUpBuGlR4aSh6dFwNV5+Q== X-CSE-MsgGUID: jkIF7p0RSaqpVYkNOVw5dw== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494733" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494733" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:32 -0700 X-CSE-ConnectionGUID: VStemBfWTXuxdhYmeQqU6A== X-CSE-MsgGUID: cM7qXbBkRyyVW1p24x1X0Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924307" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:30 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 4B7A644394; Fri, 4 Jul 2025 10:54:28 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Crt Mori , Jonathan Cameron , David Lechner , =?UTF-8?q?Nuno=20S=C3=A1?= , Andy Shevchenko Cc: linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 38/80] iio: temperature: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:28 +0300 Message-Id: <20250704075428.3219924-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Acked-by: Crt Mori --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/iio/temperature/mlx90614.c | 1 - drivers/iio/temperature/mlx90632.c | 1 - drivers/iio/temperature/mlx90635.c | 1 - 3 files changed, 3 deletions(-) diff --git a/drivers/iio/temperature/mlx90614.c b/drivers/iio/temperature/m= lx90614.c index 740018d4b3df..8a44a00bfd5e 100644 --- a/drivers/iio/temperature/mlx90614.c +++ b/drivers/iio/temperature/mlx90614.c @@ -225,7 +225,6 @@ static void mlx90614_power_put(struct mlx90614_data *da= ta) if (!data->wakeup_gpio) return; =20 - pm_runtime_mark_last_busy(&data->client->dev); pm_runtime_put_autosuspend(&data->client->dev); } #else diff --git a/drivers/iio/temperature/mlx90632.c b/drivers/iio/temperature/m= lx90632.c index ae4ea587e7f9..bf689f6143f3 100644 --- a/drivers/iio/temperature/mlx90632.c +++ b/drivers/iio/temperature/mlx90632.c @@ -1043,7 +1043,6 @@ static int mlx90632_read_raw(struct iio_dev *indio_de= v, } =20 mlx90632_read_raw_pm: - pm_runtime_mark_last_busy(&data->client->dev); pm_runtime_put_autosuspend(&data->client->dev); return ret; } diff --git a/drivers/iio/temperature/mlx90635.c b/drivers/iio/temperature/m= lx90635.c index f7f88498ba0e..80d0eb7d2294 100644 --- a/drivers/iio/temperature/mlx90635.c +++ b/drivers/iio/temperature/mlx90635.c @@ -749,7 +749,6 @@ static int mlx90635_read_raw(struct iio_dev *indio_dev, } =20 mlx90635_read_raw_pm: - pm_runtime_mark_last_busy(&data->client->dev); pm_runtime_put_autosuspend(&data->client->dev); return ret; } --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 1F0562DECD2; Fri, 4 Jul 2025 07:54:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615677; cv=none; b=umc0wk6Fu429oBRwPPKE79z37xkxh91qTk9hKIe1/V8rmD2po23BqBTmno044mvM8vmcH7DMxMXP7Qq0Z/yjanOXNGGYQE0G0XY5rIRPpDTr8v0Bcmm9RUnyL1tuKKc8i5F7mzeAzEDjjgVqn44Ce1pTYAeFkUgAkRx6aXx3G3s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615677; c=relaxed/simple; bh=CTv6iPrW9uEDcgFRXY04j1SNCfKTPuyZUDjMaqvzVHQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Fn5p8Qcycs972XceSRSN0l7CV5MdvU6SXta1EteUBCxI88WLVw0OUckDvmDD1FShkuDcarK5gU0JVsC2f7r76nthB0XVF2hVWi1yXq30lveKrJnQnMP61TO37y2LSCyaFdScBubEkQBDV58N8+rsXwN/lZVwbmsq2Ks6AN+dgZQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=gv+yZlg7; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="gv+yZlg7" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615675; x=1783151675; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CTv6iPrW9uEDcgFRXY04j1SNCfKTPuyZUDjMaqvzVHQ=; b=gv+yZlg76T+RcJKkphE3yhwgP4mV0iX4SdRx1bcVLmHkTEIdVgALpBEZ ViBTU9ZVJj0EGsIorlngm5HZrubblvYGBwWE6Lphusxht/QmQ/1Icseew Y9/7k4RROjVxs+raJoE1fH30dT5fElp3xJPQAF+8ErDdEn+gmKzWx6sIG RzCBUSKgP19hFUvYdV0HlkekqLLVp2OWj4jI0ZMaesLmQYLx1yvZbJeix mEth+9LdwTTLpPrS2mz6ijVN08u8YL8zeJmbNTkkgkDELhRMf6d+1g0lj XswZ1nzukylWUzk5BF/y+Sw9UWK4PQ35ZyPoQABL9QQiHjH2vKmyzAqII g==; X-CSE-ConnectionGUID: jW/4i/JuRVeACO1r7Bh57w== X-CSE-MsgGUID: gdiPxzyRTOKybDjo7BZ9Jg== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494737" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494737" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:32 -0700 X-CSE-ConnectionGUID: MQBkuX0FQCiq4o3yIm1YVg== X-CSE-MsgGUID: 7muF5evQTH+hCpqXfufQIQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924314" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:30 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id E8B9144419; Fri, 4 Jul 2025 10:54:28 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Dmitry Torokhov , Sakari Ailus , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 39/80] Input: omap4-keypad: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:28 +0300 Message-Id: <20250704075428.3219960-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/input/keyboard/omap4-keypad.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/input/keyboard/omap4-keypad.c b/drivers/input/keyboard= /omap4-keypad.c index bffe89c0717a..e783244d0c91 100644 --- a/drivers/input/keyboard/omap4-keypad.c +++ b/drivers/input/keyboard/omap4-keypad.c @@ -193,7 +193,6 @@ static irqreturn_t omap4_keypad_irq_thread_fn(int irq, = void *dev_id) kbd_write_irqreg(keypad_data, OMAP4_KBD_IRQSTATUS, kbd_read_irqreg(keypad_data, OMAP4_KBD_IRQSTATUS)); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return IRQ_HANDLED; @@ -231,7 +230,6 @@ static int omap4_keypad_open(struct input_dev *input) enable_irq(keypad_data->irq); =20 out: - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return error; @@ -265,7 +263,6 @@ static void omap4_keypad_close(struct input_dev *input) enable_irq(keypad_data->irq); clk_disable_unprepare(keypad_data->fck); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); } =20 @@ -404,7 +401,6 @@ static int omap4_keypad_probe(struct platform_device *p= dev) omap4_keypad_stop(keypad_data); } =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); if (error) return error; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.9]) (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 C5F122E0B75; Fri, 4 Jul 2025 07:54:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.9 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615680; cv=none; b=cudSwm2VKsMtgc51julEnW4Ry4vaOFx0dvP+xTdSG5LPOgPtMkJSoFbL2zsJoMmGlUnv+9jVcfAMA28pV7qOmVdQFcr0rXdE2negwcyB77p3U9d4PMBCrcKTHxqmbILlgiDKWVVlo2Gm6RwJyp2CcyrIBrDLk/2eXA7KicFSpbY= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615680; c=relaxed/simple; bh=wB79eH98fNbh61qiXKAUKjCvjkalYAl1YFc1JZjSyL4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=aEpz1hpw2OOzTSXCLPZDy7jBIuXPXUKclGef3mQ3FOWcFhY7uSJPLpBnRPzgJ2nivCNez5q2OSsAocLn1zhhjSGuIw5Gy8PzGFR44QjjVFEl3WTplkiZLy4j/YmmyNTXfcQ36CgxxuW8bFOK39zaU2h7hfxYCFV+IqTPdOrhz1k= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=LDz4zJtX; arc=none smtp.client-ip=198.175.65.9 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="LDz4zJtX" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615678; x=1783151678; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=wB79eH98fNbh61qiXKAUKjCvjkalYAl1YFc1JZjSyL4=; b=LDz4zJtXxHcohqnrymzVQTz5BGdmH0WySIctNQmxWgHiJTi0JN9NLA6T Jle/AGVnIA0kiqLlkOkoZ82ZJMttvcUdPq8PqTF0NMvv+blNhxO6IIAqe i82Y2+Wi1NMV5udl5ri+8+wQpohfjFOnza8gKpMQmZwYS/cxUH36n+eD2 vi9FETiiqqXe6dFfAMqjgHGYcy/1vPGEDQqWOdoaE1j1oKrwbh/CaoRSZ DynBZrJ6AdDha9caMf4PBzt8sCDSzW+gCff6P/hPkw42Xb6MQCzW2Djmo jHxCxPTtszZEK5fevq3EXlWONoGTqcXMM6v9HNy5DxGsWNCwvei4LQMek A==; X-CSE-ConnectionGUID: 5SOIEvK0QHKf9wSAU4565Q== X-CSE-MsgGUID: 64RwAvUiSiuaiaDh3JLuKw== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="76494789" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="76494789" Received: from orviesa003.jf.intel.com ([10.64.159.143]) by orvoesa101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:34 -0700 X-CSE-ConnectionGUID: 6mn5JHY1Qs6igO/wqvoNgA== X-CSE-MsgGUID: iZDOe7kQS/yVZ5I/Q21eDw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158924322" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by ORVIESA003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:31 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 0227944424; Fri, 4 Jul 2025 10:54:30 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: James Ogletree , Fred Treven , Ben Bright , Dmitry Torokhov Cc: patches@opensource.cirrus.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 40/80] Input: cs40l50: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:29 +0300 Message-Id: <20250704075429.3220022-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/input/misc/cs40l50-vibra.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/input/misc/cs40l50-vibra.c b/drivers/input/misc/cs40l5= 0-vibra.c index dce3b0ec8cf3..c651a84a6335 100644 --- a/drivers/input/misc/cs40l50-vibra.c +++ b/drivers/input/misc/cs40l50-vibra.c @@ -306,7 +306,6 @@ static void cs40l50_add_worker(struct work_struct *work) list_add(&effect->list, &vib->effect_head); } err_pm: - pm_runtime_mark_last_busy(vib->dev); pm_runtime_put_autosuspend(vib->dev); err_exit: work_data->error =3D error; @@ -366,7 +365,6 @@ static void cs40l50_start_worker(struct work_struct *wo= rk) dev_err(vib->dev, "Effect to play not found\n"); } =20 - pm_runtime_mark_last_busy(vib->dev); pm_runtime_put_autosuspend(vib->dev); err_free: kfree(work_data); @@ -382,7 +380,6 @@ static void cs40l50_stop_worker(struct work_struct *wor= k) =20 vib->dsp.write(vib->dev, vib->regmap, vib->dsp.stop_cmd); =20 - pm_runtime_mark_last_busy(vib->dev); pm_runtime_put_autosuspend(vib->dev); =20 kfree(work_data); @@ -454,7 +451,6 @@ static void cs40l50_erase_worker(struct work_struct *wo= rk) list_del(&erase_effect->list); kfree(erase_effect); err_pm: - pm_runtime_mark_last_busy(vib->dev); pm_runtime_put_autosuspend(vib->dev); err_exit: work_data->error =3D error; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 538D42EBDC1; Fri, 4 Jul 2025 07:54:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615692; cv=none; b=pNk/pkC2KsS1s52WLG7tVoX5Pf5g53Up04uYnweBq7zVYfhiQ4rVkk++nGQGjhhKOGEqm30/UISdlEI7+QY/GsAm+rDnh/HrtcSwSsTXCb9iAa27+4ssFprjhVBWZjwBN6pYBONAaNDkQ4Ur60gSzWS9H5r8xRldoFUfmDqfj9Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615692; c=relaxed/simple; bh=sO6NakXwDu0K/cK9Qz+EMT/D/FzRrxsyqLxgQVVcaxM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=ZdnnN2KRr6cTGQen8Q7wU6vwNgDuUpgTHv/dBxt0V8HvtLQ8kqQSkoOV5ASM7bLfaZfUtvWZgEuhLfPmTzhAfk6mcaiqBZvhsYLzWxbAVc7npDqFk4K+ZgC++KZmDfX5COKwQhmzXBUefWD8fk6QREp7COCpMX7Jaxf2jr4+YPg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=XUC+BJWm; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="XUC+BJWm" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615689; x=1783151689; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=sO6NakXwDu0K/cK9Qz+EMT/D/FzRrxsyqLxgQVVcaxM=; b=XUC+BJWmu/7AKaJbRQso94Euo/m6/3o0GPqfanuA+MhokjGC22qANK4g eUdN605cwQnIlf1z/5YM9le/9+syNCItT2EldoZROrU3n46TJMEyRW/1L GqTWkMeU0JaIKXzlYDSzEDRFI53/e/Li4dwRygG0cM7z3MBiCfS0L/iTO om3fgvB1EXJMcV3OAcZpHONs5AIHw2HitJ9NIOkTxdqt/r9cwowTr6Kd4 kMCDgDEITPDigpSvDFDFde4lgve7WHTBB3dIYFSc/w572MoLCmlLoBslI qfaPlJIa4h532zzhJKYeNhHNVLSPZuZvFdxtztcnGDfvfpFk3s6u8Hd6x w==; X-CSE-ConnectionGUID: Q0wAJTggQEasWUMTvFC+Ag== X-CSE-MsgGUID: mXv1AOIbQxeUZAylvQdXqw== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194191" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194191" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:46 -0700 X-CSE-ConnectionGUID: lgngncNtRbWhy2DGelkOeQ== X-CSE-MsgGUID: DXYVdwrXQ7mkKCchIrWXzw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616552" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:33 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id A090744843; Fri, 4 Jul 2025 10:54:31 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Tommaso Merciai , Martin Hecht , Mauro Carvalho Chehab , Sakari Ailus , Sebastian Reichel , Alain Volmat , Dave Stevenson , Kieran Bingham , Umang Jain , Manivannan Sadhasivam , Laurent Pinchart , Michael Riesch , Mikhail Rudenko , Steve Longerbeam , Jacopo Mondi , Nicholas Roth , Benjamin Mugnier , Sylvain Petinot , Paul Elder , Matt Ranostay , Nas Chung , Jackson Lee , Dmitry Osipenko , Thierry Reding , Jonathan Hunter , Vikash Garodia , Dikshita Agarwal , Abhinav Kumar , "Bryan O'Donoghue" , Raspberry Pi Kernel Maintenance , Florian Fainelli , Broadcom internal kernel review list , Nicolas Dufresne , Benjamin Gaignard , Philipp Zabel , Sean Young , Hans Verkuil , Matthias Fend , Marco Felsch , Tomi Valkeinen , Ricardo Ribalda Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org Subject: [PATCH 41/80] media: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:31 +0300 Message-Id: <20250704075431.3220262-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Acked-by: Dave Stevenson Acked-by: Thierry Reding Acked-by: Tommaso Merciai Reviewed-by: Benjamin Gaignard Reviewed-by: Dikshita Agarwal Reviewed-by: Laurent Pinchart Reviewed-by: Sean Young --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/media/i2c/alvium-csi2.c | 1 - drivers/media/i2c/ccs/ccs-core.c | 4 ---- drivers/media/i2c/dw9768.c | 1 - drivers/media/i2c/gc0308.c | 3 --- drivers/media/i2c/gc2145.c | 3 --- drivers/media/i2c/imx219.c | 2 -- drivers/media/i2c/imx283.c | 3 --- drivers/media/i2c/imx290.c | 3 --- drivers/media/i2c/imx296.c | 1 - drivers/media/i2c/imx415.c | 1 - drivers/media/i2c/mt9m114.c | 6 ------ drivers/media/i2c/ov4689.c | 3 --- drivers/media/i2c/ov5640.c | 4 ---- drivers/media/i2c/ov5645.c | 3 --- drivers/media/i2c/ov64a40.c | 4 ---- drivers/media/i2c/ov8858.c | 2 -- drivers/media/i2c/st-mipid02.c | 2 -- drivers/media/i2c/tc358746.c | 5 ----- drivers/media/i2c/thp7312.c | 4 ---- drivers/media/i2c/vd55g1.c | 4 ---- drivers/media/i2c/vd56g3.c | 4 ---- drivers/media/i2c/video-i2c.c | 4 ---- drivers/media/platform/chips-media/wave5/wave5-vpu-dec.c | 4 ---- drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c | 5 ----- drivers/media/platform/nvidia/tegra-vde/h264.c | 2 -- drivers/media/platform/qcom/iris/iris_hfi_queue.c | 1 - drivers/media/platform/raspberrypi/pisp_be/pisp_be.c | 2 -- drivers/media/platform/verisilicon/hantro_drv.c | 1 - drivers/media/rc/gpio-ir-recv.c | 1 - 29 files changed, 83 deletions(-) diff --git a/drivers/media/i2c/alvium-csi2.c b/drivers/media/i2c/alvium-csi= 2.c index 05b708bd0a64..1f088acecf36 100644 --- a/drivers/media/i2c/alvium-csi2.c +++ b/drivers/media/i2c/alvium-csi2.c @@ -1841,7 +1841,6 @@ static int alvium_s_stream(struct v4l2_subdev *sd, in= t enable) =20 } else { alvium_set_stream_mipi(alvium, enable); - pm_runtime_mark_last_busy(&client->dev); pm_runtime_put_autosuspend(&client->dev); } =20 diff --git a/drivers/media/i2c/ccs/ccs-core.c b/drivers/media/i2c/ccs/ccs-c= ore.c index 487bcabb4a19..3316639b695e 100644 --- a/drivers/media/i2c/ccs/ccs-core.c +++ b/drivers/media/i2c/ccs/ccs-core.c @@ -788,7 +788,6 @@ static int ccs_set_ctrl(struct v4l2_ctrl *ctrl) } =20 if (pm_status > 0) { - pm_runtime_mark_last_busy(&client->dev); pm_runtime_put_autosuspend(&client->dev); } =20 @@ -1914,7 +1913,6 @@ static int ccs_set_stream(struct v4l2_subdev *subdev,= int enable) if (!enable) { ccs_stop_streaming(sensor); sensor->streaming =3D false; - pm_runtime_mark_last_busy(&client->dev); pm_runtime_put_autosuspend(&client->dev); =20 return 0; @@ -1929,7 +1927,6 @@ static int ccs_set_stream(struct v4l2_subdev *subdev,= int enable) rval =3D ccs_start_streaming(sensor); if (rval < 0) { sensor->streaming =3D false; - pm_runtime_mark_last_busy(&client->dev); pm_runtime_put_autosuspend(&client->dev); } =20 @@ -2677,7 +2674,6 @@ nvm_show(struct device *dev, struct device_attribute = *attr, char *buf) return -ENODEV; } =20 - pm_runtime_mark_last_busy(&client->dev); pm_runtime_put_autosuspend(&client->dev); =20 /* diff --git a/drivers/media/i2c/dw9768.c b/drivers/media/i2c/dw9768.c index 3a4d100b9199..d434721ba8ed 100644 --- a/drivers/media/i2c/dw9768.c +++ b/drivers/media/i2c/dw9768.c @@ -374,7 +374,6 @@ static int dw9768_open(struct v4l2_subdev *sd, struct v= 4l2_subdev_fh *fh) =20 static int dw9768_close(struct v4l2_subdev *sd, struct v4l2_subdev_fh *fh) { - pm_runtime_mark_last_busy(sd->dev); pm_runtime_put_autosuspend(sd->dev); =20 return 0; diff --git a/drivers/media/i2c/gc0308.c b/drivers/media/i2c/gc0308.c index 069f42785b3c..cbcda0e18ff1 100644 --- a/drivers/media/i2c/gc0308.c +++ b/drivers/media/i2c/gc0308.c @@ -974,7 +974,6 @@ static int gc0308_s_ctrl(struct v4l2_ctrl *ctrl) if (ret) dev_err(gc0308->dev, "failed to set control: %d\n", ret); =20 - pm_runtime_mark_last_busy(gc0308->dev); pm_runtime_put_autosuspend(gc0308->dev); =20 return ret; @@ -1157,14 +1156,12 @@ static int gc0308_start_stream(struct gc0308 *gc030= 8) return 0; =20 disable_pm: - pm_runtime_mark_last_busy(gc0308->dev); pm_runtime_put_autosuspend(gc0308->dev); return ret; } =20 static int gc0308_stop_stream(struct gc0308 *gc0308) { - pm_runtime_mark_last_busy(gc0308->dev); pm_runtime_put_autosuspend(gc0308->dev); return 0; } diff --git a/drivers/media/i2c/gc2145.c b/drivers/media/i2c/gc2145.c index ba02161d46e7..559a851669aa 100644 --- a/drivers/media/i2c/gc2145.c +++ b/drivers/media/i2c/gc2145.c @@ -963,7 +963,6 @@ static int gc2145_enable_streams(struct v4l2_subdev *sd, return 0; =20 err_rpm_put: - pm_runtime_mark_last_busy(&client->dev); pm_runtime_put_autosuspend(&client->dev); return ret; } @@ -985,7 +984,6 @@ static int gc2145_disable_streams(struct v4l2_subdev *s= d, if (ret) dev_err(&client->dev, "%s failed to write regs\n", __func__); =20 - pm_runtime_mark_last_busy(&client->dev); pm_runtime_put_autosuspend(&client->dev); =20 return ret; @@ -1193,7 +1191,6 @@ static int gc2145_s_ctrl(struct v4l2_ctrl *ctrl) break; } =20 - pm_runtime_mark_last_busy(&client->dev); pm_runtime_put_autosuspend(&client->dev); =20 return ret; diff --git a/drivers/media/i2c/imx219.c b/drivers/media/i2c/imx219.c index 3b4f68543342..3faf48f34af4 100644 --- a/drivers/media/i2c/imx219.c +++ b/drivers/media/i2c/imx219.c @@ -771,7 +771,6 @@ static int imx219_enable_streams(struct v4l2_subdev *sd, return 0; =20 err_rpm_put: - pm_runtime_mark_last_busy(&client->dev); pm_runtime_put_autosuspend(&client->dev); return ret; } @@ -793,7 +792,6 @@ static int imx219_disable_streams(struct v4l2_subdev *s= d, __v4l2_ctrl_grab(imx219->vflip, false); __v4l2_ctrl_grab(imx219->hflip, false); =20 - pm_runtime_mark_last_busy(&client->dev); pm_runtime_put_autosuspend(&client->dev); =20 return ret; diff --git a/drivers/media/i2c/imx283.c b/drivers/media/i2c/imx283.c index da618c8cbadc..67e8bb432d10 100644 --- a/drivers/media/i2c/imx283.c +++ b/drivers/media/i2c/imx283.c @@ -1143,7 +1143,6 @@ static int imx283_enable_streams(struct v4l2_subdev *= sd, return 0; =20 err_rpm_put: - pm_runtime_mark_last_busy(imx283->dev); pm_runtime_put_autosuspend(imx283->dev); =20 return ret; @@ -1163,7 +1162,6 @@ static int imx283_disable_streams(struct v4l2_subdev = *sd, if (ret) dev_err(imx283->dev, "Failed to stop stream\n"); =20 - pm_runtime_mark_last_busy(imx283->dev); pm_runtime_put_autosuspend(imx283->dev); =20 return ret; @@ -1558,7 +1556,6 @@ static int imx283_probe(struct i2c_client *client) * Decrease the PM usage count. The device will get suspended after the * autosuspend delay, turning the power off. */ - pm_runtime_mark_last_busy(imx283->dev); pm_runtime_put_autosuspend(imx283->dev); =20 return 0; diff --git a/drivers/media/i2c/imx290.c b/drivers/media/i2c/imx290.c index fbf7eba3d71d..970a8d89a3e7 100644 --- a/drivers/media/i2c/imx290.c +++ b/drivers/media/i2c/imx290.c @@ -869,7 +869,6 @@ static int imx290_set_ctrl(struct v4l2_ctrl *ctrl) break; } =20 - pm_runtime_mark_last_busy(imx290->dev); pm_runtime_put_autosuspend(imx290->dev); =20 return ret; @@ -1099,7 +1098,6 @@ static int imx290_set_stream(struct v4l2_subdev *sd, = int enable) } } else { imx290_stop_streaming(imx290); - pm_runtime_mark_last_busy(imx290->dev); pm_runtime_put_autosuspend(imx290->dev); } =20 @@ -1295,7 +1293,6 @@ static int imx290_subdev_init(struct imx290 *imx290) */ v4l2_i2c_subdev_init(&imx290->sd, client, &imx290_subdev_ops); imx290->sd.dev =3D imx290->dev; - pm_runtime_mark_last_busy(imx290->dev); pm_runtime_put_autosuspend(imx290->dev); =20 imx290->sd.internal_ops =3D &imx290_internal_ops; diff --git a/drivers/media/i2c/imx296.c b/drivers/media/i2c/imx296.c index f3bec16b527c..61116f4e3f76 100644 --- a/drivers/media/i2c/imx296.c +++ b/drivers/media/i2c/imx296.c @@ -604,7 +604,6 @@ static int imx296_s_stream(struct v4l2_subdev *sd, int = enable) if (!enable) { ret =3D imx296_stream_off(sensor); =20 - pm_runtime_mark_last_busy(sensor->dev); pm_runtime_put_autosuspend(sensor->dev); =20 goto unlock; diff --git a/drivers/media/i2c/imx415.c b/drivers/media/i2c/imx415.c index 278e743646ea..276bf4d6f39d 100644 --- a/drivers/media/i2c/imx415.c +++ b/drivers/media/i2c/imx415.c @@ -952,7 +952,6 @@ static int imx415_s_stream(struct v4l2_subdev *sd, int = enable) if (!enable) { ret =3D imx415_stream_off(sensor); =20 - pm_runtime_mark_last_busy(sensor->dev); pm_runtime_put_autosuspend(sensor->dev); =20 goto unlock; diff --git a/drivers/media/i2c/mt9m114.c b/drivers/media/i2c/mt9m114.c index 3f540ca40f3c..aa3fd6c6c76c 100644 --- a/drivers/media/i2c/mt9m114.c +++ b/drivers/media/i2c/mt9m114.c @@ -974,7 +974,6 @@ static int mt9m114_start_streaming(struct mt9m114 *sens= or, return 0; =20 error: - pm_runtime_mark_last_busy(&sensor->client->dev); pm_runtime_put_autosuspend(&sensor->client->dev); =20 return ret; @@ -988,7 +987,6 @@ static int mt9m114_stop_streaming(struct mt9m114 *senso= r) =20 ret =3D mt9m114_set_state(sensor, MT9M114_SYS_STATE_ENTER_SUSPEND); =20 - pm_runtime_mark_last_busy(&sensor->client->dev); pm_runtime_put_autosuspend(&sensor->client->dev); =20 return ret; @@ -1046,7 +1044,6 @@ static int mt9m114_pa_g_ctrl(struct v4l2_ctrl *ctrl) break; } =20 - pm_runtime_mark_last_busy(&sensor->client->dev); pm_runtime_put_autosuspend(&sensor->client->dev); =20 return ret; @@ -1113,7 +1110,6 @@ static int mt9m114_pa_s_ctrl(struct v4l2_ctrl *ctrl) break; } =20 - pm_runtime_mark_last_busy(&sensor->client->dev); pm_runtime_put_autosuspend(&sensor->client->dev); =20 return ret; @@ -1565,7 +1561,6 @@ static int mt9m114_ifp_s_ctrl(struct v4l2_ctrl *ctrl) break; } =20 - pm_runtime_mark_last_busy(&sensor->client->dev); pm_runtime_put_autosuspend(&sensor->client->dev); =20 return ret; @@ -2472,7 +2467,6 @@ static int mt9m114_probe(struct i2c_client *client) * Decrease the PM usage count. The device will get suspended after the * autosuspend delay, turning the power off. */ - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; diff --git a/drivers/media/i2c/ov4689.c b/drivers/media/i2c/ov4689.c index 1c3a449f9354..7d740ad3926f 100644 --- a/drivers/media/i2c/ov4689.c +++ b/drivers/media/i2c/ov4689.c @@ -497,7 +497,6 @@ static int ov4689_s_stream(struct v4l2_subdev *sd, int = on) } else { cci_write(ov4689->regmap, OV4689_REG_CTRL_MODE, OV4689_MODE_SW_STANDBY, NULL); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); } =20 @@ -702,7 +701,6 @@ static int ov4689_set_ctrl(struct v4l2_ctrl *ctrl) break; } =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; @@ -999,7 +997,6 @@ static int ov4689_probe(struct i2c_client *client) goto err_clean_subdev_pm; } =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; diff --git a/drivers/media/i2c/ov5640.c b/drivers/media/i2c/ov5640.c index 0dae0438aa80..84198613381d 100644 --- a/drivers/media/i2c/ov5640.c +++ b/drivers/media/i2c/ov5640.c @@ -3341,7 +3341,6 @@ static int ov5640_g_volatile_ctrl(struct v4l2_ctrl *c= trl) break; } =20 - pm_runtime_mark_last_busy(&sensor->i2c_client->dev); pm_runtime_put_autosuspend(&sensor->i2c_client->dev); =20 return 0; @@ -3417,7 +3416,6 @@ static int ov5640_s_ctrl(struct v4l2_ctrl *ctrl) break; } =20 - pm_runtime_mark_last_busy(&sensor->i2c_client->dev); pm_runtime_put_autosuspend(&sensor->i2c_client->dev); =20 return ret; @@ -3754,7 +3752,6 @@ static int ov5640_s_stream(struct v4l2_subdev *sd, in= t enable) mutex_unlock(&sensor->lock); =20 if (!enable || ret) { - pm_runtime_mark_last_busy(&sensor->i2c_client->dev); pm_runtime_put_autosuspend(&sensor->i2c_client->dev); } =20 @@ -3965,7 +3962,6 @@ static int ov5640_probe(struct i2c_client *client) =20 pm_runtime_set_autosuspend_delay(dev, 1000); pm_runtime_use_autosuspend(dev); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; diff --git a/drivers/media/i2c/ov5645.c b/drivers/media/i2c/ov5645.c index 004d0ee5c3f5..58c846a44376 100644 --- a/drivers/media/i2c/ov5645.c +++ b/drivers/media/i2c/ov5645.c @@ -808,7 +808,6 @@ static int ov5645_s_ctrl(struct v4l2_ctrl *ctrl) break; } =20 - pm_runtime_mark_last_busy(ov5645->dev); pm_runtime_put_autosuspend(ov5645->dev); =20 return ret; @@ -979,7 +978,6 @@ static int ov5645_disable_streams(struct v4l2_subdev *s= d, OV5645_SYSTEM_CTRL0_STOP); =20 rpm_put: - pm_runtime_mark_last_busy(ov5645->dev); pm_runtime_put_autosuspend(ov5645->dev); =20 return ret; @@ -1196,7 +1194,6 @@ static int ov5645_probe(struct i2c_client *client) =20 pm_runtime_set_autosuspend_delay(dev, 1000); pm_runtime_use_autosuspend(dev); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; diff --git a/drivers/media/i2c/ov64a40.c b/drivers/media/i2c/ov64a40.c index a5da4fe47e0b..15912ecb8d26 100644 --- a/drivers/media/i2c/ov64a40.c +++ b/drivers/media/i2c/ov64a40.c @@ -2990,7 +2990,6 @@ static int ov64a40_start_streaming(struct ov64a40 *ov= 64a40, return 0; =20 error_power_off: - pm_runtime_mark_last_busy(ov64a40->dev); pm_runtime_put_autosuspend(ov64a40->dev); =20 return ret; @@ -3000,7 +2999,6 @@ static int ov64a40_stop_streaming(struct ov64a40 *ov6= 4a40, struct v4l2_subdev_state *state) { cci_update_bits(ov64a40->cci, OV64A40_REG_SMIA, BIT(0), 0, NULL); - pm_runtime_mark_last_busy(ov64a40->dev); pm_runtime_put_autosuspend(ov64a40->dev); =20 __v4l2_ctrl_grab(ov64a40->link_freq, false); @@ -3330,7 +3328,6 @@ static int ov64a40_set_ctrl(struct v4l2_ctrl *ctrl) } =20 if (pm_status > 0) { - pm_runtime_mark_last_busy(ov64a40->dev); pm_runtime_put_autosuspend(ov64a40->dev); } =20 @@ -3622,7 +3619,6 @@ static int ov64a40_probe(struct i2c_client *client) goto error_subdev_cleanup; } =20 - pm_runtime_mark_last_busy(&client->dev); pm_runtime_put_autosuspend(&client->dev); =20 return 0; diff --git a/drivers/media/i2c/ov8858.c b/drivers/media/i2c/ov8858.c index 95f9ae794846..6b7193eaea1f 100644 --- a/drivers/media/i2c/ov8858.c +++ b/drivers/media/i2c/ov8858.c @@ -1391,7 +1391,6 @@ static int ov8858_s_stream(struct v4l2_subdev *sd, in= t on) } } else { ov8858_stop_stream(ov8858); - pm_runtime_mark_last_busy(&client->dev); pm_runtime_put_autosuspend(&client->dev); } =20 @@ -1945,7 +1944,6 @@ static int ov8858_probe(struct i2c_client *client) goto err_power_off; } =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; diff --git a/drivers/media/i2c/st-mipid02.c b/drivers/media/i2c/st-mipid02.c index f4568e87f018..41ae25b0911f 100644 --- a/drivers/media/i2c/st-mipid02.c +++ b/drivers/media/i2c/st-mipid02.c @@ -465,7 +465,6 @@ static int mipid02_disable_streams(struct v4l2_subdev *= sd, if (ret) goto error; =20 - pm_runtime_mark_last_busy(&client->dev); pm_runtime_put_autosuspend(&client->dev); =20 error: @@ -542,7 +541,6 @@ static int mipid02_enable_streams(struct v4l2_subdev *s= d, cci_write(bridge->regmap, MIPID02_DATA_LANE0_REG1, 0, &ret); cci_write(bridge->regmap, MIPID02_DATA_LANE1_REG1, 0, &ret); =20 - pm_runtime_mark_last_busy(&client->dev); pm_runtime_put_autosuspend(&client->dev); return ret; } diff --git a/drivers/media/i2c/tc358746.c b/drivers/media/i2c/tc358746.c index 143aa1359aba..bcfc274cf891 100644 --- a/drivers/media/i2c/tc358746.c +++ b/drivers/media/i2c/tc358746.c @@ -816,7 +816,6 @@ static int tc358746_s_stream(struct v4l2_subdev *sd, in= t enable) return 0; =20 err_out: - pm_runtime_mark_last_busy(sd->dev); pm_runtime_put_sync_autosuspend(sd->dev); =20 return err; @@ -838,7 +837,6 @@ static int tc358746_s_stream(struct v4l2_subdev *sd, in= t enable) if (err) return err; =20 - pm_runtime_mark_last_busy(sd->dev); pm_runtime_put_sync_autosuspend(sd->dev); =20 return v4l2_subdev_call(src, video, s_stream, 0); @@ -1016,7 +1014,6 @@ tc358746_g_register(struct v4l2_subdev *sd, struct v4= l2_dbg_register *reg) err =3D tc358746_read(tc358746, reg->reg, &val); reg->val =3D val; =20 - pm_runtime_mark_last_busy(sd->dev); pm_runtime_put_sync_autosuspend(sd->dev); =20 return err; @@ -1032,7 +1029,6 @@ tc358746_s_register(struct v4l2_subdev *sd, const str= uct v4l2_dbg_register *reg) =20 tc358746_write(tc358746, (u32)reg->reg, (u32)reg->val); =20 - pm_runtime_mark_last_busy(sd->dev); pm_runtime_put_sync_autosuspend(sd->dev); =20 return 0; @@ -1395,7 +1391,6 @@ static int tc358746_init_hw(struct tc358746 *tc358746) } =20 err =3D tc358746_read(tc358746, CHIPID_REG, &val); - pm_runtime_mark_last_busy(dev); pm_runtime_put_sync_autosuspend(dev); if (err) return -ENODEV; diff --git a/drivers/media/i2c/thp7312.c b/drivers/media/i2c/thp7312.c index 8852c56431fe..775cfba188d8 100644 --- a/drivers/media/i2c/thp7312.c +++ b/drivers/media/i2c/thp7312.c @@ -808,7 +808,6 @@ static int thp7312_s_stream(struct v4l2_subdev *sd, int= enable) if (!enable) { thp7312_stream_enable(thp7312, false); =20 - pm_runtime_mark_last_busy(thp7312->dev); pm_runtime_put_autosuspend(thp7312->dev); =20 v4l2_subdev_unlock_state(sd_state); @@ -839,7 +838,6 @@ static int thp7312_s_stream(struct v4l2_subdev *sd, int= enable) goto finish_unlock; =20 finish_pm: - pm_runtime_mark_last_busy(thp7312->dev); pm_runtime_put_autosuspend(thp7312->dev); finish_unlock: v4l2_subdev_unlock_state(sd_state); @@ -1147,7 +1145,6 @@ static int thp7312_s_ctrl(struct v4l2_ctrl *ctrl) break; } =20 - pm_runtime_mark_last_busy(thp7312->dev); pm_runtime_put_autosuspend(thp7312->dev); =20 return ret; @@ -2183,7 +2180,6 @@ static int thp7312_probe(struct i2c_client *client) * Decrease the PM usage count. The device will get suspended after the * autosuspend delay, turning the power off. */ - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 dev_info(dev, "THP7312 firmware version %02u.%02u\n", diff --git a/drivers/media/i2c/vd55g1.c b/drivers/media/i2c/vd55g1.c index c0754fd03b1d..7c39183dd44b 100644 --- a/drivers/media/i2c/vd55g1.c +++ b/drivers/media/i2c/vd55g1.c @@ -1104,7 +1104,6 @@ static int vd55g1_disable_streams(struct v4l2_subdev = *sd, =20 vd55g1_grab_ctrls(sensor, false); =20 - pm_runtime_mark_last_busy(sensor->dev); pm_runtime_put_autosuspend(sensor->dev); =20 return ret; @@ -1338,7 +1337,6 @@ static int vd55g1_g_volatile_ctrl(struct v4l2_ctrl *c= trl) break; } =20 - pm_runtime_mark_last_busy(sensor->dev); pm_runtime_put_autosuspend(sensor->dev); =20 return ret; @@ -1433,7 +1431,6 @@ static int vd55g1_s_ctrl(struct v4l2_ctrl *ctrl) break; } =20 - pm_runtime_mark_last_busy(sensor->dev); pm_runtime_put_autosuspend(sensor->dev); =20 return ret; @@ -1895,7 +1892,6 @@ static int vd55g1_probe(struct i2c_client *client) pm_runtime_enable(dev); pm_runtime_set_autosuspend_delay(dev, 4000); pm_runtime_use_autosuspend(dev); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 ret =3D vd55g1_subdev_init(sensor); diff --git a/drivers/media/i2c/vd56g3.c b/drivers/media/i2c/vd56g3.c index 5d951ad0b478..d66e21ba4498 100644 --- a/drivers/media/i2c/vd56g3.c +++ b/drivers/media/i2c/vd56g3.c @@ -493,7 +493,6 @@ static int vd56g3_g_volatile_ctrl(struct v4l2_ctrl *ctr= l) break; } =20 - pm_runtime_mark_last_busy(sensor->dev); pm_runtime_put_autosuspend(sensor->dev); =20 return ret; @@ -577,7 +576,6 @@ static int vd56g3_s_ctrl(struct v4l2_ctrl *ctrl) break; } =20 - pm_runtime_mark_last_busy(sensor->dev); pm_runtime_put_autosuspend(sensor->dev); =20 return ret; @@ -1021,7 +1019,6 @@ static int vd56g3_disable_streams(struct v4l2_subdev = *sd, __v4l2_ctrl_grab(sensor->vflip_ctrl, false); __v4l2_ctrl_grab(sensor->patgen_ctrl, false); =20 - pm_runtime_mark_last_busy(sensor->dev); pm_runtime_put_autosuspend(sensor->dev); =20 return ret; @@ -1527,7 +1524,6 @@ static int vd56g3_probe(struct i2c_client *client) } =20 /* Sensor could now be powered off (after the autosuspend delay) */ - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 dev_dbg(dev, "Successfully probe %s sensor\n", diff --git a/drivers/media/i2c/video-i2c.c b/drivers/media/i2c/video-i2c.c index 0dd991d70d53..1eee2d4f5b40 100644 --- a/drivers/media/i2c/video-i2c.c +++ b/drivers/media/i2c/video-i2c.c @@ -288,7 +288,6 @@ static int amg88xx_read(struct device *dev, enum hwmon_= sensor_types type, return tmp; =20 tmp =3D regmap_bulk_read(data->regmap, AMG88XX_REG_TTHL, &buf, 2); - pm_runtime_mark_last_busy(regmap_get_device(data->regmap)); pm_runtime_put_autosuspend(regmap_get_device(data->regmap)); if (tmp) return tmp; @@ -527,7 +526,6 @@ static int start_streaming(struct vb2_queue *vq, unsign= ed int count) return 0; =20 error_rpm_put: - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); error_del_list: video_i2c_del_list(vq, VB2_BUF_STATE_QUEUED); @@ -544,7 +542,6 @@ static void stop_streaming(struct vb2_queue *vq) =20 kthread_stop(data->kthread_vid_cap); data->kthread_vid_cap =3D NULL; - pm_runtime_mark_last_busy(regmap_get_device(data->regmap)); pm_runtime_put_autosuspend(regmap_get_device(data->regmap)); =20 video_i2c_del_list(vq, VB2_BUF_STATE_ERROR); @@ -853,7 +850,6 @@ static int video_i2c_probe(struct i2c_client *client) if (ret < 0) goto error_pm_disable; =20 - pm_runtime_mark_last_busy(&client->dev); pm_runtime_put_autosuspend(&client->dev); =20 return 0; diff --git a/drivers/media/platform/chips-media/wave5/wave5-vpu-dec.c b/dri= vers/media/platform/chips-media/wave5/wave5-vpu-dec.c index fd71f0c43ac3..a9ce032cc5a2 100644 --- a/drivers/media/platform/chips-media/wave5/wave5-vpu-dec.c +++ b/drivers/media/platform/chips-media/wave5/wave5-vpu-dec.c @@ -451,7 +451,6 @@ static void wave5_vpu_dec_finish_decode(struct vpu_inst= ance *inst) if (q_status.report_queue_count =3D=3D 0 && (q_status.instance_queue_count =3D=3D 0 || dec_info.sequence_changed)= ) { dev_dbg(inst->dev->dev, "%s: finishing job.\n", __func__); - pm_runtime_mark_last_busy(inst->dev->dev); pm_runtime_put_autosuspend(inst->dev->dev); v4l2_m2m_job_finish(inst->v4l2_m2m_dev, m2m_ctx); } @@ -1364,7 +1363,6 @@ static int wave5_vpu_dec_start_streaming(struct vb2_q= ueue *q, unsigned int count } =20 } - pm_runtime_mark_last_busy(inst->dev->dev); pm_runtime_put_autosuspend(inst->dev->dev); return ret; =20 @@ -1498,7 +1496,6 @@ static void wave5_vpu_dec_stop_streaming(struct vb2_q= ueue *q) else streamoff_capture(q); =20 - pm_runtime_mark_last_busy(inst->dev->dev); pm_runtime_put_autosuspend(inst->dev->dev); } =20 @@ -1662,7 +1659,6 @@ static void wave5_vpu_dec_device_run(void *priv) =20 finish_job_and_return: dev_dbg(inst->dev->dev, "%s: leave and finish job", __func__); - pm_runtime_mark_last_busy(inst->dev->dev); pm_runtime_put_autosuspend(inst->dev->dev); v4l2_m2m_job_finish(inst->v4l2_m2m_dev, m2m_ctx); } diff --git a/drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c b/dri= vers/media/platform/chips-media/wave5/wave5-vpu-enc.c index 1e5fc5f8b856..35913a7de834 100644 --- a/drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c +++ b/drivers/media/platform/chips-media/wave5/wave5-vpu-enc.c @@ -1391,12 +1391,10 @@ static int wave5_vpu_enc_start_streaming(struct vb2= _queue *q, unsigned int count if (ret) goto return_buffers; =20 - pm_runtime_mark_last_busy(inst->dev->dev); pm_runtime_put_autosuspend(inst->dev->dev); return 0; return_buffers: wave5_return_bufs(q, VB2_BUF_STATE_QUEUED); - pm_runtime_mark_last_busy(inst->dev->dev); pm_runtime_put_autosuspend(inst->dev->dev); return ret; } @@ -1465,7 +1463,6 @@ static void wave5_vpu_enc_stop_streaming(struct vb2_q= ueue *q) else streamoff_capture(inst, q); =20 - pm_runtime_mark_last_busy(inst->dev->dev); pm_runtime_put_autosuspend(inst->dev->dev); } =20 @@ -1520,7 +1517,6 @@ static void wave5_vpu_enc_device_run(void *priv) break; } dev_dbg(inst->dev->dev, "%s: leave with active job", __func__); - pm_runtime_mark_last_busy(inst->dev->dev); pm_runtime_put_autosuspend(inst->dev->dev); return; default: @@ -1529,7 +1525,6 @@ static void wave5_vpu_enc_device_run(void *priv) break; } dev_dbg(inst->dev->dev, "%s: leave and finish job", __func__); - pm_runtime_mark_last_busy(inst->dev->dev); pm_runtime_put_autosuspend(inst->dev->dev); v4l2_m2m_job_finish(inst->v4l2_m2m_dev, m2m_ctx); } diff --git a/drivers/media/platform/nvidia/tegra-vde/h264.c b/drivers/media= /platform/nvidia/tegra-vde/h264.c index 0e56a4331b0d..45f8f6904867 100644 --- a/drivers/media/platform/nvidia/tegra-vde/h264.c +++ b/drivers/media/platform/nvidia/tegra-vde/h264.c @@ -585,7 +585,6 @@ static int tegra_vde_decode_begin(struct tegra_vde *vde, return 0; =20 put_runtime_pm: - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 unlock: @@ -612,7 +611,6 @@ static void tegra_vde_decode_abort(struct tegra_vde *vd= e) if (err) dev_err(dev, "DEC end: Failed to assert HW reset: %d\n", err); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 mutex_unlock(&vde->lock); diff --git a/drivers/media/platform/qcom/iris/iris_hfi_queue.c b/drivers/me= dia/platform/qcom/iris/iris_hfi_queue.c index fac7df0c4d1a..0b37f9b76da5 100644 --- a/drivers/media/platform/qcom/iris/iris_hfi_queue.c +++ b/drivers/media/platform/qcom/iris/iris_hfi_queue.c @@ -142,7 +142,6 @@ int iris_hfi_queue_cmd_write(struct iris_core *core, vo= id *pkt, u32 pkt_size) } mutex_unlock(&core->lock); =20 - pm_runtime_mark_last_busy(core->dev); pm_runtime_put_autosuspend(core->dev); =20 return 0; diff --git a/drivers/media/platform/raspberrypi/pisp_be/pisp_be.c b/drivers= /media/platform/raspberrypi/pisp_be/pisp_be.c index 7596ae1f7de6..8a10a36abbc2 100644 --- a/drivers/media/platform/raspberrypi/pisp_be/pisp_be.c +++ b/drivers/media/platform/raspberrypi/pisp_be/pisp_be.c @@ -951,7 +951,6 @@ static void pispbe_node_stop_streaming(struct vb2_queue= *q) pispbe->streaming_map &=3D ~BIT(node->id); spin_unlock_irqrestore(&pispbe->hw_lock, flags); =20 - pm_runtime_mark_last_busy(pispbe->dev); pm_runtime_put_autosuspend(pispbe->dev); =20 dev_dbg(pispbe->dev, "Nodes streaming now 0x%x\n", @@ -1740,7 +1739,6 @@ static int pispbe_probe(struct platform_device *pdev) if (ret) goto disable_devs_err; =20 - pm_runtime_mark_last_busy(pispbe->dev); pm_runtime_put_autosuspend(pispbe->dev); =20 return 0; diff --git a/drivers/media/platform/verisilicon/hantro_drv.c b/drivers/medi= a/platform/verisilicon/hantro_drv.c index 8542238e0fb1..fa972effd4a2 100644 --- a/drivers/media/platform/verisilicon/hantro_drv.c +++ b/drivers/media/platform/verisilicon/hantro_drv.c @@ -89,7 +89,6 @@ static void hantro_job_finish(struct hantro_dev *vpu, struct hantro_ctx *ctx, enum vb2_buffer_state result) { - pm_runtime_mark_last_busy(vpu->dev); pm_runtime_put_autosuspend(vpu->dev); =20 clk_bulk_disable(vpu->variant->num_clocks, vpu->clocks); diff --git a/drivers/media/rc/gpio-ir-recv.c b/drivers/media/rc/gpio-ir-rec= v.c index bf6d8fa983bf..161f8919022c 100644 --- a/drivers/media/rc/gpio-ir-recv.c +++ b/drivers/media/rc/gpio-ir-recv.c @@ -49,7 +49,6 @@ static irqreturn_t gpio_ir_recv_irq(int irq, void *dev_id) ir_raw_event_store_edge(gpio_dev->rcdev, val =3D=3D 1); =20 if (pmdev) { - pm_runtime_mark_last_busy(pmdev); pm_runtime_put_autosuspend(pmdev); } =20 --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 3FD2D2E1C6F; Fri, 4 Jul 2025 07:54:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615682; cv=none; b=OYTTEW81m/cMGGMwl11GI1QrH3UCTPkLGFDA9fz+/5otsQs727rTFxHZ9PyXj5oWiK+Rxqk/KXnnOUyKE1BZiXsrkgYQvAIqCTbGR41FF8lyTwxUM9KBbwrdbU6gA1RJd2tn2l6Ps1gpop4uWRPu+Pq2bovOKvxkLNru/ORGmqA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615682; c=relaxed/simple; bh=ygYb2C6/ZqATeJsBP/wXtZvBgqy/5CPElmXHxYKwYuY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=AuLK1m3JHrzwIZU+LoqcUjWfkvQHn0HkaQisKxWucxCBNIXI7EEkiT+Qev+1xfFCWdachgVFxUSKACt3NYgewXNRL7Fqxn9SM6KtxgKdQH0JNtM6RIHmBY4CVU+1maOkBqeTpFqi3j1pmr0FEM/pNae5Mwj2Z1oJq+7fm6EZLu8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=FHzcRjXf; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="FHzcRjXf" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615681; x=1783151681; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ygYb2C6/ZqATeJsBP/wXtZvBgqy/5CPElmXHxYKwYuY=; b=FHzcRjXf8Y2XI/NvlLX80+DhXe+RsVFEQQ4z3v1sdS7mylEhv65cfYVN 2sEBuk9Qs2Tl1Hk1SVYFKUVE9o8WYaOzLizbWxfkv6Cy5s5xeDYm9Sldl oyaT3NesEkMZTAYD61WT7seaPU9n20btJAlF9VW3SRh18brs/e/7IvTHb qWMCQ3kg9JLw2h6wgY5wu7uzMZAht+EePkgkh+Bi58NQ4/90zIX+05Rab /9sj9953dNhdudbxq9s146dUeZII5TU/ogsFT/HbBPa32uaeAwK3fW0mZ 7RIGHlSQMmYZNtLJgsxY8qoRku9cxi/9spbHWtGBbgIrt+hbXPE7YvgzO Q==; X-CSE-ConnectionGUID: 4ILEyjmHQ5qeVTbBQX7rWg== X-CSE-MsgGUID: Yc0Qk4coTUOm15P3baPhoA== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194108" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194108" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:37 -0700 X-CSE-ConnectionGUID: W13V4ShFR1exPlMYQThahQ== X-CSE-MsgGUID: +kgQWxw6TLS1TQNnKQeflA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616557" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:34 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 7595E44433; Fri, 4 Jul 2025 10:54:32 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Lee Jones , James Ogletree , Fred Treven , Ben Bright , David Rhodes , Richard Fitzgerald Cc: patches@opensource.cirrus.com, linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org Subject: [PATCH 42/80] mfd: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:32 +0300 Message-Id: <20250704075432.3220321-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Reviewed-by: Charles Keepax --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/mfd/arizona-irq.c | 1 - drivers/mfd/cs40l50-core.c | 1 - drivers/mfd/cs42l43.c | 1 - 3 files changed, 3 deletions(-) diff --git a/drivers/mfd/arizona-irq.c b/drivers/mfd/arizona-irq.c index ac2139597fab..3f8622ee0e59 100644 --- a/drivers/mfd/arizona-irq.c +++ b/drivers/mfd/arizona-irq.c @@ -152,7 +152,6 @@ static irqreturn_t arizona_irq_thread(int irq, void *da= ta) } } while (poll); =20 - pm_runtime_mark_last_busy(arizona->dev); pm_runtime_put_autosuspend(arizona->dev); =20 return IRQ_HANDLED; diff --git a/drivers/mfd/cs40l50-core.c b/drivers/mfd/cs40l50-core.c index c91bccda0858..662d987b650b 100644 --- a/drivers/mfd/cs40l50-core.c +++ b/drivers/mfd/cs40l50-core.c @@ -531,7 +531,6 @@ int cs40l50_probe(struct cs40l50 *cs40l50) if (ret) return dev_err_probe(dev, ret, "Failed to request %s\n", CS40L50_FW); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; diff --git a/drivers/mfd/cs42l43.c b/drivers/mfd/cs42l43.c index 103787f37443..07c8f1b8183e 100644 --- a/drivers/mfd/cs42l43.c +++ b/drivers/mfd/cs42l43.c @@ -962,7 +962,6 @@ static void cs42l43_boot_work(struct work_struct *work) goto err; } =20 - pm_runtime_mark_last_busy(cs42l43->dev); pm_runtime_put_autosuspend(cs42l43->dev); =20 return; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 BD9B02877C1 for ; Fri, 4 Jul 2025 07:54:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615683; cv=none; b=kH6lGQcl5Mf04cuDdhzr1ibURz4wg/+jf9Qik0svEJFysffNu4/5djFhoWgEj3ynowHt/GddriRKDM47RoCBrG1FHTq/AFmJ2q6qp9rM7gf74hgnz8XC33zfhWW5Cw5bZabsQXDciXSijuNPRk1es1jOqTqREGVYHGsAUwVZJX8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615683; c=relaxed/simple; bh=fZSPKC9lEpywQR5wVlMhCiGiyi1wk01/vlOQcZOZU0o=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Ts79saLZ6HnnbZnfIAUR6aQZP9pGQbKJ9W56WosmGY/xDKE+MzI9GI3RWKPrJoJL+kz/7jcvXhH+IZ5W0HPxb5V2WhHwVl/QvGYtENzPl71cbsuSL2bvT736aEbdjKakZSMlZtzFXOsSms8a4EjnNdxRpRjNgWiRn7qc25fRmpM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=X9G8ixUb; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="X9G8ixUb" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615680; x=1783151680; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=fZSPKC9lEpywQR5wVlMhCiGiyi1wk01/vlOQcZOZU0o=; b=X9G8ixUb+uVL35wIWH9I7vLiJrF4kF/929dGtJtgoHFLWtBlTQlzD426 KKh/i2Wp0Mp+TGVR31CvcWlkqA7hAITaTQsC/jLofYv4ww4cKyu4G9lpX rIOe0bEXewqJ9qsq1H5U01oqRjl13JMDC1dnxe+Kpp/gQQnMu2Kxv0GdP d6+xDDBarGvzCyIm3yENvvxUyJE8CFCmq4YjQuObWb0EJbcW1w3kSPosX zqF9ntp4Xeemvy0Nnk6CIHOzgyEbwJpk69t0Vt6D25zFOhlcOPSkCOda8 dSLHqios2CNEDpwtO+dmK5DzBWHtEgReWJ1T8qL+S8iSRgiXafL+vaXkh w==; X-CSE-ConnectionGUID: 8etS7fzJS5qYX3KTotB3sg== X-CSE-MsgGUID: xLYJNzn2SrODBhB6bHhrxA== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194105" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194105" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:37 -0700 X-CSE-ConnectionGUID: bY013aNITeWIbNWEFRISBw== X-CSE-MsgGUID: UYApL9RjQeWx4KDV6nz/5A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616570" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:35 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 3E4E744394; Fri, 4 Jul 2025 10:54:33 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Alexander Usyskin , Arnd Bergmann , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org Subject: [PATCH 43/80] mei: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:33 +0300 Message-Id: <20250704075433.3220381-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/misc/mei/client.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/misc/mei/client.c b/drivers/misc/mei/client.c index 3db07d2a881f..191ab784e160 100644 --- a/drivers/misc/mei/client.c +++ b/drivers/misc/mei/client.c @@ -709,7 +709,6 @@ void mei_host_client_init(struct mei_device *dev) =20 schedule_work(&dev->bus_rescan_work); =20 - pm_runtime_mark_last_busy(dev->dev); dev_dbg(dev->dev, "rpm: autosuspend\n"); pm_request_autosuspend(dev->dev); } @@ -991,7 +990,6 @@ int mei_cl_disconnect(struct mei_cl *cl) rets =3D __mei_cl_disconnect(cl); =20 cl_dbg(dev, cl, "rpm: autosuspend\n"); - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); =20 return rets; @@ -1167,7 +1165,6 @@ int mei_cl_connect(struct mei_cl *cl, struct mei_me_c= lient *me_cl, rets =3D cl->status; out: cl_dbg(dev, cl, "rpm: autosuspend\n"); - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); =20 mei_io_cb_free(cb); @@ -1554,7 +1551,6 @@ int mei_cl_notify_request(struct mei_cl *cl, =20 out: cl_dbg(dev, cl, "rpm: autosuspend\n"); - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); =20 mei_io_cb_free(cb); @@ -1702,7 +1698,6 @@ int mei_cl_read_start(struct mei_cl *cl, size_t lengt= h, const struct file *fp) =20 out: cl_dbg(dev, cl, "rpm: autosuspend\n"); - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); nortpm: if (rets) @@ -2092,7 +2087,6 @@ ssize_t mei_cl_write(struct mei_cl *cl, struct mei_cl= _cb *cb, unsigned long time rets =3D buf_len; err: cl_dbg(dev, cl, "rpm: autosuspend\n"); - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); free: mei_io_cb_free(cb); @@ -2119,7 +2113,6 @@ void mei_cl_complete(struct mei_cl *cl, struct mei_cl= _cb *cb) if (waitqueue_active(&cl->tx_wait)) { wake_up_interruptible(&cl->tx_wait); } else { - pm_runtime_mark_last_busy(dev->dev); pm_request_autosuspend(dev->dev); } break; @@ -2366,7 +2359,6 @@ int mei_cl_dma_alloc_and_map(struct mei_cl *cl, const= struct file *fp, mei_cl_dma_free(cl); =20 cl_dbg(dev, cl, "rpm: autosuspend\n"); - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); =20 mei_io_cb_free(cb); @@ -2444,7 +2436,6 @@ int mei_cl_dma_unmap(struct mei_cl *cl, const struct = file *fp) mei_cl_dma_free(cl); out: cl_dbg(dev, cl, "rpm: autosuspend\n"); - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); =20 mei_io_cb_free(cb); --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 4BFF92EBBB5; Fri, 4 Jul 2025 07:54:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615691; cv=none; b=iwy/wLubGT9HtLCvB1YtffjuiKUBZL2LKbtHHrVwApQFAWmr963sxTxO4iAZ9dxm2WSsnA2M+IIEAGN4Qqd357TVGJ2CT0cSiTirtCVhYsg2C/YYxOtgSAvu403cQZ8+oPeJWW+hbUzMgUC2Q5yhbA11ACCYultBamkXalpxGm8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615691; c=relaxed/simple; bh=bnuZewOjDRj5uj/Q1wY38bM+p730Axef1k5VeKg2H+A=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=tx4lJ71lmBm/bEWsFXNdl3WsTTtn/gNyJXmhaUesIgLo+/KjGWejkbPRlNU8zmTmAHTpVLN+QQToiIe2BHA+Rieqf2EXWrKQdZQUk7Tm9PSaCk43ARZapEzcH1OiI625eOgkiZSQpfya78sKzEY9mlTdYWMZYXM07nnS5wf4KaY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=cVgZjWwr; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="cVgZjWwr" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615689; x=1783151689; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bnuZewOjDRj5uj/Q1wY38bM+p730Axef1k5VeKg2H+A=; b=cVgZjWwrKrWtokBiZ299eIVyY7+xUZouZKxcLre2rUq1GxdXu8regUmZ 6cXKe9/28ZKi67tGXNxKcVgvokG+frkNQ3gW2SyOw+lWOwju8AuOXce3O ohSzl8ZKzYnt+De/akrXPN5vRRZhZD8JvbpEZ/7aA+zGWcdTb+jYr7wKY Edcx/UYtBvMnx6co8gHr1MxXXLXRvMSqR9fOfPWWrIn8WJ3MzTPC8IcLM +sSXIkTXLI+mOhwrURdTMWG0pxb/2eLsiP6Gsh2THxoxfVQpT59Bzc/w/ lpyoTzmu+k9F9TP2uMDztcsXnStTnExzCyUnHYb/FlN9vpDoJSoh9Am8D w==; X-CSE-ConnectionGUID: vLyisTqVQFOn/o8r0UuJCA== X-CSE-MsgGUID: b8DxJt/HT5Cobgd7qR+C0A== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194151" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194151" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:45 -0700 X-CSE-ConnectionGUID: vHcFFC2QSWGmYwlOvBh9Cw== X-CSE-MsgGUID: zaZUVbpaQBiQnQCYrl+S7A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616609" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:36 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 66F5344419; Fri, 4 Jul 2025 10:54:34 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Ulf Hansson , Aubin Constans , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Russell King , Adrian Hunter , Haibo Chen , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Vignesh Raghavendra , Orson Zhai , Baolin Wang , Chunyan Zhang , Wolfram Sang , Avri Altman , Sakari Ailus , Victor Shih , Binbin Zhou , Huacai Chen , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Cc: linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, imx@lists.linux.dev, s32@nxp.com, linux-arm-msm@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: [PATCH 44/80] mmc: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:34 +0300 Message-Id: <20250704075434.3220506-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/mmc/core/core.c | 1 - drivers/mmc/host/atmel-mci.c | 2 -- drivers/mmc/host/mmci.c | 1 - drivers/mmc/host/omap_hsmmc.c | 3 --- drivers/mmc/host/sdhci-esdhc-imx.c | 1 - drivers/mmc/host/sdhci-msm.c | 1 - drivers/mmc/host/sdhci-omap.c | 2 -- drivers/mmc/host/sdhci-pxav3.c | 2 -- drivers/mmc/host/sdhci-sprd.c | 1 - drivers/mmc/host/sdhci_am654.c | 1 - drivers/mmc/host/tmio_mmc_core.c | 1 - 11 files changed, 16 deletions(-) diff --git a/drivers/mmc/core/core.c b/drivers/mmc/core/core.c index a0e2dce70434..874c6fe92855 100644 --- a/drivers/mmc/core/core.c +++ b/drivers/mmc/core/core.c @@ -882,7 +882,6 @@ void mmc_put_card(struct mmc_card *card, struct mmc_ctx= *ctx) WARN_ON(ctx && host->claimer !=3D ctx); =20 mmc_release_host(host); - pm_runtime_mark_last_busy(&card->dev); pm_runtime_put_autosuspend(&card->dev); } EXPORT_SYMBOL(mmc_put_card); diff --git a/drivers/mmc/host/atmel-mci.c b/drivers/mmc/host/atmel-mci.c index c885c04e938a..43f92f48590f 100644 --- a/drivers/mmc/host/atmel-mci.c +++ b/drivers/mmc/host/atmel-mci.c @@ -541,7 +541,6 @@ static int atmci_regs_show(struct seq_file *s, void *v) memcpy_fromio(buf, host->regs, ATMCI_REGS_SIZE); spin_unlock_bh(&host->lock); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 seq_printf(s, "MR:\t0x%08x%s%s ", @@ -2567,7 +2566,6 @@ static int atmci_probe(struct platform_device *pdev) dev_info(dev, "Atmel MCI controller at 0x%08lx irq %d, %u slots\n", host->mapbase, irq, nr_slots); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c index c70c64f8adc4..8367283647a9 100644 --- a/drivers/mmc/host/mmci.c +++ b/drivers/mmc/host/mmci.c @@ -2082,7 +2082,6 @@ static void mmci_enable_sdio_irq(struct mmc_host *mmc= , int enable) spin_unlock_irqrestore(&host->lock, flags); =20 if (!enable) { - pm_runtime_mark_last_busy(mmc_dev(mmc)); pm_runtime_put_autosuspend(mmc_dev(mmc)); } } diff --git a/drivers/mmc/host/omap_hsmmc.c b/drivers/mmc/host/omap_hsmmc.c index bf3b9f5b067c..adc0d0b6ae37 100644 --- a/drivers/mmc/host/omap_hsmmc.c +++ b/drivers/mmc/host/omap_hsmmc.c @@ -1663,7 +1663,6 @@ static int mmc_regs_show(struct seq_file *s, void *da= ta) seq_printf(s, "CAPA:\t\t0x%08x\n", OMAP_HSMMC_READ(host->base, CAPA)); =20 - pm_runtime_mark_last_busy(host->dev); pm_runtime_put_autosuspend(host->dev); =20 return 0; @@ -1954,7 +1953,6 @@ static int omap_hsmmc_probe(struct platform_device *p= dev) } =20 omap_hsmmc_debugfs(mmc); - pm_runtime_mark_last_busy(host->dev); pm_runtime_put_autosuspend(host->dev); =20 return 0; @@ -2031,7 +2029,6 @@ static int omap_hsmmc_resume(struct device *dev) if (!(host->mmc->pm_flags & MMC_PM_KEEP_POWER)) omap_hsmmc_conf_bus_power(host); =20 - pm_runtime_mark_last_busy(host->dev); pm_runtime_put_autosuspend(host->dev); return 0; } diff --git a/drivers/mmc/host/sdhci-esdhc-imx.c b/drivers/mmc/host/sdhci-es= dhc-imx.c index 64c27349d79f..a040c0896a7b 100644 --- a/drivers/mmc/host/sdhci-esdhc-imx.c +++ b/drivers/mmc/host/sdhci-esdhc-imx.c @@ -2108,7 +2108,6 @@ static int sdhci_esdhc_resume(struct device *dev) esdhc_is_usdhc(imx_data)) sdhc_esdhc_tuning_restore(host); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c index 732b65d4b61a..68e56251d5e8 100644 --- a/drivers/mmc/host/sdhci-msm.c +++ b/drivers/mmc/host/sdhci-msm.c @@ -2750,7 +2750,6 @@ static int sdhci_msm_probe(struct platform_device *pd= ev) if (ret) goto pm_runtime_disable; =20 - pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); =20 return 0; diff --git a/drivers/mmc/host/sdhci-omap.c b/drivers/mmc/host/sdhci-omap.c index 429d8a517fb6..cdb09605e009 100644 --- a/drivers/mmc/host/sdhci-omap.c +++ b/drivers/mmc/host/sdhci-omap.c @@ -1370,7 +1370,6 @@ static int sdhci_omap_probe(struct platform_device *p= dev) host->mmc->pm_caps |=3D MMC_PM_KEEP_POWER | MMC_PM_WAKE_SDIO_IRQ; } =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; @@ -1379,7 +1378,6 @@ static int sdhci_omap_probe(struct platform_device *p= dev) sdhci_cleanup_host(host); =20 err_rpm_put: - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); err_rpm_disable: pm_runtime_dont_use_autosuspend(dev); diff --git a/drivers/mmc/host/sdhci-pxav3.c b/drivers/mmc/host/sdhci-pxav3.c index 34abf986573f..1371960e34eb 100644 --- a/drivers/mmc/host/sdhci-pxav3.c +++ b/drivers/mmc/host/sdhci-pxav3.c @@ -494,7 +494,6 @@ static int sdhci_pxav3_suspend(struct device *dev) if (host->tuning_mode !=3D SDHCI_TUNING_MODE_3) mmc_retune_needed(host->mmc); ret =3D sdhci_suspend_host(host); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; @@ -507,7 +506,6 @@ static int sdhci_pxav3_resume(struct device *dev) =20 pm_runtime_get_sync(dev); ret =3D sdhci_resume_host(host); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; diff --git a/drivers/mmc/host/sdhci-sprd.c b/drivers/mmc/host/sdhci-sprd.c index a5dec1a0e934..fe2fe52b23b2 100644 --- a/drivers/mmc/host/sdhci-sprd.c +++ b/drivers/mmc/host/sdhci-sprd.c @@ -863,7 +863,6 @@ static int sdhci_sprd_probe(struct platform_device *pde= v) if (ret) goto err_cleanup_host; =20 - pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); =20 return 0; diff --git a/drivers/mmc/host/sdhci_am654.c b/drivers/mmc/host/sdhci_am654.c index ea14d56558c4..e2c4a0049d61 100644 --- a/drivers/mmc/host/sdhci_am654.c +++ b/drivers/mmc/host/sdhci_am654.c @@ -986,7 +986,6 @@ static int sdhci_am654_probe(struct platform_device *pd= ev) /* Setting up autosuspend */ pm_runtime_set_autosuspend_delay(dev, SDHCI_AM654_AUTOSUSPEND_DELAY); pm_runtime_use_autosuspend(dev); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); return 0; =20 diff --git a/drivers/mmc/host/tmio_mmc_core.c b/drivers/mmc/host/tmio_mmc_c= ore.c index 2cec463b5e00..21c2f9095bac 100644 --- a/drivers/mmc/host/tmio_mmc_core.c +++ b/drivers/mmc/host/tmio_mmc_core.c @@ -160,7 +160,6 @@ static void tmio_mmc_enable_sdio_irq(struct mmc_host *m= mc, int enable) sd_ctrl_write16(host, CTL_SDIO_IRQ_MASK, host->sdio_irq_mask); =20 host->sdio_irq_enabled =3D false; - pm_runtime_mark_last_busy(mmc_dev(mmc)); pm_runtime_put_autosuspend(mmc_dev(mmc)); } } --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 43FD32E4252 for ; Fri, 4 Jul 2025 07:54:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615684; cv=none; b=ATRgI1wkczm4FDF0EUiwIZekFk92ny9G/27fbeINv3lvyEUlA4qSACXTHxvHjKNBd48pT9U1gYAd9w+7AV9sKb7+TP38h2CaRRlGHHsce78+sewfdVqckNAhub1Kg2NYtorqJ56CYbTspolZHg6mHAGOXntFw9RWU1wg/UXt10w= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615684; c=relaxed/simple; bh=yOOYW/owvwXZgS2+HcQ7G4ePe8nCZzpY+QwYaMpoeI0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=WEF2XbUvWCmrya2NBdJqiGe83FD8qvrVKJV9VJeua2pJIKBaNqxlwZSHW5a56iI7HMdW+kfB7+d3gP5+vdfmswU8dfu5VwlJubFarFjgyx23TwQU7/JtApW95pYo6M8/ZokDR/0oa4GsjyRk7/Ylcmlff1H5eey6sbcxLSfGVDw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ce746wt5; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ce746wt5" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615683; x=1783151683; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=yOOYW/owvwXZgS2+HcQ7G4ePe8nCZzpY+QwYaMpoeI0=; b=ce746wt5/B2ysIQK3ZJJuUD1/6854NHvr28KYOEmy4IHmkxe2yub5td3 9EjvG4qvWGTzL+f3snWAJIe6MtxhHsXAjYRkhBTWUvetCjs8XvMlzdYAu BsZObodorUMF/HRy7RYrcX+ldjwgQD2ctOEJeSBrDEmNxA2dhLnTjsFVP 1Z43GR36lbDfRrSRtc/3jYWsUlgf3X2tGf0GuYDSdKGmBNjfLMGnUtVNw Vf7glCeOzyzYUVOjWF7pUUeu7FdYCYUzMnxlKRGBcW6sNchxGCrvjUinU WrOVdfx7zpc5ymjt4TLRjBSH01rkH+P4JSKBpMdqRjNz6WaLj8Jo/Y2o7 A==; X-CSE-ConnectionGUID: ar3tv4dQQUyR2w51+wSTyw== X-CSE-MsgGUID: 05YKNysPRPGXzbK+BAeeYg== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194110" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194110" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:40 -0700 X-CSE-ConnectionGUID: /AI2m1pvTg66r4GBAEPbDA== X-CSE-MsgGUID: IR5aMR1DS2eGmRE/uCOv2Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616572" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:37 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 1F96F44424; Fri, 4 Jul 2025 10:54:35 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Han Xu , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra Cc: imx@lists.linux.dev, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 45/80] mtd: rawnand: gpmi: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:34 +0300 Message-Id: <20250704075434.3220589-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/= raw/gpmi-nand/gpmi-nand.c index f4e68008ea03..8c1bf09bdbae 100644 --- a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c +++ b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c @@ -188,7 +188,6 @@ static int gpmi_init(struct gpmi_nand_data *this) r->gpmi_regs + HW_GPMI_CTRL1_SET); =20 err_out: - pm_runtime_mark_last_busy(this->dev); pm_runtime_put_autosuspend(this->dev); return ret; } @@ -758,7 +757,6 @@ static int bch_set_geometry(struct gpmi_nand_data *this) =20 ret =3D 0; err_out: - pm_runtime_mark_last_busy(this->dev); pm_runtime_put_autosuspend(this->dev); =20 return ret; @@ -2664,7 +2662,6 @@ static int gpmi_nfc_exec_op(struct nand_chip *chip, this->bch =3D false; =20 out_pm: - pm_runtime_mark_last_busy(this->dev); pm_runtime_put_autosuspend(this->dev); =20 return ret; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 962A72E9749; Fri, 4 Jul 2025 07:54:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615688; cv=none; b=liXG2B63lmdV+pXPCThnHzGlb412aDdk02+WU3Oq2hEQ1xf+DosSaLagnPrt0nT8v2wh/DaLcj00jnQp+9AMlQujZZ+esrD81S0B20gfLxrMF3hP4i9mwnmSeIL5Qx7YsBXFgN8e7ZkNbN5he5oPmX99wijTmH30e01iIDHmPAI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615688; c=relaxed/simple; bh=SFpwLRZISop0furwoQJo8BG1JtgCAauHXFOG/4Gn+xk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=dSK/Clg1H3sLT3AWp012kDlJqIzcJoddFhPWko0jnfQatvCCKj1Gd3tcpLfsfaWIeNas6czme7YBsH4RkOn35Yva+1LcICTf6vxQ1EYNOIIZhWxvM00shuIKeYxMVL0d65LrUfr5umleitE8D6mgZVtPMgUBu+cWhDRwh9cRQaQ= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=KA7g8DpE; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="KA7g8DpE" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615686; x=1783151686; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=SFpwLRZISop0furwoQJo8BG1JtgCAauHXFOG/4Gn+xk=; b=KA7g8DpEWRX7+46zZC8okEsgHPyvISFY1eVp0gzhu7QqlwTTVJ0dRwc7 pky38ITuBiK+12kzap/Tsf8z02ENlZcCoWAwUd3OZ6f7WAu88WopQMLYF 5vK5YwhgxyXjM3Yg7uS58FfMewbO5iLqxmLBgn88kFh8xOa2epLfYXSTy 2BPLwGEwZuUTaGiv/CAsjkH1AfHytfd+Vfb+hRUprGTJ4rVVnhXdss2C8 6VCMJx6mi+hCaZu7heJtjBGfxNGELIYqjG96RvvCiTghjczm3z7CADywk +JbVhgyCOFZ6Eterii1Ox3eqal+KoVYi0LMnPnGRAstyK0sB5heRvCY7T A==; X-CSE-ConnectionGUID: HfRR6UElRG+Gruv4lCFTTA== X-CSE-MsgGUID: 7v3tsprhS2yAYHALoDA6sw== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194133" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194133" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:45 -0700 X-CSE-ConnectionGUID: djc62gbKTxiURws2GKOgUA== X-CSE-MsgGUID: e/Hfg5C4SBehYt7AQVbbsA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616576" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:38 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 184434445A; Fri, 4 Jul 2025 10:54:36 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Nicolas Ferre , Claudiu Beznea , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Wei Fang , Shenwei Wang , Clark Wang , =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Paul Barker , Siddharth Vadapalli , Roger Quadros , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Sakari Ailus Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-renesas-soc@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH 46/80] net: ethernet: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:35 +0300 Message-Id: <20250704075435.3220683-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Reviewed-by: Niklas S=C3=B6derlund --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/net/ethernet/cadence/macb_main.c | 5 ----- drivers/net/ethernet/freescale/fec_main.c | 8 -------- drivers/net/ethernet/renesas/ravb_main.c | 4 ---- drivers/net/ethernet/ti/davinci_mdio.c | 7 ------- 4 files changed, 24 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/etherne= t/cadence/macb_main.c index 53aaf6b08e39..9b7cbb3e3108 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -360,7 +360,6 @@ static int macb_mdio_read_c22(struct mii_bus *bus, int = mii_id, int regnum) status =3D MACB_BFEXT(DATA, macb_readl(bp, MAN)); =20 mdio_read_exit: - pm_runtime_mark_last_busy(&bp->pdev->dev); pm_runtime_put_autosuspend(&bp->pdev->dev); mdio_pm_exit: return status; @@ -406,7 +405,6 @@ static int macb_mdio_read_c45(struct mii_bus *bus, int = mii_id, int devad, status =3D MACB_BFEXT(DATA, macb_readl(bp, MAN)); =20 mdio_read_exit: - pm_runtime_mark_last_busy(&bp->pdev->dev); pm_runtime_put_autosuspend(&bp->pdev->dev); mdio_pm_exit: return status; @@ -438,7 +436,6 @@ static int macb_mdio_write_c22(struct mii_bus *bus, int= mii_id, int regnum, goto mdio_write_exit; =20 mdio_write_exit: - pm_runtime_mark_last_busy(&bp->pdev->dev); pm_runtime_put_autosuspend(&bp->pdev->dev); mdio_pm_exit: return status; @@ -484,7 +481,6 @@ static int macb_mdio_write_c45(struct mii_bus *bus, int= mii_id, goto mdio_write_exit; =20 mdio_write_exit: - pm_runtime_mark_last_busy(&bp->pdev->dev); pm_runtime_put_autosuspend(&bp->pdev->dev); mdio_pm_exit: return status; @@ -5358,7 +5354,6 @@ static int macb_probe(struct platform_device *pdev) macb_is_gem(bp) ? "GEM" : "MACB", macb_readl(bp, MID), dev->base_addr, dev->irq, dev->dev_addr); =20 - pm_runtime_mark_last_busy(&bp->pdev->dev); pm_runtime_put_autosuspend(&bp->pdev->dev); =20 return 0; diff --git a/drivers/net/ethernet/freescale/fec_main.c b/drivers/net/ethern= et/freescale/fec_main.c index d4eed252ad40..e6979599ae7e 100644 --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -2207,7 +2207,6 @@ static int fec_enet_mdio_read_c22(struct mii_bus *bus= , int mii_id, int regnum) ret =3D FEC_MMFR_DATA(readl(fep->hwp + FEC_MII_DATA)); =20 out: - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; @@ -2256,7 +2255,6 @@ static int fec_enet_mdio_read_c45(struct mii_bus *bus= , int mii_id, ret =3D FEC_MMFR_DATA(readl(fep->hwp + FEC_MII_DATA)); =20 out: - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; @@ -2288,7 +2286,6 @@ static int fec_enet_mdio_write_c22(struct mii_bus *bu= s, int mii_id, int regnum, if (ret) netdev_err(fep->netdev, "MDIO write timeout\n"); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; @@ -2332,7 +2329,6 @@ static int fec_enet_mdio_write_c45(struct mii_bus *bu= s, int mii_id, netdev_err(fep->netdev, "MDIO write timeout\n"); =20 out: - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; @@ -2814,7 +2810,6 @@ static void fec_enet_get_regs(struct net_device *ndev, buf[off] =3D readl(&theregs[off]); } =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); } =20 @@ -3590,7 +3585,6 @@ fec_enet_open(struct net_device *ndev) err_enet_alloc: fec_enet_clk_enable(ndev, false); clk_enable: - pm_runtime_mark_last_busy(&fep->pdev->dev); pm_runtime_put_autosuspend(&fep->pdev->dev); pinctrl_pm_select_sleep_state(&fep->pdev->dev); return ret; @@ -3621,7 +3615,6 @@ fec_enet_close(struct net_device *ndev) cpu_latency_qos_remove_request(&fep->pm_qos_req); =20 pinctrl_pm_select_sleep_state(&fep->pdev->dev); - pm_runtime_mark_last_busy(&fep->pdev->dev); pm_runtime_put_autosuspend(&fep->pdev->dev); =20 fec_enet_free_buffers(ndev); @@ -4568,7 +4561,6 @@ fec_probe(struct platform_device *pdev) =20 INIT_WORK(&fep->tx_timeout_work, fec_enet_timeout_work); =20 - pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); =20 return 0; diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/etherne= t/renesas/ravb_main.c index c9f4976a3527..b8bfc3cdbb6b 100644 --- a/drivers/net/ethernet/renesas/ravb_main.c +++ b/drivers/net/ethernet/renesas/ravb_main.c @@ -1974,7 +1974,6 @@ static int ravb_open(struct net_device *ndev) out_set_reset: ravb_set_opmode(ndev, CCC_OPC_RESET); out_rpm_put: - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); out_napi_off: if (info->nc_queues) @@ -2383,7 +2382,6 @@ static int ravb_close(struct net_device *ndev) if (error) return error; =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; @@ -3089,7 +3087,6 @@ static int ravb_probe(struct platform_device *pdev) netdev_info(ndev, "Base address at %#x, %pM, IRQ %d.\n", (u32)ndev->base_addr, ndev->dev_addr, ndev->irq); =20 - pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); =20 return 0; @@ -3274,7 +3271,6 @@ static int ravb_resume(struct device *dev) =20 out_rpm_put: if (!priv->wol_enabled) { - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); } =20 diff --git a/drivers/net/ethernet/ti/davinci_mdio.c b/drivers/net/ethernet/= ti/davinci_mdio.c index 68507126be8e..9f049ebbf107 100644 --- a/drivers/net/ethernet/ti/davinci_mdio.c +++ b/drivers/net/ethernet/ti/davinci_mdio.c @@ -234,7 +234,6 @@ static int davinci_mdiobb_read_c22(struct mii_bus *bus,= int phy, int reg) =20 ret =3D mdiobb_read_c22(bus, phy, reg); =20 - pm_runtime_mark_last_busy(bus->parent); pm_runtime_put_autosuspend(bus->parent); =20 return ret; @@ -251,7 +250,6 @@ static int davinci_mdiobb_write_c22(struct mii_bus *bus= , int phy, int reg, =20 ret =3D mdiobb_write_c22(bus, phy, reg, val); =20 - pm_runtime_mark_last_busy(bus->parent); pm_runtime_put_autosuspend(bus->parent); =20 return ret; @@ -268,7 +266,6 @@ static int davinci_mdiobb_read_c45(struct mii_bus *bus,= int phy, int devad, =20 ret =3D mdiobb_read_c45(bus, phy, devad, reg); =20 - pm_runtime_mark_last_busy(bus->parent); pm_runtime_put_autosuspend(bus->parent); =20 return ret; @@ -285,7 +282,6 @@ static int davinci_mdiobb_write_c45(struct mii_bus *bus= , int phy, int devad, =20 ret =3D mdiobb_write_c45(bus, phy, devad, reg, val); =20 - pm_runtime_mark_last_busy(bus->parent); pm_runtime_put_autosuspend(bus->parent); =20 return ret; @@ -332,7 +328,6 @@ static int davinci_mdio_common_reset(struct davinci_mdi= o_data *data) data->bus->phy_mask =3D phy_mask; =20 done: - pm_runtime_mark_last_busy(data->dev); pm_runtime_put_autosuspend(data->dev); =20 return 0; @@ -441,7 +436,6 @@ static int davinci_mdio_read(struct mii_bus *bus, int p= hy_id, int phy_reg) break; } =20 - pm_runtime_mark_last_busy(data->dev); pm_runtime_put_autosuspend(data->dev); return ret; } @@ -478,7 +472,6 @@ static int davinci_mdio_write(struct mii_bus *bus, int = phy_id, break; } =20 - pm_runtime_mark_last_busy(data->dev); pm_runtime_put_autosuspend(data->dev); =20 return ret; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 9EE122E425B; Fri, 4 Jul 2025 07:54:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615684; cv=none; b=ivqMU5pmqK7c6EBR/NQXbZasYaG6EUa//luomj2iw+N5aXExcUMjtWuuX1DGz/6WN+19ne1Hlw2MJ/z8s+Ih0XmNnbQMVqKNkeC9gZwq92p56zo2XKYoRY2mzNanW6bOk+Zj3VFd6YUBX0Y7IWjd7kqq9AlDDXTXkogyOFFxrPA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615684; c=relaxed/simple; bh=8QGS586pL2Vx2KX9XeLloe4i2zvKJP8iAOXD73uMv0c=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=T/r5Bg/e6e52vezdkVRfYHJPaez/mR+pTYVIVFNziKHV/aZTP4O58ZWYYQOmQYV102ZV5tjIua1XDNHmoYH0SW3fdvF0A/RD0znp+7WDt4HaRLWd6LnHYvQWqEGXeVW/4psrrrTIWHv1mchNLJk5iSA64jKQnySKzS8ngf7EjOs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ieVxKGns; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ieVxKGns" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615683; x=1783151683; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=8QGS586pL2Vx2KX9XeLloe4i2zvKJP8iAOXD73uMv0c=; b=ieVxKGnsRTK/XMNVsxHqXDSaL2XpkOb9qoibpfComGY3ASw7h8p3RZPY yH1ltL3ifhdCpVPKXk2dBZxZhhndkqu+8klU8WmTX2awMr+MRZ+DIZa7y QWRH+aUM3uBosadx3PgISIHCMJhHGFcbFtqk17VCJUsbkKLqMdAGXkNjf L5mg9KeYfpsjpg95IOP7OAOk6cW9VVO9LlFmCCy9Vpqg19numRDUNbwVm dzNmd7xJE78AmZD2x2WLNYg52qNlJlNsidzDFzbYB73moq/J8R42HSs8S 7/ybsrYQSl++NSgH9xgoysdvI+S2EsuuWWwhM1kn5VNRKT10FBWhDvHKF g==; X-CSE-ConnectionGUID: ux1RhkpbReq2cnQJ5C8V+Q== X-CSE-MsgGUID: rItfn04ST+G9trjB7SviyA== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194118" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194118" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:42 -0700 X-CSE-ConnectionGUID: A742lPtkQpWtJwUYEUKHpQ== X-CSE-MsgGUID: VgCYBLmTSoqFu9DCqiqNIA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616578" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:39 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 02E4744394; Fri, 4 Jul 2025 10:54:37 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Alex Elder , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 47/80] net: ipa: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:36 +0300 Message-Id: <20250704075436.3220762-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/net/ipa/ipa_interrupt.c | 1 - drivers/net/ipa/ipa_main.c | 1 - drivers/net/ipa/ipa_modem.c | 4 ---- drivers/net/ipa/ipa_smp2p.c | 2 -- drivers/net/ipa/ipa_uc.c | 2 -- 5 files changed, 10 deletions(-) diff --git a/drivers/net/ipa/ipa_interrupt.c b/drivers/net/ipa/ipa_interrup= t.c index 245a06997055..8336596b1247 100644 --- a/drivers/net/ipa/ipa_interrupt.c +++ b/drivers/net/ipa/ipa_interrupt.c @@ -149,7 +149,6 @@ static irqreturn_t ipa_isr_thread(int irq, void *dev_id) iowrite32(pending, ipa->reg_virt + reg_offset(reg)); } out_power_put: - pm_runtime_mark_last_busy(dev); (void)pm_runtime_put_autosuspend(dev); =20 return IRQ_HANDLED; diff --git a/drivers/net/ipa/ipa_main.c b/drivers/net/ipa/ipa_main.c index f25f6e2cf58c..b37516de01fa 100644 --- a/drivers/net/ipa/ipa_main.c +++ b/drivers/net/ipa/ipa_main.c @@ -911,7 +911,6 @@ static int ipa_probe(struct platform_device *pdev) if (ret) goto err_deconfig; done: - pm_runtime_mark_last_busy(dev); (void)pm_runtime_put_autosuspend(dev); =20 return 0; diff --git a/drivers/net/ipa/ipa_modem.c b/drivers/net/ipa/ipa_modem.c index 8fe0d0e1a00f..9b136f6b8b4a 100644 --- a/drivers/net/ipa/ipa_modem.c +++ b/drivers/net/ipa/ipa_modem.c @@ -71,7 +71,6 @@ static int ipa_open(struct net_device *netdev) =20 netif_start_queue(netdev); =20 - pm_runtime_mark_last_busy(dev); (void)pm_runtime_put_autosuspend(dev); =20 return 0; @@ -102,7 +101,6 @@ static int ipa_stop(struct net_device *netdev) ipa_endpoint_disable_one(priv->rx); ipa_endpoint_disable_one(priv->tx); out_power_put: - pm_runtime_mark_last_busy(dev); (void)pm_runtime_put_autosuspend(dev); =20 return 0; @@ -175,7 +173,6 @@ ipa_start_xmit(struct sk_buff *skb, struct net_device *= netdev) =20 ret =3D ipa_endpoint_skb_tx(endpoint, skb); =20 - pm_runtime_mark_last_busy(dev); (void)pm_runtime_put_autosuspend(dev); =20 if (ret) { @@ -432,7 +429,6 @@ static void ipa_modem_crashed(struct ipa *ipa) dev_err(dev, "error %d zeroing modem memory regions\n", ret); =20 out_power_put: - pm_runtime_mark_last_busy(dev); (void)pm_runtime_put_autosuspend(dev); } =20 diff --git a/drivers/net/ipa/ipa_smp2p.c b/drivers/net/ipa/ipa_smp2p.c index fcaadd111a8a..420098796eec 100644 --- a/drivers/net/ipa/ipa_smp2p.c +++ b/drivers/net/ipa/ipa_smp2p.c @@ -171,7 +171,6 @@ static irqreturn_t ipa_smp2p_modem_setup_ready_isr(int = irq, void *dev_id) WARN(ret !=3D 0, "error %d from ipa_setup()\n", ret); =20 out_power_put: - pm_runtime_mark_last_busy(dev); (void)pm_runtime_put_autosuspend(dev); =20 return IRQ_HANDLED; @@ -213,7 +212,6 @@ static void ipa_smp2p_power_release(struct ipa *ipa) if (!ipa->smp2p->power_on) return; =20 - pm_runtime_mark_last_busy(dev); (void)pm_runtime_put_autosuspend(dev); ipa->smp2p->power_on =3D false; } diff --git a/drivers/net/ipa/ipa_uc.c b/drivers/net/ipa/ipa_uc.c index 2963db83ab6b..dc7e92f2a4fb 100644 --- a/drivers/net/ipa/ipa_uc.c +++ b/drivers/net/ipa/ipa_uc.c @@ -158,7 +158,6 @@ static void ipa_uc_response_hdlr(struct ipa *ipa) if (ipa->uc_powered) { ipa->uc_loaded =3D true; ipa_power_retention(ipa, true); - pm_runtime_mark_last_busy(dev); (void)pm_runtime_put_autosuspend(dev); ipa->uc_powered =3D false; } else { @@ -203,7 +202,6 @@ void ipa_uc_deconfig(struct ipa *ipa) if (!ipa->uc_powered) return; =20 - pm_runtime_mark_last_busy(dev); (void)pm_runtime_put_autosuspend(dev); } =20 --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 048F22EAD0C; Fri, 4 Jul 2025 07:54:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615690; cv=none; b=SkAo3AOnc9RauDLmhCTL2d7efNqJ5O27nLjFTgzse9UkRq+KtJybkswPipmYh47sKnUtrQLcLKg3dzK4sEyItIqjYnpGnOtg/OT6kA1dLpSLIrj8pBy6lWheF/O5QnB6VChHsEXWr4crXt7wDfOSTRxCnAamhb6VjTsrkMov7fs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615690; c=relaxed/simple; bh=HrouddiiiZ8tRNEOT5O2n4uTgzGX88z0KiQIrcIFHkY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=h86Umy6MI9VpYxZ0396++WYIUYhUwI3EKJd/nNWol8FoqbAbxAGQhhxdoXzF6BNfdFzZQK/aiA4kBvpQx4/5BjmvelIraSPHEAmc8polNLvlERwbabyIi5LYzDsZcgO4YkplPWn7yx3zDbg0i71wwljIQ3MSI2N4DQpJQubxPIY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=QEejTh0y; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="QEejTh0y" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615687; x=1783151687; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HrouddiiiZ8tRNEOT5O2n4uTgzGX88z0KiQIrcIFHkY=; b=QEejTh0y0XXVIczJ2fOzweslmnIOJmKyzmmG4/OJbyNNeBGo09b5TVoy A9KrxdFK8A+UhuHkKJ8esuPPHgUyp5r8N46WxWcTo299179aJFtP+p3ed uz4NG+YJb+/3thoxf/9R4rIBH5eBzdTUMIwPX2TW+MuD2GkeO6XvPHsD3 zl7t6/kAIlyV764CcyZ8ec6E6w90oDkGYj/uQeBWW+r6AtQgT7MH79nsE bLNl4enYL6pyOseT/bGMSDbihmh/DCjMOrJgHUZYKmpUskY7AdBXL8T/E K6Ahdxo9miMXY0BY/wkW5ITBTscmpAZDlW64Owqtr0I3Wda+dnY2a0Pdg g==; X-CSE-ConnectionGUID: If3xGhalTtKdVBJzct7plA== X-CSE-MsgGUID: QIIFVv5ISumA+sZJGj06tg== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194169" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194169" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:45 -0700 X-CSE-ConnectionGUID: griQfTS3QnybE8I9hXZrpg== X-CSE-MsgGUID: P1HaKl35TyiydesJN2FrSg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616611" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:40 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 2479C44433; Fri, 4 Jul 2025 10:54:38 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Maxime Coquelin , Alexandre Torgue , Sakari Ailus , "Dr. David Alan Gilbert" , Johannes Berg , Thomas Gleixner , Ingo Molnar , Andreas Kemnade , Roopni Devanathan , =?UTF-8?q?Thomas=20Wei=C3=9Fschuh?= , Kalle Valo , Greg Kroah-Hartman , Christophe JAILLET , Jeff Johnson Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH 48/80] net: wireless: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:37 +0300 Message-Id: <20250704075437.3220878-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/net/wireless/ath/wil6210/pm.c | 1 - drivers/net/wireless/ti/wl18xx/debugfs.c | 3 -- drivers/net/wireless/ti/wlcore/cmd.c | 1 - drivers/net/wireless/ti/wlcore/debugfs.c | 11 ------- drivers/net/wireless/ti/wlcore/main.c | 36 --------------------- drivers/net/wireless/ti/wlcore/scan.c | 1 - drivers/net/wireless/ti/wlcore/sysfs.c | 1 - drivers/net/wireless/ti/wlcore/testmode.c | 2 -- drivers/net/wireless/ti/wlcore/tx.c | 1 - drivers/net/wireless/ti/wlcore/vendor_cmd.c | 3 -- 10 files changed, 60 deletions(-) diff --git a/drivers/net/wireless/ath/wil6210/pm.c b/drivers/net/wireless/a= th/wil6210/pm.c index f521af575e9b..c866cfd144c7 100644 --- a/drivers/net/wireless/ath/wil6210/pm.c +++ b/drivers/net/wireless/ath/wil6210/pm.c @@ -458,6 +458,5 @@ void wil_pm_runtime_put(struct wil6210_priv *wil) { struct device *dev =3D wil_to_dev(wil); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); } diff --git a/drivers/net/wireless/ti/wl18xx/debugfs.c b/drivers/net/wireles= s/ti/wl18xx/debugfs.c index 80fbf740fe6d..ac756318e8ea 100644 --- a/drivers/net/wireless/ti/wl18xx/debugfs.c +++ b/drivers/net/wireless/ti/wl18xx/debugfs.c @@ -272,7 +272,6 @@ static ssize_t radar_detection_write(struct file *file, if (ret < 0) count =3D ret; =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -312,7 +311,6 @@ static ssize_t dynamic_fw_traces_write(struct file *fil= e, if (ret < 0) count =3D ret; =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -374,7 +372,6 @@ static ssize_t radar_debug_mode_write(struct file *file, wl->radar_debug_mode, 0); } =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); diff --git a/drivers/net/wireless/ti/wlcore/cmd.c b/drivers/net/wireless/ti= /wlcore/cmd.c index fa3a3f71dd15..9d73ba933a16 100644 --- a/drivers/net/wireless/ti/wlcore/cmd.c +++ b/drivers/net/wireless/ti/wlcore/cmd.c @@ -213,7 +213,6 @@ int wlcore_cmd_wait_for_event_or_timeout(struct wl1271 = *wl, } while (!event); =20 out: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); free_vector: kfree(events_vector); diff --git a/drivers/net/wireless/ti/wlcore/debugfs.c b/drivers/net/wireles= s/ti/wlcore/debugfs.c index eb3d3f0e0b4d..bbfd2725215b 100644 --- a/drivers/net/wireless/ti/wlcore/debugfs.c +++ b/drivers/net/wireless/ti/wlcore/debugfs.c @@ -63,7 +63,6 @@ void wl1271_debugfs_update_stats(struct wl1271 *wl) wl->stats.fw_stats_update =3D jiffies; } =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); =20 out: @@ -113,7 +112,6 @@ static void chip_op_handler(struct wl1271 *wl, unsigned= long value, chip_op =3D arg; chip_op(wl); =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); } =20 @@ -287,7 +285,6 @@ static ssize_t dynamic_ps_timeout_write(struct file *fi= le, wl1271_ps_set_mode(wl, wlvif, STATION_AUTO_PS_MODE); } =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); =20 out: @@ -357,7 +354,6 @@ static ssize_t forced_ps_write(struct file *file, wl1271_ps_set_mode(wl, wlvif, ps_mode); } =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); =20 out: @@ -830,7 +826,6 @@ static ssize_t rx_streaming_interval_write(struct file = *file, wl1271_recalc_rx_streaming(wl, wlvif); } =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -886,7 +881,6 @@ static ssize_t rx_streaming_always_write(struct file *f= ile, wl1271_recalc_rx_streaming(wl, wlvif); } =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -934,7 +928,6 @@ static ssize_t beacon_filtering_write(struct file *file, ret =3D wl1271_acx_beacon_filter_opt(wl, wlvif, !!value); } =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -1015,7 +1008,6 @@ static ssize_t sleep_auth_write(struct file *file, goto out_sleep; =20 out_sleep: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -1090,7 +1082,6 @@ static ssize_t dev_mem_read(struct file *file, goto part_err; =20 part_err: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); =20 skip_read: @@ -1172,7 +1163,6 @@ static ssize_t dev_mem_write(struct file *file, const= char __user *user_buf, goto part_err; =20 part_err: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); =20 skip_write: @@ -1247,7 +1237,6 @@ static ssize_t fw_logger_write(struct file *file, =20 ret =3D wl12xx_cmd_config_fwlog(wl); =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); =20 out: diff --git a/drivers/net/wireless/ti/wlcore/main.c b/drivers/net/wireless/t= i/wlcore/main.c index 6116a8522d96..12f0167d7380 100644 --- a/drivers/net/wireless/ti/wlcore/main.c +++ b/drivers/net/wireless/ti/wlcore/main.c @@ -154,7 +154,6 @@ static void wl1271_rx_streaming_enable_work(struct work= _struct *work) jiffies + msecs_to_jiffies(wl->conf.rx_streaming.duration)); =20 out_sleep: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -181,7 +180,6 @@ static void wl1271_rx_streaming_disable_work(struct wor= k_struct *work) goto out_sleep; =20 out_sleep: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -234,7 +232,6 @@ static void wlcore_rc_update_work(struct work_struct *w= ork) } =20 out_sleep: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -711,7 +708,6 @@ static int wlcore_irq_locked(struct wl1271 *wl) } =20 err_ret: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); =20 out: @@ -1047,7 +1043,6 @@ static void wl1271_recovery_work(struct work_struct *= work) } =20 wlcore_op_stop_locked(wl); - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); =20 ieee80211_restart_hw(wl->hw); @@ -1943,7 +1938,6 @@ static int __maybe_unused wl1271_op_resume(struct iee= e80211_hw *hw) goto out_sleep; =20 out_sleep: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); =20 out: @@ -2131,7 +2125,6 @@ static void wlcore_channel_switch_work(struct work_st= ruct *work) =20 wl12xx_cmd_stop_channel_switch(wl, wlvif); =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -2201,7 +2194,6 @@ static void wlcore_pending_auth_complete_work(struct = work_struct *work) /* cancel the ROC if active */ wlcore_update_inconn_sta(wl, wlvif, NULL, false); =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -2694,7 +2686,6 @@ static int wl1271_op_add_interface(struct ieee80211_h= w *hw, else wl->sta_count++; out: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out_unlock: mutex_unlock(&wl->mutex); @@ -2774,7 +2765,6 @@ static void __wl1271_op_remove_interface(struct wl127= 1 *wl, } } =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); } deinit: @@ -3200,7 +3190,6 @@ static int wl1271_op_config(struct ieee80211_hw *hw, = int radio_idx, u32 changed) } =20 out_sleep: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); =20 out: @@ -3315,7 +3304,6 @@ static void wl1271_op_configure_filter(struct ieee802= 11_hw *hw, */ =20 out_sleep: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); =20 out: @@ -3531,7 +3519,6 @@ static int wlcore_op_set_key(struct ieee80211_hw *hw,= enum set_key_cmd cmd, =20 ret =3D wlcore_hw_set_key(wl, cmd, vif, sta, key_conf); =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); =20 out_wake_queues: @@ -3695,7 +3682,6 @@ static void wl1271_op_set_default_key_idx(struct ieee= 80211_hw *hw, } =20 out_sleep: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); =20 out_unlock: @@ -3724,7 +3710,6 @@ void wlcore_regdomain_config(struct wl1271 *wl) goto out; } =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -3772,7 +3757,6 @@ static int wl1271_op_hw_scan(struct ieee80211_hw *hw, =20 ret =3D wlcore_scan(hw->priv, vif, ssid, len, req); out_sleep: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -3823,7 +3807,6 @@ static void wl1271_op_cancel_hw_scan(struct ieee80211= _hw *hw, ieee80211_scan_completed(wl->hw, &info); =20 out_sleep: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -3860,7 +3843,6 @@ static int wl1271_op_sched_scan_start(struct ieee8021= 1_hw *hw, wl->sched_vif =3D wlvif; =20 out_sleep: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -3887,7 +3869,6 @@ static int wl1271_op_sched_scan_stop(struct ieee80211= _hw *hw, =20 wl->ops->sched_scan_stop(wl, wlvif); =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -3916,7 +3897,6 @@ static int wl1271_op_set_frag_threshold(struct ieee80= 211_hw *hw, if (ret < 0) wl1271_warning("wl1271_op_set_frag_threshold failed: %d", ret); =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); =20 out: @@ -3948,7 +3928,6 @@ static int wl1271_op_set_rts_threshold(struct ieee802= 11_hw *hw, int radio_idx, if (ret < 0) wl1271_warning("set rts threshold failed: %d", ret); } - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); =20 out: @@ -4714,7 +4693,6 @@ static void wl1271_op_bss_info_changed(struct ieee802= 11_hw *hw, else wl1271_bss_info_changed_sta(wl, vif, bss_conf, changed); =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); =20 out: @@ -4779,7 +4757,6 @@ static void wlcore_op_change_chanctx(struct ieee80211= _hw *hw, } } =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -4828,7 +4805,6 @@ static int wlcore_op_assign_vif_chanctx(struct ieee80= 211_hw *hw, wlvif->radar_enabled =3D true; } =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -4871,7 +4847,6 @@ static void wlcore_op_unassign_vif_chanctx(struct iee= e80211_hw *hw, wlvif->radar_enabled =3D false; } =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -4941,7 +4916,6 @@ wlcore_op_switch_vif_chanctx(struct ieee80211_hw *hw, goto out_sleep; } out_sleep: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -4995,7 +4969,6 @@ static int wl1271_op_conf_tx(struct ieee80211_hw *hw, 0, 0); =20 out_sleep: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); =20 out: @@ -5029,7 +5002,6 @@ static u64 wl1271_op_get_tsf(struct ieee80211_hw *hw, goto out_sleep; =20 out_sleep: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); =20 out: @@ -5342,7 +5314,6 @@ static int wl12xx_op_sta_state(struct ieee80211_hw *h= w, =20 ret =3D wl12xx_update_sta_state(wl, wlvif, sta, old_state, new_state); =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -5467,7 +5438,6 @@ static int wl1271_op_ampdu_action(struct ieee80211_hw= *hw, ret =3D -EINVAL; } =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); =20 out: @@ -5511,7 +5481,6 @@ static int wl12xx_set_bitrate_mask(struct ieee80211_h= w *hw, wl1271_tx_min_rate_get(wl, wlvif->basic_rate_set); ret =3D wl1271_acx_sta_rate_policies(wl, wlvif); =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); } out: @@ -5566,7 +5535,6 @@ static void wl12xx_op_channel_switch(struct ieee80211= _hw *hw, } =20 out_sleep: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); =20 out: @@ -5645,7 +5613,6 @@ static void wlcore_op_channel_switch_beacon(struct ie= ee80211_hw *hw, set_bit(WLVIF_FLAG_CS_PROGRESS, &wlvif->flags); =20 out_sleep: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -5699,7 +5666,6 @@ static int wlcore_op_remain_on_channel(struct ieee802= 11_hw *hw, ieee80211_queue_delayed_work(hw, &wl->roc_complete_work, msecs_to_jiffies(duration)); out_sleep: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -5748,7 +5714,6 @@ static int wlcore_roc_completed(struct wl1271 *wl) =20 ret =3D __wlcore_roc_completed(wl); =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -5839,7 +5804,6 @@ static void wlcore_op_sta_statistics(struct ieee80211= _hw *hw, sinfo->signal =3D rssi_dbm; =20 out_sleep: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); =20 out: diff --git a/drivers/net/wireless/ti/wlcore/scan.c b/drivers/net/wireless/t= i/wlcore/scan.c index b414305acc32..f6dc54c1dbad 100644 --- a/drivers/net/wireless/ti/wlcore/scan.c +++ b/drivers/net/wireless/ti/wlcore/scan.c @@ -69,7 +69,6 @@ void wl1271_scan_complete_work(struct work_struct *work) =20 wlcore_cmd_regdomain_config_locked(wl); =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); =20 ieee80211_scan_completed(wl->hw, &info); diff --git a/drivers/net/wireless/ti/wlcore/sysfs.c b/drivers/net/wireless/= ti/wlcore/sysfs.c index 65ca5dc569a0..5ab6c1683675 100644 --- a/drivers/net/wireless/ti/wlcore/sysfs.c +++ b/drivers/net/wireless/ti/wlcore/sysfs.c @@ -58,7 +58,6 @@ static ssize_t bt_coex_state_store(struct device *dev, goto out; =20 wl1271_acx_sg_enable(wl, wl->sg_enabled); - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); =20 out: diff --git a/drivers/net/wireless/ti/wlcore/testmode.c b/drivers/net/wirele= ss/ti/wlcore/testmode.c index fc8ea58bc165..7c0cb1b7fef0 100644 --- a/drivers/net/wireless/ti/wlcore/testmode.c +++ b/drivers/net/wireless/ti/wlcore/testmode.c @@ -127,7 +127,6 @@ static int wl1271_tm_cmd_test(struct wl1271 *wl, struct= nlattr *tb[]) } =20 out_sleep: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -192,7 +191,6 @@ static int wl1271_tm_cmd_interrogate(struct wl1271 *wl,= struct nlattr *tb[]) out_free: kfree(cmd); out_sleep: - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); diff --git a/drivers/net/wireless/ti/wlcore/tx.c b/drivers/net/wireless/ti/= wlcore/tx.c index 464587d16ab2..f76087be2f75 100644 --- a/drivers/net/wireless/ti/wlcore/tx.c +++ b/drivers/net/wireless/ti/wlcore/tx.c @@ -863,7 +863,6 @@ void wl1271_tx_work(struct work_struct *work) goto out; } =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); diff --git a/drivers/net/wireless/ti/wlcore/vendor_cmd.c b/drivers/net/wire= less/ti/wlcore/vendor_cmd.c index e4269e2b0098..5bb9eb300f97 100644 --- a/drivers/net/wireless/ti/wlcore/vendor_cmd.c +++ b/drivers/net/wireless/ti/wlcore/vendor_cmd.c @@ -60,7 +60,6 @@ wlcore_vendor_cmd_smart_config_start(struct wiphy *wiphy, ret =3D wlcore_smart_config_start(wl, nla_get_u32(tb[WLCORE_VENDOR_ATTR_GROUP_ID])); =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -92,7 +91,6 @@ wlcore_vendor_cmd_smart_config_stop(struct wiphy *wiphy, =20 ret =3D wlcore_smart_config_stop(wl); =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); @@ -140,7 +138,6 @@ wlcore_vendor_cmd_smart_config_set_group_key(struct wip= hy *wiphy, nla_len(tb[WLCORE_VENDOR_ATTR_GROUP_KEY]), nla_data(tb[WLCORE_VENDOR_ATTR_GROUP_KEY])); =20 - pm_runtime_mark_last_busy(wl->dev); pm_runtime_put_autosuspend(wl->dev); out: mutex_unlock(&wl->mutex); --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 3DDCD2EBDE7; Fri, 4 Jul 2025 07:54:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615693; cv=none; b=eF6xmnE5O+y4WCOXFYLLA1Upm/gOUpZjeWtTEFHWuiiGzTQuLFtAz3pACfzRqiPW5yrY87XtAnKW7xyIJ+dFswgbFzFtkI44AQYaIKFGHHoWY3776HfI3ZU+uCqS90DmKii6755C2anoeaZxyV/n6yffnRzq8YagaIHsb98mXBE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615693; c=relaxed/simple; bh=hyWAk5z1QUsJGUbRvUTThY6VNc9AoUkJ1kHyaPRnIbo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=VCepyyACdDojfd+MYK1ylQVBjgxsq2TQzpzn0EYognZC25naNKJB5fj0l3wQ0BmBbrnLRMXgfrc8kof+Ham5VunqTSu2pWn1EmLcRPNv06Ks18Jr0i2I6a6/liixMc5HWQGioe7AOn/OMXga/+KF8+94A4bqnwV1OLZCjxx+Abw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=CgiVaCVY; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="CgiVaCVY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615692; x=1783151692; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=hyWAk5z1QUsJGUbRvUTThY6VNc9AoUkJ1kHyaPRnIbo=; b=CgiVaCVYllWMGiArMK3xjjNzzRzcvPncGozxuvpHfHz1iqRH6ph16Oah oaibz7Ccc0a9D5wwreCG4nWzq3b/Bw4el4x/7fq1J3QOcjNCbwpvp5TXI 9ZXALQhsV5uPYfA/1XWXVsAPDLhk93qnnl1ZPxIGowICblxPokkh4dxd0 3qEHUSTXM/eH6AzbAo21ns3PvTP3VpqbgbfcfArYmaOfpFYAQAbkRG9UA K9owlt3wQNo/4VEtVEQm3Y1PQ3U5UEbnGRxCCFR2pC9f1yJ1/vtwDzHO9 w/ar9lbH6LMjvnzzoPcTLyYDN9xxE9JomTr/8WfuEyoPyNyTAV2cfiWlB g==; X-CSE-ConnectionGUID: ldcOsypZSoepmBoGrM2htg== X-CSE-MsgGUID: iytzzxc8RBK1abMtBA/nsw== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194223" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194223" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:47 -0700 X-CSE-ConnectionGUID: pdaZkN2HSmmG7VcNv7D8Gg== X-CSE-MsgGUID: wlom+0t5QtWsuT9HskDdqA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616617" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:41 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 18370447EB; Fri, 4 Jul 2025 10:54:39 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Stephan Gerhold , Loic Poulain , Sergey Ryazanov , Johannes Berg , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Chandrashekar Devegowda , Chiranjeevi Rapolu , Liu Haijun , M Chetan Kumar , Ricardo Martinez Cc: netdev@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 49/80] net: wwan: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:38 +0300 Message-Id: <20250704075438.3220967-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Reviewed-by: Sergey Ryazanov --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/net/wwan/qcom_bam_dmux.c | 2 -- drivers/net/wwan/t7xx/t7xx_hif_cldma.c | 3 --- drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.c | 2 -- drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.c | 2 -- 4 files changed, 9 deletions(-) diff --git a/drivers/net/wwan/qcom_bam_dmux.c b/drivers/net/wwan/qcom_bam_d= mux.c index 64dab8b57611..6a5b22589af4 100644 --- a/drivers/net/wwan/qcom_bam_dmux.c +++ b/drivers/net/wwan/qcom_bam_dmux.c @@ -162,7 +162,6 @@ static void bam_dmux_tx_done(struct bam_dmux_skb_dma *s= kb_dma) struct bam_dmux *dmux =3D skb_dma->dmux; unsigned long flags; =20 - pm_runtime_mark_last_busy(dmux->dev); pm_runtime_put_autosuspend(dmux->dev); =20 if (skb_dma->addr) @@ -397,7 +396,6 @@ static void bam_dmux_tx_wakeup_work(struct work_struct = *work) dma_async_issue_pending(dmux->tx); =20 out: - pm_runtime_mark_last_busy(dmux->dev); pm_runtime_put_autosuspend(dmux->dev); } =20 diff --git a/drivers/net/wwan/t7xx/t7xx_hif_cldma.c b/drivers/net/wwan/t7xx= /t7xx_hif_cldma.c index 97163e1e5783..689c920ca898 100644 --- a/drivers/net/wwan/t7xx/t7xx_hif_cldma.c +++ b/drivers/net/wwan/t7xx/t7xx_hif_cldma.c @@ -250,7 +250,6 @@ static void t7xx_cldma_rx_done(struct work_struct *work) t7xx_cldma_clear_ip_busy(&md_ctrl->hw_info); t7xx_cldma_hw_irq_en_txrx(&md_ctrl->hw_info, queue->index, MTK_RX); t7xx_cldma_hw_irq_en_eq(&md_ctrl->hw_info, queue->index, MTK_RX); - pm_runtime_mark_last_busy(md_ctrl->dev); pm_runtime_put_autosuspend(md_ctrl->dev); } =20 @@ -362,7 +361,6 @@ static void t7xx_cldma_tx_done(struct work_struct *work) } spin_unlock_irqrestore(&md_ctrl->cldma_lock, flags); =20 - pm_runtime_mark_last_busy(md_ctrl->dev); pm_runtime_put_autosuspend(md_ctrl->dev); } =20 @@ -987,7 +985,6 @@ int t7xx_cldma_send_skb(struct cldma_ctrl *md_ctrl, int= qno, struct sk_buff *skb =20 allow_sleep: t7xx_pci_enable_sleep(md_ctrl->t7xx_dev); - pm_runtime_mark_last_busy(md_ctrl->dev); pm_runtime_put_autosuspend(md_ctrl->dev); return ret; } diff --git a/drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.c b/drivers/net/wwan/= t7xx/t7xx_hif_dpmaif_rx.c index 6a7a26085fc7..15d2a65a51de 100644 --- a/drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.c +++ b/drivers/net/wwan/t7xx/t7xx_hif_dpmaif_rx.c @@ -877,7 +877,6 @@ int t7xx_dpmaif_napi_rx_poll(struct napi_struct *napi, = const int budget) t7xx_dpmaif_clr_ip_busy_sts(&rxq->dpmaif_ctrl->hw_info); t7xx_dpmaif_dlq_unmask_rx_done(&rxq->dpmaif_ctrl->hw_info, rxq->index); t7xx_pci_enable_sleep(rxq->dpmaif_ctrl->t7xx_dev); - pm_runtime_mark_last_busy(rxq->dpmaif_ctrl->dev); pm_runtime_put_autosuspend(rxq->dpmaif_ctrl->dev); atomic_set(&rxq->rx_processing, 0); } else { @@ -1078,7 +1077,6 @@ static void t7xx_dpmaif_bat_release_work(struct work_= struct *work) } =20 t7xx_pci_enable_sleep(dpmaif_ctrl->t7xx_dev); - pm_runtime_mark_last_busy(dpmaif_ctrl->dev); pm_runtime_put_autosuspend(dpmaif_ctrl->dev); } =20 diff --git a/drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.c b/drivers/net/wwan/= t7xx/t7xx_hif_dpmaif_tx.c index 8dab025a088a..236d632cf591 100644 --- a/drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.c +++ b/drivers/net/wwan/t7xx/t7xx_hif_dpmaif_tx.c @@ -185,7 +185,6 @@ static void t7xx_dpmaif_tx_done(struct work_struct *wor= k) } =20 t7xx_pci_enable_sleep(dpmaif_ctrl->t7xx_dev); - pm_runtime_mark_last_busy(dpmaif_ctrl->dev); pm_runtime_put_autosuspend(dpmaif_ctrl->dev); } =20 @@ -468,7 +467,6 @@ static int t7xx_dpmaif_tx_hw_push_thread(void *arg) t7xx_pci_disable_sleep(dpmaif_ctrl->t7xx_dev); t7xx_do_tx_hw_push(dpmaif_ctrl); t7xx_pci_enable_sleep(dpmaif_ctrl->t7xx_dev); - pm_runtime_mark_last_busy(dpmaif_ctrl->dev); pm_runtime_put_autosuspend(dpmaif_ctrl->dev); } =20 --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 96C0F2D542C; Fri, 4 Jul 2025 07:54:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615685; cv=none; b=Q3VDSepiYJUJSIsvC6wGafHkeJTfSaZgezaw+8PA4jJLmlZeHl94yBarbrIF3F/8Y7t8Lozmt/u8QmQrM4UsxJXYJH6q7YWURkWXycqJ0ovamHDXn63diNIEJJdQSrui2ONzkIjFzRd1JXHsfqed2w8nR8pmvaZvdH3aiUxO6kI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615685; c=relaxed/simple; bh=logG108dBu9v+vZYmJaE48QCvdOD6icuV7EBnGifvsg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=NiJsKcoAUaY4XtX/XqmO6Og9fuogxCUnE//068g6qbFClog7eoaBiFQNxoPMbeMkMxOs3FGA8wl0M3RHkRZ7Q9qowFwkyEw4g/mncnc2RKfLfTs2XtX8ysTKCniS/4y4Y/l4Bo+4K2T6vtP8798XDvy7xFdk6FEmzP4hs51Ul0o= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=et60A+wg; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="et60A+wg" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615684; x=1783151684; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=logG108dBu9v+vZYmJaE48QCvdOD6icuV7EBnGifvsg=; b=et60A+wgq6ISM4GjspNUpyRrKOfpEW3a00WN/zWYCu679/xm7leuYdCz ZaSNNbHzCcnBjoJJjl9VZhXdu6aI/nvcGzbqAqESqTejeYk+8E3YyLnK8 I6nPvLYt0QK1JHfJVjKCBeoXj5Crodrx/Kov0WZTRxrM0eFYW4ghQ5At0 g/YYBlvRs4mFgxIPnCETdAqK6urMIrbegiA8aweyQvkhx70zeFWP8fzKM tXcZVbn7V6WVS4x195LNk97PpD5VRK0nuD0fuhnqWsqIv3C5+7lXcy+/3 jDxG/41DP2yWNka2ftv20XeHOHTK/H7JxmD4C5E//xkDGOW84P2xl6he5 A==; X-CSE-ConnectionGUID: xgPG8+RvQem4YvrodoyOqQ== X-CSE-MsgGUID: ijRRG5kjQ3aeulZVRGgqLA== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194126" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194126" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:44 -0700 X-CSE-ConnectionGUID: rbi9tavUSMOh371v/XWsQA== X-CSE-MsgGUID: 6ST/TLHmQKiMFn0fLWSHsg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616594" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:41 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id A488744424; Fri, 4 Jul 2025 10:54:39 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Mark Greer , Krzysztof Kozlowski Cc: linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 50/80] nfc: trf7970a: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:39 +0300 Message-Id: <20250704075439.3221036-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/nfc/trf7970a.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/nfc/trf7970a.c b/drivers/nfc/trf7970a.c index d17c701c7888..2d0d348aa278 100644 --- a/drivers/nfc/trf7970a.c +++ b/drivers/nfc/trf7970a.c @@ -1139,7 +1139,6 @@ static void trf7970a_switch_rf_off(struct trf7970a *t= rf) trf->aborting =3D false; trf->state =3D TRF7970A_ST_RF_OFF; =20 - pm_runtime_mark_last_busy(trf->dev); pm_runtime_put_autosuspend(trf->dev); } =20 --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 DEF5C2E9EC3; Fri, 4 Jul 2025 07:54:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615688; cv=none; b=PPfRiFvFdHNsjQqOdhPSB587uwRParRf1iH29IIiUS9bYg14k8oCWXPbmHpLTJ9xPRPJPpmTjxJaRKDlCLmiUTKi71RXW9affewfFt8NAe96MELkuwlSHwF5CsXGN8gu6oHx5xebykSArcqwB6jL7IX/wOGM2BtE8Wf4CMER2Ho= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615688; c=relaxed/simple; bh=+8ypEnrOSHNWmYk7TUoUtoXx75kXADyAx4bTfxfHe9g=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=nxLLYqs4+rZcqP6rkLoLhvgjSrkQRCIV3JOA3Mr7Jc29Bj0RaXR18plU8Ip6Sf5lUCza6AlHeqzFYibdq0IZjRDozMFFW2HIKpw28cn81sOCbD+aDsJUkI4qk2q/vhAgF/TQAWRWQv80gv1iRUVNzkgd3c5zMf5oSf80SwGI5YY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=mwDLR+nt; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mwDLR+nt" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615686; x=1783151686; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=+8ypEnrOSHNWmYk7TUoUtoXx75kXADyAx4bTfxfHe9g=; b=mwDLR+ntnXfu7V3x+imtA6qUz78PKD8tokWTbbIVvK07cFl3oO2c9rb+ TZWX2L30wNTLprOnnwMzZSAuen9/liVAXxhWuNfs9bLZPbaIDBoA2xT9Z dYUggLlEPrvwsiCAahuhdX6zwslKOesxTovre539VLXOgFR/m/Jvi3Hnc 1hsmYZ1DKx0HuG4sumsGLuzq98sWbfeSyXqnx3hl3wqoVxBcpcoZu3eDU oQfrOuobLOoHTxMEXcEudUPR3ly1Fi7gg7Nvlo1dAiDB6nP5Gt+6WbDDL UhMJc96yZVOSLISnuuye5vVqQjOk2MjaANdbgNbiwfdQF9rQp0+1lcpMY A==; X-CSE-ConnectionGUID: uyRUBKDSSe2h6GPv0fDHaQ== X-CSE-MsgGUID: uLF+zP8BSxaJ4I3XkTQ37Q== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194164" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194164" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:45 -0700 X-CSE-ConnectionGUID: yhWhzgQXS7SKYpJCWSSs3Q== X-CSE-MsgGUID: jgyy/fS6TJmi2BN+pnLdVw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616596" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:42 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 4D1E64488D; Fri, 4 Jul 2025 10:54:40 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Bjorn Helgaas , Jonathan Cameron , Lukas Wunner , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Kuppuswamy Sathyanarayanan , Feng Tang , Sakari Ailus Cc: linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 51/80] PCI/portdrv: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:40 +0300 Message-Id: <20250704075440.3221105-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/pci/pcie/portdrv.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pci/pcie/portdrv.c b/drivers/pci/pcie/portdrv.c index e8318fd5f6ed..437e27f63c82 100644 --- a/drivers/pci/pcie/portdrv.c +++ b/drivers/pci/pcie/portdrv.c @@ -714,7 +714,6 @@ static int pcie_portdrv_probe(struct pci_dev *dev, */ pm_runtime_set_autosuspend_delay(&dev->dev, 100); pm_runtime_use_autosuspend(&dev->dev); - pm_runtime_mark_last_busy(&dev->dev); pm_runtime_put_autosuspend(&dev->dev); pm_runtime_allow(&dev->dev); } --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 978802EF2AC for ; Fri, 4 Jul 2025 07:54:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615694; cv=none; b=ITp4/pEUJdaXpA6bq4YZeHWvqXchNyH11QZvoObFwb0kbzhWMZz84RbNLLZZiXnhV1R+YhuQ2bkkR5Ieax4JYa4OYBzZu0b2hPDNaeY6JOjk2K/Vzu4yh9Msv30/HxjdmIIRkNaFIl2C9GA7CBmMnBmhkiLb4WSZcnphQJtReKc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615694; c=relaxed/simple; bh=NO75yl0C/QCwRChAfVosDGNmtR5VgVEkJtdizny75eQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=HrwWoS6l//o9bB66E5CL+vuz3+f5qpZc+fFSNsj7+BxYbNxK5UQBZgI6wqVXyYXAIgbIgpsv+iX19hVLdtxIWBB2VzYHPHMIufdOg9r4avsmp6zK6CLWYf1cyPq8vxef05ClWbq0ZZbetXfRxAgjlKUGxxo9CeVZQIqWGhU4wv8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=XFPyJhM/; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="XFPyJhM/" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615693; x=1783151693; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=NO75yl0C/QCwRChAfVosDGNmtR5VgVEkJtdizny75eQ=; b=XFPyJhM/0Gidlo4lwigeJVw8jzfMAeiag83nE6MVPTKNHSGdONv0a1VM 9HovT2WeKESPwrAfL4vK0rIr1LUFA4Xe3F4ufeR/c/kA3RhglZzqDSzHz en90n+Mp7jsEjrGKP4sgllqM6BFaHZ4vTg0w6u4/KyncwPyFak3Ufg2w4 ujkkMsRKk7urmyCOTvVith6OItUL5IUIuHLHxsNv1mfqiH09Y3Q2kQepD khpcsH8VkurFCddrwMf4NBj1wEKbqknOUEWx8xEa4av7pZFPmI5lNKjQy fde6X0eXM3VuWdiQYDp2SCGhzE38OBw07n5q/kqayV62153PvQMiMDQ7g Q==; X-CSE-ConnectionGUID: jv8gXHKIQfeC9rj0BeVDNA== X-CSE-MsgGUID: SMCd7f+wQDKY3rKRbryQHw== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194220" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194220" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:47 -0700 X-CSE-ConnectionGUID: QEo8glDxTqWRbZPCkwigrA== X-CSE-MsgGUID: Vww84vogRU6mgpGMnplGHw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616602" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:43 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 30B1844910; Fri, 4 Jul 2025 10:54:41 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Vinod Koul , Kishon Vijay Abraham I , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Bartosz Golaszewski , David Lechner , Linus Walleij , Sakari Ailus Cc: linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 52/80] phy: motorola: phy-mapphone-mdm6600: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:40 +0300 Message-Id: <20250704075440.3221183-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/phy/motorola/phy-mapphone-mdm6600.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/phy/motorola/phy-mapphone-mdm6600.c b/drivers/phy/moto= rola/phy-mapphone-mdm6600.c index fd0e0cd1c1cf..c82826bd2832 100644 --- a/drivers/phy/motorola/phy-mapphone-mdm6600.c +++ b/drivers/phy/motorola/phy-mapphone-mdm6600.c @@ -248,7 +248,6 @@ static irqreturn_t phy_mdm6600_wakeirq_thread(int irq, = void *data) } =20 /* Just wake-up and kick the autosuspend timer */ - pm_runtime_mark_last_busy(ddata->dev); pm_runtime_put_autosuspend(ddata->dev); =20 return IRQ_HANDLED; @@ -616,7 +615,6 @@ static int phy_mdm6600_probe(struct platform_device *pd= ev) error =3D PTR_ERR(ddata->phy_provider); =20 idle: - pm_runtime_mark_last_busy(ddata->dev); pm_runtime_put_autosuspend(ddata->dev); =20 cleanup: --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 19FFE2EF664 for ; Fri, 4 Jul 2025 07:54:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615695; cv=none; b=CTMwgfhjLzo8k21vaaIE+DxX0MbvWXSnjXnFabgjxxGrUURi7GGDCF2Sx5AQcMUHozT7biOdHHZ+w45RGoXPt5VvbyQmcMedkEPKPywUx8r/3r2PitJjO6KvqR544FbuvscwGqoFeBBFje1G49g+IVrGHhXJZ6+RhlbImXHz2b4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615695; c=relaxed/simple; bh=FD8NSdsEQqeGz8ildUOGKLMTm/GKTBxIB/60rQo+QMY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=SytGepeUKbNrbTaOyzuI7IAquYOR2lqwtPjHGBPS9zKcwq5cQ1P2HLh7+Lgl8MeHDhxOirLLQ95CxkZNcqLnWFNC+n1+Pd+cEwa1frkWjMsMntbZcHuQRjT4fDTDpm+SoHx3NE9RPpyaXrtQXb5Z/D+jnpA0ezJBBJUGN57xk5U= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=AdCGzw+c; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="AdCGzw+c" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615693; x=1783151693; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FD8NSdsEQqeGz8ildUOGKLMTm/GKTBxIB/60rQo+QMY=; b=AdCGzw+cQiMB/Tx6FCDUzfohbDX9wQRl52G1If0eqd3lauWEV9tTSatk JVevR5s1zbIREA6LU13cdTHUrCsVI56MapICPzcUoJFSi4Gh0+HVlPOzy DBGrOJrV0V36+ZewgWxv5j2zKPI+kPL7fmURZigeFpZVmwCfcDqCrQXuU QvBGUx3209fHyRvd5j/VSiF4P6PldQddmzdUcgxg4vgXA/5Ud/OyR4e/0 iZaRbCHFQ8XYXxms+hvVzIS1ZWzBa9S2MnN/GKn8fFx2s9QMFWNl6g0X0 t+P2Dm7JC4KYRoeFGmtlXRPTCGMlU7XeE+FSWUFDnHxHn5Ax25rl1hrTL g==; X-CSE-ConnectionGUID: YROJz4ajSbS72EKrtFxIiA== X-CSE-MsgGUID: /Lgnsw6CQFuTV1ZHqUYY5w== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194226" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194226" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:47 -0700 X-CSE-ConnectionGUID: Bgwjjc6LR7GBqHNaIjSxEQ== X-CSE-MsgGUID: gXyyhgBTQJmOvqWtYsKw4A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616606" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:44 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id D896A44394; Fri, 4 Jul 2025 10:54:41 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Vinod Koul , Kishon Vijay Abraham I , Sakari Ailus , Johan Hovold , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Cc: linux-phy@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 53/80] phy: ti: phy-twl4030-usb: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:41 +0300 Message-Id: <20250704075441.3221235-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/phy/ti/phy-twl4030-usb.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/phy/ti/phy-twl4030-usb.c b/drivers/phy/ti/phy-twl4030-= usb.c index a26aec3ab29e..1d26189ace4f 100644 --- a/drivers/phy/ti/phy-twl4030-usb.c +++ b/drivers/phy/ti/phy-twl4030-usb.c @@ -505,7 +505,6 @@ static int twl4030_phy_power_on(struct phy *phy) dev_dbg(twl->dev, "%s\n", __func__); pm_runtime_get_sync(twl->dev); schedule_delayed_work(&twl->id_workaround_work, HZ); - pm_runtime_mark_last_busy(twl->dev); pm_runtime_put_autosuspend(twl->dev); =20 return 0; @@ -598,7 +597,6 @@ static irqreturn_t twl4030_usb_irq(int irq, void *_twl) if (atomic_add_unless(&twl->connected, -1, 0)) { dev_dbg(twl->dev, "%s: cable disconnected %i\n", __func__, status); - pm_runtime_mark_last_busy(twl->dev); pm_runtime_put_autosuspend(twl->dev); twl->musb_mailbox_pending =3D true; } @@ -636,7 +634,6 @@ static int twl4030_phy_init(struct phy *phy) pm_runtime_get_sync(twl->dev); twl->linkstat =3D MUSB_UNKNOWN; schedule_delayed_work(&twl->id_workaround_work, HZ); - pm_runtime_mark_last_busy(twl->dev); pm_runtime_put_autosuspend(twl->dev); =20 return 0; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 55E3D2ED870; Fri, 4 Jul 2025 07:54:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615692; cv=none; b=sT7gw5sEBZxSSO//eIo3VkPNoliNsqLxZizR7OrqCbZ1lCBtF3zNZ4TWhFZ1RrDr6FY96e+FI7VChjsBAZ8R9dt489kXu/AIgfxMZ1PChUosVziuohZo5Z0NCrCdayur18M7KFOR+B8SQt3yr44sXKhYfccBE9mHuxsiAMVVfR8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615692; c=relaxed/simple; bh=z1WU7aXqnXZQeYjv9jg8ZGRmWpkJQr3gpOv29qe4/Xk=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=m5PL6nieeyLkdVkZ6sfq+Y6ZgQwCL7Yv0fDH4cANycvHm1usF4xzbUFBecfKjhpurVUT2xdsjQ1K5v2agxUkrCnFAQfMC+7S2A8c5s75Zbnjl2fYDUZVntyW8+aI+GKTju4XRdvQCGqW7tUbloK4HbwtkZ7H/GutKJ58bIGA47I= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=GluMr4ia; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="GluMr4ia" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615691; x=1783151691; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=z1WU7aXqnXZQeYjv9jg8ZGRmWpkJQr3gpOv29qe4/Xk=; b=GluMr4iaTHcpI/haVvDFT+LJAWVPaCJABECMKIe8ar+P4hJequX8UTAC 4KhtJultc0/urCTQPjOHxj1WQYTNj9A5wWCxjs3DzVMj+AdyVViCw8ul1 ogmp0WJFdLUp8wFI8fvJf3OEw3Bi5sTpjEMfR8yseqmhImUXE1xDddjGS BQBoh0y5TPHwMl1adreI5jkYJR5D4EMQK2QsrSyV2NpLWnv73PlcNNGCC x7EGRfe6bsY/K/2q2ALrI5mUvpfm39rcMYBYfg3o4tdO9CDtc/EkUjskF NmkzqJzxKc/+sgNwU9Q1mXS+QvsGWdwYfuT1JSxUyZmVibeLJdSV/s0t4 g==; X-CSE-ConnectionGUID: fAdWTSibTaq4jNlm6yGSFA== X-CSE-MsgGUID: 0fuwQJeDTAmQlPb5YNQUdw== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194215" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194215" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:47 -0700 X-CSE-ConnectionGUID: XHyrtIOfR5yd2sGnu7Nx4A== X-CSE-MsgGUID: Wt9qK+XmSAGm2W2+KMQOmA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616607" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:44 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 8063744A4B; Fri, 4 Jul 2025 10:54:42 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Sebastian Reichel Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 54/80] power: supply: bq24190: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:42 +0300 Message-Id: <20250704075442.3221283-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/power/supply/bq24190_charger.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/power/supply/bq24190_charger.c b/drivers/power/supply/= bq24190_charger.c index 2c3804e1207e..e1510c7fdab3 100644 --- a/drivers/power/supply/bq24190_charger.c +++ b/drivers/power/supply/bq24190_charger.c @@ -504,7 +504,6 @@ static ssize_t bq24190_sysfs_show(struct device *dev, else count =3D sysfs_emit(buf, "%hhx\n", v); =20 - pm_runtime_mark_last_busy(bdi->dev); pm_runtime_put_autosuspend(bdi->dev); =20 return count; @@ -535,7 +534,6 @@ static ssize_t bq24190_sysfs_store(struct device *dev, if (ret) count =3D ret; =20 - pm_runtime_mark_last_busy(bdi->dev); pm_runtime_put_autosuspend(bdi->dev); =20 return count; @@ -562,7 +560,6 @@ static int bq24190_set_otg_vbus(struct bq24190_dev_info= *bdi, bool enable) else ret =3D bq24190_charger_set_charge_type(bdi, &val); =20 - pm_runtime_mark_last_busy(bdi->dev); pm_runtime_put_autosuspend(bdi->dev); =20 return ret; @@ -605,7 +602,6 @@ static int bq24296_set_otg_vbus(struct bq24190_dev_info= *bdi, bool enable) } =20 out: - pm_runtime_mark_last_busy(bdi->dev); pm_runtime_put_autosuspend(bdi->dev); =20 return ret; @@ -638,7 +634,6 @@ static int bq24190_vbus_is_enabled(struct regulator_dev= *dev) BQ24190_REG_POC_CHG_CONFIG_MASK, BQ24190_REG_POC_CHG_CONFIG_SHIFT, &val); =20 - pm_runtime_mark_last_busy(bdi->dev); pm_runtime_put_autosuspend(bdi->dev); =20 if (ret) @@ -675,7 +670,6 @@ static int bq24296_vbus_is_enabled(struct regulator_dev= *dev) BQ24296_REG_POC_OTG_CONFIG_MASK, BQ24296_REG_POC_OTG_CONFIG_SHIFT, &val); =20 - pm_runtime_mark_last_busy(bdi->dev); pm_runtime_put_autosuspend(bdi->dev); =20 if (ret) @@ -1376,7 +1370,6 @@ static int bq24190_charger_get_property(struct power_= supply *psy, ret =3D -ENODATA; } =20 - pm_runtime_mark_last_busy(bdi->dev); pm_runtime_put_autosuspend(bdi->dev); =20 return ret; @@ -1419,7 +1412,6 @@ static int bq24190_charger_set_property(struct power_= supply *psy, ret =3D -EINVAL; } =20 - pm_runtime_mark_last_busy(bdi->dev); pm_runtime_put_autosuspend(bdi->dev); =20 return ret; @@ -1682,7 +1674,6 @@ static int bq24190_battery_get_property(struct power_= supply *psy, ret =3D -ENODATA; } =20 - pm_runtime_mark_last_busy(bdi->dev); pm_runtime_put_autosuspend(bdi->dev); =20 return ret; @@ -1713,7 +1704,6 @@ static int bq24190_battery_set_property(struct power_= supply *psy, ret =3D -EINVAL; } =20 - pm_runtime_mark_last_busy(bdi->dev); pm_runtime_put_autosuspend(bdi->dev); =20 return ret; @@ -1861,7 +1851,6 @@ static irqreturn_t bq24190_irq_handler_thread(int irq= , void *data) return IRQ_NONE; } bq24190_check_status(bdi); - pm_runtime_mark_last_busy(bdi->dev); pm_runtime_put_autosuspend(bdi->dev); bdi->irq_event =3D false; =20 @@ -2188,7 +2177,6 @@ static int bq24190_probe(struct i2c_client *client) =20 enable_irq_wake(client->irq); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; @@ -2275,7 +2263,6 @@ static __maybe_unused int bq24190_pm_suspend(struct d= evice *dev) bq24190_register_reset(bdi); =20 if (error >=3D 0) { - pm_runtime_mark_last_busy(bdi->dev); pm_runtime_put_autosuspend(bdi->dev); } =20 @@ -2300,7 +2287,6 @@ static __maybe_unused int bq24190_pm_resume(struct de= vice *dev) bq24190_read(bdi, BQ24190_REG_SS, &bdi->ss_reg); =20 if (error >=3D 0) { - pm_runtime_mark_last_busy(bdi->dev); pm_runtime_put_autosuspend(bdi->dev); } =20 --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 0F0362EFD89; Fri, 4 Jul 2025 07:54:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615697; cv=none; b=S8x+dbsu5FRAXajPCFHebmU/jCDO7ycBYXEjrEHcNlMDBevpsDxh+KHypwi6HcS0XeEWYDi0tE8tG25BLPEBXkc/B/MBjAA3LnI8s5puW2Mg4KGSvqpJ0eWrvLJ0ruH8rBExtX2IgYPRgs02wvLS7OIOgkKaKQlSTLjIkXmpOnk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615697; c=relaxed/simple; bh=RIcCzYI0omisWFmazd0VVo2FRQVujzPyYzOVgfw8bqU=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=MinmPCeaslNPxAf4PGS8cgSx0itxN9tRYlpV/lcAXzdPlvZuULJgW9mFWnxWsm29N/22A4dMN3IiYQ/6ssWlegWGtY1LKAV8JFrL3LEzLDVR9IMLvenLaT8mkGBv56WXUw/pykrRd+EnPmwQehr3/I2+8xTPVrjjPTJbvpuC6UI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=mqwWl0I9; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="mqwWl0I9" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615695; x=1783151695; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=RIcCzYI0omisWFmazd0VVo2FRQVujzPyYzOVgfw8bqU=; b=mqwWl0I9ibhLYvlBirTdSdWx6FTAlLYkytS8w83HjBq1ae+seaFiARkc uDPI1Rhp4L3ek6Y3Oh9ZeXjNu9N+tCkSyQCAXQ9M1kMBxCVr/drU88kLr KorVUUFrkVINxizGp9AEztanG9WuIPWPpGng1XwjqtFRcPKlY1qDOSsBm 8sxqYT9qGIaP/CTv9Q4i5+pB1tIsHgGW+dBCeQiH4F6PKT59/UHyTrFWj GFeXph3e1cCe5g455HCWLBFjmrpia+tjOwTX2b++pGG+roUenvEwQm1fT WjLCgkP7JzLpxYwK31vR2eoV6bRh6WA/p22nkiKLW7vrTmmDjJ/IQPwyI Q==; X-CSE-ConnectionGUID: ZbCvDpDYSKqhYYJ1Kz6ktg== X-CSE-MsgGUID: 7v9BHGmeSUOHvqrA9GDaXA== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194227" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194227" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:47 -0700 X-CSE-ConnectionGUID: kNh7sPjLQEKh+YsQsQJClw== X-CSE-MsgGUID: 4T0DHlcURkeMStImsUv7Sw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616612" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:45 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 1751144BAC; Fri, 4 Jul 2025 10:54:43 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Sebastian Reichel Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 55/80] power: supply: twl4030_charger: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:42 +0300 Message-Id: <20250704075442.3221330-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/power/supply/twl4030_charger.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/power/supply/twl4030_charger.c b/drivers/power/supply/= twl4030_charger.c index 9dcb5457bef4..04216b2bfb6c 100644 --- a/drivers/power/supply/twl4030_charger.c +++ b/drivers/power/supply/twl4030_charger.c @@ -512,7 +512,6 @@ static int twl4030_charger_enable_usb(struct twl4030_bc= i *bci, bool enable) ret |=3D twl_i2c_write_u8(TWL_MODULE_MAIN_CHARGE, 0x2a, TWL4030_BCIMDKEY); if (bci->usb_enabled) { - pm_runtime_mark_last_busy(bci->transceiver->dev); pm_runtime_put_autosuspend(bci->transceiver->dev); bci->usb_enabled =3D 0; } --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 DD2F22F0022; Fri, 4 Jul 2025 07:54:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615698; cv=none; b=cSzBRfgl+OoeYPcUdBCmHpQ49o6vP/NgALNa99XnjF1rWn323QWxA4zWGNBcmu6whfPGSy60jd4ANaUn4p7+O2mUY29vbnPI0dxI+HeyS8tDuOMieOMZGFIQGIf0ZtUkfk7g+y6AbXhdTplFZ75P4DVF0Qankae1H7erTkjCLA0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615698; c=relaxed/simple; bh=r1Gsmx9kfkhpUyKheatqOMNMQ+hakjSERBDtaMYrqa4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FdmQmdjBA4LsOPU0Bs42BIMgNaWecVKAunLKlZXt/v7Uhwf103nEgDurkkgDWWoStC0ttg/SkaeBhIAWOp3n+G/9qCRQBFBx8+PeiaMK/yEnXR8p2OF6RUA/OYWgj3j6hUyDXNxiYfHo0Sf9CjZSHNLzOchd81gIabe3owcnD/4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=fDY5/DoT; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="fDY5/DoT" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615695; x=1783151695; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=r1Gsmx9kfkhpUyKheatqOMNMQ+hakjSERBDtaMYrqa4=; b=fDY5/DoTarFMFqglSXFhBtxGndFH/JAJ/ueyfw6AbAunA325QIamBWjS mRcM9bEAqwi7gRDwFsPD8N0KmwNtuIYv+i+47gM4mBD/v4w2KIai20uP/ Wg3ZMbRHvDsLN3NvqWoexCXUViTm0NEVivrFMV4WQEfn9H8nqJMV7bOXc VAVP2D+oVSa3xjgXGcWRbqIRwMzkxtwg74jmp3qBDqqvpou7ZMpX6xNzx iexfJkNCIfLj4O+Cy2/k3XTarOkZ2MPda91FnjDguKDgvTdh2l5e2seeD GqjfqrLgf56nQIQO5X1B27gQmsQ/17LUudZzv3f76WJOdYixSJ/sJGiDI Q==; X-CSE-ConnectionGUID: y6+w1is4TCWd/w+l5Yz6KA== X-CSE-MsgGUID: G6hjKhYNTr+vMXYZ74wpWQ== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194228" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194228" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:47 -0700 X-CSE-ConnectionGUID: 21+9UfiPQw2lAJ4azmc15g== X-CSE-MsgGUID: tSgevDUzRKuB9BqmPwGLjw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616618" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:46 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 0452D44424; Fri, 4 Jul 2025 10:54:44 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Cc: linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 56/80] pwm: img: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:43 +0300 Message-Id: <20250704075443.3221370-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/pwm/pwm-img.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/pwm/pwm-img.c b/drivers/pwm/pwm-img.c index 71542956feca..91e0b19f0c08 100644 --- a/drivers/pwm/pwm-img.c +++ b/drivers/pwm/pwm-img.c @@ -139,7 +139,6 @@ static int img_pwm_config(struct pwm_chip *chip, struct= pwm_device *pwm, (timebase << PWM_CH_CFG_TMBASE_SHIFT); img_pwm_writel(imgchip, PWM_CH_CFG(pwm->hwpwm), val); =20 - pm_runtime_mark_last_busy(pwmchip_parent(chip)); pm_runtime_put_autosuspend(pwmchip_parent(chip)); =20 return 0; @@ -175,7 +174,6 @@ static void img_pwm_disable(struct pwm_chip *chip, stru= ct pwm_device *pwm) val &=3D ~BIT(pwm->hwpwm); img_pwm_writel(imgchip, PWM_CTRL_CFG, val); =20 - pm_runtime_mark_last_busy(pwmchip_parent(chip)); pm_runtime_put_autosuspend(pwmchip_parent(chip)); } =20 --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 646502F0E5F for ; Fri, 4 Jul 2025 07:54:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615700; cv=none; b=PHY2S0ieAg+8EvPu3Gc1DcjNH959d/UbYTuSclfqBaKIMaKheKaFc/Z6G1JcM307ksCgjc9NQ9u9cQaGmOv1h66PIkH9Z3PWKIXdnVj+ckbDs4wCgul7fbX4LIsheK0vp+aKkjDbrBvT9mfzjAadWS7bSwoX4vtbzd5A0h4DiKE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615700; c=relaxed/simple; bh=gjeDw4vIXjSrxqdxHy0Im4aZwqFHN+s2mpooAal1uHY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=M58w8QbMIOJfR0sifoFW0ly3DU4e42Kdad1U8Ke4lkiGGEHycHRCUbOd3S1/ARWvM+IKjvH9vNMt2kRc6kgZteDC1SKkcwRd82OMTMSVzGs6d9pzZGeZD7bUd6VrTlndV8V8rRk3S1Ic2WK4JnIg7rOcQZ22ImEK3AOj6TKomNE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Mdhw9O+Q; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Mdhw9O+Q" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615698; x=1783151698; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=gjeDw4vIXjSrxqdxHy0Im4aZwqFHN+s2mpooAal1uHY=; b=Mdhw9O+QTvOT6kI/1KVlLmwcmaDn6MMxY7OfSQNFcxRqSL4IeF8SzMEH bMXldmwNRTIfVAlalWOfT5eYigQA3N+NJqKDBDXDDVBxRD2BFp98tljEm fPht/5hP556khtWyg/iyAuhzmigSG0siFhCkq2nf+m0YiBZyRyoVXYxLZ 0hxYjMI2CsJBkVDFUZGQX+OKMe2D0F7hXQ3XsUV78CZK8Mwl9SRqDbOBe RewkwdD19X0wJ2tqZbInCDcBQbauSnk9h4+t70NYNWDDcWOOl2qWjznq4 +g3yfhzIEe2S8lpEGzb5FwN1+lruBonbpofBORXKAEOrUzQ1QWENusyvt g==; X-CSE-ConnectionGUID: 1VNquejeTvS5SzKREPMTPw== X-CSE-MsgGUID: mQFuLUpGQmm0u6pGb6cvgQ== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194240" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194240" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:49 -0700 X-CSE-ConnectionGUID: /bzuSEQFSLmXBgTqlRBzJg== X-CSE-MsgGUID: fs1mzZWtTNG62igOJzDl4Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616625" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:46 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id DD9DD44419; Fri, 4 Jul 2025 10:54:44 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Liam Girdwood , Mark Brown , Maxime Coquelin , Alexandre Torgue Cc: linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH 57/80] regulator: stm32-vrefbuf: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:44 +0300 Message-Id: <20250704075444.3221445-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/regulator/stm32-vrefbuf.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/regulator/stm32-vrefbuf.c b/drivers/regulator/stm32-vr= efbuf.c index a85ea94f0673..9e391206f09d 100644 --- a/drivers/regulator/stm32-vrefbuf.c +++ b/drivers/regulator/stm32-vrefbuf.c @@ -67,7 +67,6 @@ static int stm32_vrefbuf_enable(struct regulator_dev *rde= v) writel_relaxed(val, priv->base + STM32_VREFBUF_CSR); } =20 - pm_runtime_mark_last_busy(priv->dev); pm_runtime_put_autosuspend(priv->dev); =20 return ret; @@ -87,7 +86,6 @@ static int stm32_vrefbuf_disable(struct regulator_dev *rd= ev) val &=3D ~STM32_ENVR; writel_relaxed(val, priv->base + STM32_VREFBUF_CSR); =20 - pm_runtime_mark_last_busy(priv->dev); pm_runtime_put_autosuspend(priv->dev); =20 return 0; @@ -104,7 +102,6 @@ static int stm32_vrefbuf_is_enabled(struct regulator_de= v *rdev) =20 ret =3D readl_relaxed(priv->base + STM32_VREFBUF_CSR) & STM32_ENVR; =20 - pm_runtime_mark_last_busy(priv->dev); pm_runtime_put_autosuspend(priv->dev); =20 return ret; @@ -125,7 +122,6 @@ static int stm32_vrefbuf_set_voltage_sel(struct regulat= or_dev *rdev, val =3D (val & ~STM32_VRS) | FIELD_PREP(STM32_VRS, sel); writel_relaxed(val, priv->base + STM32_VREFBUF_CSR); =20 - pm_runtime_mark_last_busy(priv->dev); pm_runtime_put_autosuspend(priv->dev); =20 return 0; @@ -144,7 +140,6 @@ static int stm32_vrefbuf_get_voltage_sel(struct regulat= or_dev *rdev) val =3D readl_relaxed(priv->base + STM32_VREFBUF_CSR); ret =3D FIELD_GET(STM32_VRS, val); =20 - pm_runtime_mark_last_busy(priv->dev); pm_runtime_put_autosuspend(priv->dev); =20 return ret; @@ -218,7 +213,6 @@ static int stm32_vrefbuf_probe(struct platform_device *= pdev) } platform_set_drvdata(pdev, rdev); =20 - pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); =20 return 0; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 AE75A2F0C6A; Fri, 4 Jul 2025 07:54:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615700; cv=none; b=WnfqhJlflh++e21QPQl4N5iFzrId69CEHZiecEbYf6+GfkzSEip6yD7IOXK04FZnbgyty0yXWpx2nul0ukoud15eGMAOEn5OC7b1Cup9OH+xGUr9ohLyUCsFHHtOZRiHF849IuWEoN8MKAxYaPel8xr+T5PJvqUpoJngXipKArI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615700; c=relaxed/simple; bh=sfK9WpzhPRbPFgvJ0XGyiFlzwl0+Go4GT4lb4zAknlI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=CN4yKoSMxrZO1sRvFGyiLwqtsKV8cCxB1EEjfPzNmgG6qahxhuKYf0o3zDI1RyxLplPH/SkhlT6Ve5cpf4JNE8OXdklxJYyMXhE2xaOoGqNWovftIKf7BiaNjuk1gy9SJhpWgkocXY7DdxEdvgU62IQIFnm4GvtwvaRk6KlmNN4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=FlN70D5h; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="FlN70D5h" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615697; x=1783151697; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=sfK9WpzhPRbPFgvJ0XGyiFlzwl0+Go4GT4lb4zAknlI=; b=FlN70D5hE68HTNl2sD+7JrwIEjPgm1grZ3bTu3XEItRg30pDyvbuWrdD pNfdDncjuOBi7fQOPmAk6ltW0ujAHuS0589d4MBYwG+PQGo7HgHfGbvu8 bonnNsE7XCoYd3j1q5BFmVwxDIiaFpYdfkZwE1q0EIkq9FNVBxq21Mgwm nLm2S6V6yt+FlGaEtim8nbBzbdU9PrJ00xGGSQnF0G7PRqoYA4HT5k5mE zwHOZ84XDlHuBOXOUHhZKukRnlFADvqXtU3naFLU2ACzAfWAfamHID2d/ LLpkXZsVhvRNWP/qslU9eRtcnDumRsADTMgRjCVkfvGX7vX8seVjc4RsJ w==; X-CSE-ConnectionGUID: x9uO1LShSimJf9Ra3wOUJw== X-CSE-MsgGUID: wy+3eaNST6CScU6Iqix1Sg== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194235" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194235" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:49 -0700 X-CSE-ConnectionGUID: e3O9hWJCT9i44Ftg8XOlgg== X-CSE-MsgGUID: GHWntWe8QAyofpx7RTUv9g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616627" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:47 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 77FD044433; Fri, 4 Jul 2025 10:54:45 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Bjorn Andersson , Mathieu Poirier Cc: linux-remoteproc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 58/80] remoteproc: omap: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:45 +0300 Message-Id: <20250704075445.3221481-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/remoteproc/omap_remoteproc.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/remoteproc/omap_remoteproc.c b/drivers/remoteproc/omap= _remoteproc.c index 9c9e9c3cf378..cb01354248af 100644 --- a/drivers/remoteproc/omap_remoteproc.c +++ b/drivers/remoteproc/omap_remoteproc.c @@ -555,7 +555,6 @@ static void omap_rproc_kick(struct rproc *rproc, int vq= id) dev_err(dev, "failed to send mailbox message, status =3D %d\n", ret); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); } =20 @@ -656,7 +655,6 @@ static int omap_rproc_start(struct rproc *rproc) pm_runtime_use_autosuspend(dev); pm_runtime_get_noresume(dev); pm_runtime_enable(dev); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; @@ -714,7 +712,6 @@ static int omap_rproc_stop(struct rproc *rproc) reset_control_deassert(oproc->reset); out: /* schedule the next auto-suspend */ - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); return ret; } --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 5E2BF2F19BB; Fri, 4 Jul 2025 07:54:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615701; cv=none; b=ENPo1VKlZtKDGnmsw1COBpcUwFYYjzEumFm6ulvdUadHOJvl7HUU0AJT+2DMg4331lWKjJlnUM0fqhL7Cb32gwBRsUyPMQ40n3rhsQdfoMEQhyEURrXjG//QvGexFj2+7ScFBx95PjAS8cOb/7m9MGERrgKTL/FI3SblHInt8Zk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615701; c=relaxed/simple; bh=CD/eY4E5aftpOmkmkmfmacRDuiFp5Va8bVZ1es2dJX8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=L8AYlLdD8TvP+0N5qtAZnwPTa09Cy6UtCA4JGng2+d29B9CNTzyRYJ7Pt9oitvyv5DCYa+++F5UrUW9mAd09j1WIAPHqla5mL9PYg8fVfRiMJY3NC+qkymT+tqkuMZYnA+gCfVW/kAylYcgB4B2o0FL7M2H9a6d92lIpgcE04Gw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=g425f3NY; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="g425f3NY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615699; x=1783151699; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=CD/eY4E5aftpOmkmkmfmacRDuiFp5Va8bVZ1es2dJX8=; b=g425f3NY/I9nlhPezZAYC5Kqr1wSnto+YMyTg4KRmBsSFHzF4eI6hQ8+ 4mZmll21NB6KpJqMo3tTzkUremB4A6NXCyWkcj4I44pzrq+t1N0FE+Yxh 5ZD28esGkc+muNw2QRpTMRAKRzlIo4xB/+AxUAG7XY87wtvpUr0wyLUY+ X3JUlEfmxnZGDm7/uqfOKdEeSluQ9YpGxu6CR05lJwgmRZL/0IM90WI1P 08CqRr2o9n91h8QMctgUPwaY1FfK203dRaqfOrONPiAmX+QmT5l1svocV 5TXIYuUYEWLPmjnHDGsqHWf+KdIMVsYB1jMFxD0JfDaG3LR1g7lpqSVxR Q==; X-CSE-ConnectionGUID: c24hsJkPTkajhvFpjScvAw== X-CSE-MsgGUID: Icc5SMMJQMOqTxyyN0NZdQ== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194245" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194245" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:50 -0700 X-CSE-ConnectionGUID: 2OeTsEVeSxeGNOpmXS1ImQ== X-CSE-MsgGUID: Mz3xh9kTRweGeBXlGPGjBg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616635" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:48 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 492AC44394; Fri, 4 Jul 2025 10:54:46 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Srinivas Kandagatla Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 59/80] slimbus: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:46 +0300 Message-Id: <20250704075446.3221540-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Acked-by: Srinivas Kandagatla --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/slimbus/core.c | 1 - drivers/slimbus/messaging.c | 2 -- drivers/slimbus/qcom-ctrl.c | 1 - 3 files changed, 4 deletions(-) diff --git a/drivers/slimbus/core.c b/drivers/slimbus/core.c index 005fa2ef100f..31751ee4e400 100644 --- a/drivers/slimbus/core.c +++ b/drivers/slimbus/core.c @@ -504,7 +504,6 @@ int slim_device_report_present(struct slim_controller *= ctrl, ret =3D slim_device_alloc_laddr(sbdev, true); =20 slimbus_not_active: - pm_runtime_mark_last_busy(ctrl->dev); pm_runtime_put_autosuspend(ctrl->dev); return ret; } diff --git a/drivers/slimbus/messaging.c b/drivers/slimbus/messaging.c index 6f01d944f9c6..44197493010e 100644 --- a/drivers/slimbus/messaging.c +++ b/drivers/slimbus/messaging.c @@ -47,7 +47,6 @@ void slim_msg_response(struct slim_controller *ctrl, u8 *= reply, u8 tid, u8 len) complete(txn->comp); =20 /* Remove runtime-pm vote now that response was received for TID txn */ - pm_runtime_mark_last_busy(ctrl->dev); pm_runtime_put_autosuspend(ctrl->dev); } EXPORT_SYMBOL_GPL(slim_msg_response); @@ -171,7 +170,6 @@ int slim_do_transfer(struct slim_controller *ctrl, stru= ct slim_msg_txn *txn) * remove runtime-pm vote if this was TX only, or * if there was error during this transaction */ - pm_runtime_mark_last_busy(ctrl->dev); pm_runtime_put_autosuspend(ctrl->dev); } return ret; diff --git a/drivers/slimbus/qcom-ctrl.c b/drivers/slimbus/qcom-ctrl.c index ab344f7472f2..880cf3081a20 100644 --- a/drivers/slimbus/qcom-ctrl.c +++ b/drivers/slimbus/qcom-ctrl.c @@ -695,7 +695,6 @@ static int qcom_slim_resume(struct device *dev) dev_dbg(dev, "system resume"); ret =3D qcom_slim_runtime_resume(dev); if (!ret) { - pm_runtime_mark_last_busy(dev); pm_request_autosuspend(dev); } return ret; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 DB30E2F3C2F; Fri, 4 Jul 2025 07:55:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615705; cv=none; b=hRpRc2a4JAHTvfbUnWOcYoILkApHIPuRYTCmYrpUpFm34+cpgZxzLx0XvgnkOpPjaarPBZx5y4b611qGnCFX2ON9guADF06J8bjr2B309wc9hz7qcx38P8ZQ+DV3alzpTCquNux3/f7xKQm/nX6srsiTvjirwd9EWqZALSuoFr0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615705; c=relaxed/simple; bh=YNMnECaaC9O1yfFx5WwdlJPEH2MfqWZfCpsrTn51CKI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=mjviXU2Z1Mloi6wdp6cfqZvPMdSkQe01XfHZDj6rEqRW461pWUF+o47yym+spxkqN89DlHhObF2P5b6Tv6+CgF04GdypmoQvrPrNV0Uqob0q0Xpat0G+AOdrknxaaoogkZa2DtIO5Vp3qbH4hPP4BJQZdOCBAhXcAF6+IpbHB80= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=WlvGVtRc; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="WlvGVtRc" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615703; x=1783151703; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=YNMnECaaC9O1yfFx5WwdlJPEH2MfqWZfCpsrTn51CKI=; b=WlvGVtRcuaWWond26QpsmMPqtU3w38XjnEnSyH5Cuv1oKD+u3MpVJnKf ywPCLdWo8xLVUXHvlVXrd4xz+I+SV028oppAPxDdyP41Ai3uezRMerKNs yD6xdI8q8djiwfKEjjIx9CIPKdMptGpuk29rbiKoepRtqMkH6nuWyGyUk nKCnLg/IvyewV6248/mMr/4KW86iG169LZNW1ADqfpE6TD4BFFtl7WKBf m9Sbs10OT4TjQY1xvo0AFKbmqo/C9aYnJkLsskPq9ooOyB0pXSKPnIkqr HIf7JrqKAyiN8y5W7TdfLBtBd+sm5qeyG6XXmBLfWIW/6ipfiPnU8XPbE Q==; X-CSE-ConnectionGUID: OS/VumoMQ6uL2Jb9QDXN+w== X-CSE-MsgGUID: WxYShqxnQ/ezFwBqP8EXNA== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194248" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194248" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:51 -0700 X-CSE-ConnectionGUID: 0vJgiFijSxmgZQhzkoyVzQ== X-CSE-MsgGUID: 0ZxZ+7MORGGjYSXiYuYNVQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616636" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:48 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 14F444445A; Fri, 4 Jul 2025 10:54:47 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Vinod Koul , Bard Liao , Pierre-Louis Bossart , Srinivas Kandagatla Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 60/80] soundwire: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:46 +0300 Message-Id: <20250704075446.3221618-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/soundwire/bus.c | 1 - drivers/soundwire/cadence_master.c | 1 - drivers/soundwire/qcom.c | 3 --- 3 files changed, 5 deletions(-) diff --git a/drivers/soundwire/bus.c b/drivers/soundwire/bus.c index 4fd5cac799c5..0d31bb2aff24 100644 --- a/drivers/soundwire/bus.c +++ b/drivers/soundwire/bus.c @@ -1833,7 +1833,6 @@ static int sdw_handle_slave_alerts(struct sdw_slave *= slave) dev_warn(&slave->dev, "Reached MAX_RETRY on alert read\n"); =20 io_err: - pm_runtime_mark_last_busy(&slave->dev); pm_runtime_put_autosuspend(&slave->dev); =20 return ret; diff --git a/drivers/soundwire/cadence_master.c b/drivers/soundwire/cadence= _master.c index 21bb491d026b..bdd538d09ee7 100644 --- a/drivers/soundwire/cadence_master.c +++ b/drivers/soundwire/cadence_master.c @@ -486,7 +486,6 @@ static int cdns_parity_error_injection(void *data, u64 = value) * allow Master device to enter pm_runtime suspend. This may * also result in Slave devices suspending. */ - pm_runtime_mark_last_busy(bus->dev); pm_runtime_put_autosuspend(bus->dev); =20 return 0; diff --git a/drivers/soundwire/qcom.c b/drivers/soundwire/qcom.c index 3265c39e6b51..0ab7e2c7945f 100644 --- a/drivers/soundwire/qcom.c +++ b/drivers/soundwire/qcom.c @@ -657,7 +657,6 @@ static irqreturn_t qcom_swrm_wake_irq_handler(int irq, = void *dev_id) disable_irq_nosync(ctrl->wake_irq); } =20 - pm_runtime_mark_last_busy(ctrl->dev); pm_runtime_put_autosuspend(ctrl->dev); =20 return IRQ_HANDLED; @@ -1319,7 +1318,6 @@ static void qcom_swrm_shutdown(struct snd_pcm_substre= am *substream, struct qcom_swrm_ctrl *ctrl =3D dev_get_drvdata(dai->dev); =20 swrm_wait_for_wr_fifo_done(ctrl); - pm_runtime_mark_last_busy(ctrl->dev); pm_runtime_put_autosuspend(ctrl->dev); =20 } @@ -1502,7 +1500,6 @@ static int swrm_reg_show(struct seq_file *s_file, voi= d *data) ctrl->reg_read(ctrl, reg, ®_val); seq_printf(s_file, "0x%.3x: 0x%.2x\n", reg, reg_val); } - pm_runtime_mark_last_busy(ctrl->dev); pm_runtime_put_autosuspend(ctrl->dev); =20 =20 --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 123E62F6FA2; Fri, 4 Jul 2025 07:55:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615714; cv=none; b=L6Axufynoe41J2xZz8GHbAZM7bS9c3U86ZIu/cixVIdPR0b3I3Sd+SJGc0ug7L3oBdjvWkHW7hOyfdEx4iQ/GMPRtDeqw0BUzSmMLeQOOxvwrFHQlMYEnzMG46lrHbL1W6AQYASjvfF9xqvAnmggy8xG418R+xRbpz98mqXNLm4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615714; c=relaxed/simple; bh=qdmUiSbcVU8OwH5Ch7+z/U3eHB06Y+cXa7QkEocRcdI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=rF0wzXH6AUxyv1RoeyN3JfsA1Q8UuWdcfrhKoVZmHX1F4QAFInNPLsuITDJkPvflaU44S6PtNvypKGfFK3CWTTlZcrAH9ySTqgY1sZwuP8l2fv5bfqRYVwTgIWLHeG7ifijILUuNW9Aj1QqU6Pr28oAyamJUNrQRLsy4EeDEzCA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=QSAZKIMQ; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="QSAZKIMQ" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615711; x=1783151711; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qdmUiSbcVU8OwH5Ch7+z/U3eHB06Y+cXa7QkEocRcdI=; b=QSAZKIMQDRI+1qa9XOLSSI/Zl1X1oF8igjlxJfwj2IuWYdRALukGXgbn owub1p7EXGx8bLXJFR4XUOC4rkmCYuedPrf2LcPfqf8UzTO/FSlpddcvM xGEC6QfxDB72f0KY3wrJdxxcbZ5Hj7vE8I3Yv44RJPKutyo92haMeCsyH AcFKStZX4G5TE1sKyqNYY3cR+D7sn+m2/A54F2fXzqTWRBtc/pCE8CPSx iorZeEjVa+PB9Ca22MpSVtekZ+vfZJwkmNV68kW7fCccCWHOULucGrP3A hRuxenjZ+7L6vReKAbAqJ6GUiyGdDsOL1dF30nJq1+rfKzKI+ePEGYtdV Q==; X-CSE-ConnectionGUID: OHzUPzXrTyatvIU/TSJ6tA== X-CSE-MsgGUID: aD1R6UxvQROVu1pVNR+b1A== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194309" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194309" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:55:03 -0700 X-CSE-ConnectionGUID: bwddRgeVRwqpKScWUZtONQ== X-CSE-MsgGUID: k8eLgNmTQQGdFKgWydH4aA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616645" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:50 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 1923F44424; Fri, 4 Jul 2025 10:54:48 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Mark Brown , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Frank Li , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Matthias Brugger , AngeloGioacchino Del Regno , Han Xu , Haibo Chen , Yogesh Gaur , Heiko Stuebner , Andi Shyti , Tudor Ambarus , Krzysztof Kozlowski , Alim Akhtar , Orson Zhai , Baolin Wang , Chunyan Zhang , Maxime Coquelin , Alexandre Torgue , Alain Volmat , Michal Simek Cc: linux-spi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-mediatek@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com Subject: [PATCH 61/80] spi: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:47 +0300 Message-Id: <20250704075447.3221784-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Reviewed-by: AngeloGioacchino Del Regno --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/spi/atmel-quadspi.c | 5 ----- drivers/spi/spi-cadence-quadspi.c | 2 -- drivers/spi/spi-cadence.c | 1 - drivers/spi/spi-fsl-espi.c | 2 -- drivers/spi/spi-fsl-lpspi.c | 2 -- drivers/spi/spi-imx.c | 3 --- drivers/spi/spi-mtk-nor.c | 1 - drivers/spi/spi-nxp-fspi.c | 1 - drivers/spi/spi-omap2-mcspi.c | 3 --- drivers/spi/spi-rockchip-sfc.c | 3 --- drivers/spi/spi-s3c64xx.c | 3 --- drivers/spi/spi-sprd.c | 1 - drivers/spi/spi-stm32-ospi.c | 7 ------- drivers/spi/spi-stm32-qspi.c | 7 ------- drivers/spi/spi-stm32.c | 2 -- drivers/spi/spi-ti-qspi.c | 2 -- drivers/spi/spi-zynqmp-gqspi.c | 1 - drivers/spi/spi.c | 3 --- 18 files changed, 49 deletions(-) diff --git a/drivers/spi/atmel-quadspi.c b/drivers/spi/atmel-quadspi.c index fc555c0ce52e..4e9bfd26aa80 100644 --- a/drivers/spi/atmel-quadspi.c +++ b/drivers/spi/atmel-quadspi.c @@ -965,7 +965,6 @@ static int atmel_qspi_exec_op(struct spi_mem *mem, cons= t struct spi_mem_op *op) err =3D aq->ops->transfer(mem, op, offset); =20 pm_runtime_put: - pm_runtime_mark_last_busy(&aq->pdev->dev); pm_runtime_put_autosuspend(&aq->pdev->dev); return err; } @@ -1168,7 +1167,6 @@ static int atmel_qspi_setup(struct spi_device *spi) aq->scr |=3D QSPI_SCR_SCBR(scbr); atmel_qspi_write(aq->scr, aq, QSPI_SCR); =20 - pm_runtime_mark_last_busy(ctrl->dev.parent); pm_runtime_put_autosuspend(ctrl->dev.parent); =20 return 0; @@ -1230,7 +1228,6 @@ static int atmel_qspi_set_cs_timing(struct spi_device= *spi) aq->mr |=3D QSPI_MR_DLYBCT(cs_hold) | QSPI_MR_DLYCS(cs_inactive); atmel_qspi_write(aq->mr, aq, QSPI_MR); =20 - pm_runtime_mark_last_busy(ctrl->dev.parent); pm_runtime_put_autosuspend(ctrl->dev.parent); =20 return 0; @@ -1435,7 +1432,6 @@ static int atmel_qspi_probe(struct platform_device *p= dev) if (err) return err; =20 - pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); =20 return 0; @@ -1560,7 +1556,6 @@ static int __maybe_unused atmel_qspi_resume(struct de= vice *dev) =20 atmel_qspi_write(aq->scr, aq, QSPI_SCR); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; diff --git a/drivers/spi/spi-cadence-quadspi.c b/drivers/spi/spi-cadence-qu= adspi.c index aa1932ba17cb..82f1c4d59af8 100644 --- a/drivers/spi/spi-cadence-quadspi.c +++ b/drivers/spi/spi-cadence-quadspi.c @@ -1469,7 +1469,6 @@ static int cqspi_exec_mem_op(struct spi_mem *mem, con= st struct spi_mem_op *op) =20 ret =3D cqspi_mem_process(mem, op); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 if (ret) @@ -1975,7 +1974,6 @@ static int cqspi_probe(struct platform_device *pdev) goto probe_setup_failed; } =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; diff --git a/drivers/spi/spi-cadence.c b/drivers/spi/spi-cadence.c index 9e56bde87768..5ae09b21d23a 100644 --- a/drivers/spi/spi-cadence.c +++ b/drivers/spi/spi-cadence.c @@ -662,7 +662,6 @@ static int cdns_spi_probe(struct platform_device *pdev) /* Set to default valid value */ ctlr->max_speed_hz =3D xspi->clk_rate / 4; xspi->speed_hz =3D ctlr->max_speed_hz; - pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); } else { ctlr->mode_bits |=3D SPI_NO_CS; diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c index 6a73eaa34cf7..f2f1d3298e6c 100644 --- a/drivers/spi/spi-fsl-espi.c +++ b/drivers/spi/spi-fsl-espi.c @@ -513,7 +513,6 @@ static int fsl_espi_setup(struct spi_device *spi) =20 fsl_espi_setup_transfer(spi, NULL); =20 - pm_runtime_mark_last_busy(espi->dev); pm_runtime_put_autosuspend(espi->dev); =20 return 0; @@ -726,7 +725,6 @@ static int fsl_espi_probe(struct device *dev, struct re= source *mem, =20 dev_info(dev, "irq =3D %u\n", irq); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; diff --git a/drivers/spi/spi-fsl-lpspi.c b/drivers/spi/spi-fsl-lpspi.c index 5e3818445234..67d4000c3cef 100644 --- a/drivers/spi/spi-fsl-lpspi.c +++ b/drivers/spi/spi-fsl-lpspi.c @@ -233,7 +233,6 @@ static int lpspi_unprepare_xfer_hardware(struct spi_con= troller *controller) struct fsl_lpspi_data *fsl_lpspi =3D spi_controller_get_devdata(controller); =20 - pm_runtime_mark_last_busy(fsl_lpspi->dev); pm_runtime_put_autosuspend(fsl_lpspi->dev); =20 return 0; @@ -966,7 +965,6 @@ static int fsl_lpspi_probe(struct platform_device *pdev) goto free_dma; } =20 - pm_runtime_mark_last_busy(fsl_lpspi->dev); pm_runtime_put_autosuspend(fsl_lpspi->dev); =20 return 0; diff --git a/drivers/spi/spi-imx.c b/drivers/spi/spi-imx.c index c93d80a4d734..155ddeb8fcd4 100644 --- a/drivers/spi/spi-imx.c +++ b/drivers/spi/spi-imx.c @@ -1748,7 +1748,6 @@ spi_imx_prepare_message(struct spi_controller *contro= ller, struct spi_message *m =20 ret =3D spi_imx->devtype_data->prepare_message(spi_imx, msg); if (ret) { - pm_runtime_mark_last_busy(spi_imx->dev); pm_runtime_put_autosuspend(spi_imx->dev); } =20 @@ -1760,7 +1759,6 @@ spi_imx_unprepare_message(struct spi_controller *cont= roller, struct spi_message { struct spi_imx_data *spi_imx =3D spi_controller_get_devdata(controller); =20 - pm_runtime_mark_last_busy(spi_imx->dev); pm_runtime_put_autosuspend(spi_imx->dev); return 0; } @@ -1933,7 +1931,6 @@ static int spi_imx_probe(struct platform_device *pdev) goto out_register_controller; } =20 - pm_runtime_mark_last_busy(spi_imx->dev); pm_runtime_put_autosuspend(spi_imx->dev); =20 return ret; diff --git a/drivers/spi/spi-mtk-nor.c b/drivers/spi/spi-mtk-nor.c index 85ab5ce96c4d..5cc4632e13d7 100644 --- a/drivers/spi/spi-mtk-nor.c +++ b/drivers/spi/spi-mtk-nor.c @@ -918,7 +918,6 @@ static int mtk_nor_probe(struct platform_device *pdev) if (ret < 0) goto err_probe; =20 - pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); =20 dev_info(&pdev->dev, "spi frequency: %d Hz\n", sp->spi_freq); diff --git a/drivers/spi/spi-nxp-fspi.c b/drivers/spi/spi-nxp-fspi.c index e63c77e41823..c7d4827f1bf1 100644 --- a/drivers/spi/spi-nxp-fspi.c +++ b/drivers/spi/spi-nxp-fspi.c @@ -968,7 +968,6 @@ static int nxp_fspi_exec_op(struct spi_mem *mem, const = struct spi_mem_op *op) /* Invalidate the data in the AHB buffer. */ nxp_fspi_invalid(f); =20 - pm_runtime_mark_last_busy(f->dev); pm_runtime_put_autosuspend(f->dev); =20 return err; diff --git a/drivers/spi/spi-omap2-mcspi.c b/drivers/spi/spi-omap2-mcspi.c index 70bb74b3bd9c..6dc58a30804a 100644 --- a/drivers/spi/spi-omap2-mcspi.c +++ b/drivers/spi/spi-omap2-mcspi.c @@ -272,7 +272,6 @@ static void omap2_mcspi_set_cs(struct spi_device *spi, = bool enable) =20 mcspi_write_chconf0(spi, l); =20 - pm_runtime_mark_last_busy(mcspi->dev); pm_runtime_put_autosuspend(mcspi->dev); } } @@ -1102,7 +1101,6 @@ static int omap2_mcspi_setup(struct spi_device *spi) if (ret && initial_setup) omap2_mcspi_cleanup(spi); =20 - pm_runtime_mark_last_busy(mcspi->dev); pm_runtime_put_autosuspend(mcspi->dev); =20 return ret; @@ -1379,7 +1377,6 @@ static int omap2_mcspi_controller_setup(struct omap2_= mcspi *mcspi) ctx->wakeupenable =3D OMAP2_MCSPI_WAKEUPENABLE_WKEN; =20 omap2_mcspi_set_mode(ctlr); - pm_runtime_mark_last_busy(mcspi->dev); pm_runtime_put_autosuspend(mcspi->dev); return 0; } diff --git a/drivers/spi/spi-rockchip-sfc.c b/drivers/spi/spi-rockchip-sfc.c index f3fe10eddb6a..9eba5c0a60f2 100644 --- a/drivers/spi/spi-rockchip-sfc.c +++ b/drivers/spi/spi-rockchip-sfc.c @@ -565,7 +565,6 @@ static int rockchip_sfc_exec_mem_op(struct spi_mem *mem= , const struct spi_mem_op =20 ret =3D rockchip_sfc_xfer_done(sfc, 100000); out: - pm_runtime_mark_last_busy(sfc->dev); pm_runtime_put_autosuspend(sfc->dev); =20 return ret; @@ -712,7 +711,6 @@ static int rockchip_sfc_probe(struct platform_device *p= dev) if (ret) goto err_register; =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; @@ -799,7 +797,6 @@ static int rockchip_sfc_resume(struct device *dev) =20 rockchip_sfc_init(sfc); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index 9c47f5741c5f..b1567243ae19 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c @@ -1045,14 +1045,12 @@ static int s3c64xx_spi_setup(struct spi_device *spi) } } =20 - pm_runtime_mark_last_busy(&sdd->pdev->dev); pm_runtime_put_autosuspend(&sdd->pdev->dev); s3c64xx_spi_set_cs(spi, false); =20 return 0; =20 setup_exit: - pm_runtime_mark_last_busy(&sdd->pdev->dev); pm_runtime_put_autosuspend(&sdd->pdev->dev); /* setup() returns with device de-selected */ s3c64xx_spi_set_cs(spi, false); @@ -1384,7 +1382,6 @@ static int s3c64xx_spi_probe(struct platform_device *= pdev) dev_dbg(&pdev->dev, "\tIOmem=3D[%pR]\tFIFO %dbytes\n", mem_res, sdd->fifo_depth); =20 - pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); =20 return 0; diff --git a/drivers/spi/spi-sprd.c b/drivers/spi/spi-sprd.c index ae794058b381..ad75f5f0f2bf 100644 --- a/drivers/spi/spi-sprd.c +++ b/drivers/spi/spi-sprd.c @@ -982,7 +982,6 @@ static int sprd_spi_probe(struct platform_device *pdev) if (ret) goto err_rpm_put; =20 - pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); =20 return 0; diff --git a/drivers/spi/spi-stm32-ospi.c b/drivers/spi/spi-stm32-ospi.c index 4ab7e86f4bd5..2829535e5cd4 100644 --- a/drivers/spi/spi-stm32-ospi.c +++ b/drivers/spi/spi-stm32-ospi.c @@ -547,7 +547,6 @@ static int stm32_ospi_poll_status(struct spi_mem *mem, ret =3D stm32_ospi_send(mem->spi, op); mutex_unlock(&ospi->lock); =20 - pm_runtime_mark_last_busy(ospi->dev); pm_runtime_put_autosuspend(ospi->dev); =20 return ret; @@ -571,7 +570,6 @@ static int stm32_ospi_exec_op(struct spi_mem *mem, cons= t struct spi_mem_op *op) ret =3D stm32_ospi_send(mem->spi, op); mutex_unlock(&ospi->lock); =20 - pm_runtime_mark_last_busy(ospi->dev); pm_runtime_put_autosuspend(ospi->dev); =20 return ret; @@ -628,7 +626,6 @@ static ssize_t stm32_ospi_dirmap_read(struct spi_mem_di= rmap_desc *desc, ret =3D stm32_ospi_send(desc->mem->spi, &op); mutex_unlock(&ospi->lock); =20 - pm_runtime_mark_last_busy(ospi->dev); pm_runtime_put_autosuspend(ospi->dev); =20 return ret ?: len; @@ -713,7 +710,6 @@ static int stm32_ospi_transfer_one_message(struct spi_c= ontroller *ctrl, msg->status =3D ret; spi_finalize_current_message(ctrl); =20 - pm_runtime_mark_last_busy(ospi->dev); pm_runtime_put_autosuspend(ospi->dev); =20 return ret; @@ -750,7 +746,6 @@ static int stm32_ospi_setup(struct spi_device *spi) =20 mutex_unlock(&ospi->lock); =20 - pm_runtime_mark_last_busy(ospi->dev); pm_runtime_put_autosuspend(ospi->dev); =20 return 0; @@ -953,7 +948,6 @@ static int stm32_ospi_probe(struct platform_device *pde= v) goto err_pm_resume; } =20 - pm_runtime_mark_last_busy(ospi->dev); pm_runtime_put_autosuspend(ospi->dev); =20 return 0; @@ -1032,7 +1026,6 @@ static int __maybe_unused stm32_ospi_resume(struct de= vice *dev) =20 writel_relaxed(ospi->cr_reg, regs_base + OSPI_CR); writel_relaxed(ospi->dcr_reg, regs_base + OSPI_DCR1); - pm_runtime_mark_last_busy(ospi->dev); pm_runtime_put_autosuspend(ospi->dev); =20 return 0; diff --git a/drivers/spi/spi-stm32-qspi.c b/drivers/spi/spi-stm32-qspi.c index 9691197bbf5a..f2d19f1c5ab1 100644 --- a/drivers/spi/spi-stm32-qspi.c +++ b/drivers/spi/spi-stm32-qspi.c @@ -463,7 +463,6 @@ static int stm32_qspi_poll_status(struct spi_mem *mem, = const struct spi_mem_op * ret =3D stm32_qspi_send(mem->spi, op); mutex_unlock(&qspi->lock); =20 - pm_runtime_mark_last_busy(qspi->dev); pm_runtime_put_autosuspend(qspi->dev); =20 return ret; @@ -487,7 +486,6 @@ static int stm32_qspi_exec_op(struct spi_mem *mem, cons= t struct spi_mem_op *op) ret =3D stm32_qspi_send(mem->spi, op); mutex_unlock(&qspi->lock); =20 - pm_runtime_mark_last_busy(qspi->dev); pm_runtime_put_autosuspend(qspi->dev); =20 return ret; @@ -543,7 +541,6 @@ static ssize_t stm32_qspi_dirmap_read(struct spi_mem_di= rmap_desc *desc, ret =3D stm32_qspi_send(desc->mem->spi, &op); mutex_unlock(&qspi->lock); =20 - pm_runtime_mark_last_busy(qspi->dev); pm_runtime_put_autosuspend(qspi->dev); =20 return ret ?: len; @@ -627,7 +624,6 @@ static int stm32_qspi_transfer_one_message(struct spi_c= ontroller *ctrl, msg->status =3D ret; spi_finalize_current_message(ctrl); =20 - pm_runtime_mark_last_busy(qspi->dev); pm_runtime_put_autosuspend(qspi->dev); =20 return ret; @@ -684,7 +680,6 @@ static int stm32_qspi_setup(struct spi_device *spi) writel_relaxed(qspi->dcr_reg, qspi->io_base + QSPI_DCR); mutex_unlock(&qspi->lock); =20 - pm_runtime_mark_last_busy(qspi->dev); pm_runtime_put_autosuspend(qspi->dev); =20 return 0; @@ -858,7 +853,6 @@ static int stm32_qspi_probe(struct platform_device *pde= v) if (ret) goto err_pm_runtime_free; =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; @@ -938,7 +932,6 @@ static int __maybe_unused stm32_qspi_resume(struct devi= ce *dev) writel_relaxed(qspi->cr_reg, qspi->io_base + QSPI_CR); writel_relaxed(qspi->dcr_reg, qspi->io_base + QSPI_DCR); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; diff --git a/drivers/spi/spi-stm32.c b/drivers/spi/spi-stm32.c index 3d20f09f1ae7..e8f3eff71b0e 100644 --- a/drivers/spi/spi-stm32.c +++ b/drivers/spi/spi-stm32.c @@ -2469,7 +2469,6 @@ static int stm32_spi_probe(struct platform_device *pd= ev) goto err_pm_disable; } =20 - pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); =20 dev_info(&pdev->dev, "driver initialized (%s mode)\n", @@ -2588,7 +2587,6 @@ static int __maybe_unused stm32_spi_resume(struct dev= ice *dev) =20 spi->cfg->config(spi); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; diff --git a/drivers/spi/spi-ti-qspi.c b/drivers/spi/spi-ti-qspi.c index a284d2794586..0b7eaccbc797 100644 --- a/drivers/spi/spi-ti-qspi.c +++ b/drivers/spi/spi-ti-qspi.c @@ -158,7 +158,6 @@ static int ti_qspi_setup(struct spi_device *spi) return ret; } =20 - pm_runtime_mark_last_busy(qspi->dev); ret =3D pm_runtime_put_autosuspend(qspi->dev); if (ret < 0) { dev_err(qspi->dev, "pm_runtime_put_autosuspend() failed\n"); @@ -195,7 +194,6 @@ static void ti_qspi_setup_clk(struct ti_qspi *qspi, u32= speed_hz) ctx_reg->clkctrl =3D clk_ctrl_new; } =20 - pm_runtime_mark_last_busy(qspi->dev); pm_runtime_put_autosuspend(qspi->dev); } =20 diff --git a/drivers/spi/spi-zynqmp-gqspi.c b/drivers/spi/spi-zynqmp-gqspi.c index 595b6dc10845..502fd5eccc83 100644 --- a/drivers/spi/spi-zynqmp-gqspi.c +++ b/drivers/spi/spi-zynqmp-gqspi.c @@ -1330,7 +1330,6 @@ static int zynqmp_qspi_probe(struct platform_device *= pdev) goto clk_dis_all; } =20 - pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); =20 return 0; diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 1bc0fdbb1bd7..91413cc0936a 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -1723,7 +1723,6 @@ EXPORT_SYMBOL_GPL(spi_finalize_current_transfer); static void spi_idle_runtime_pm(struct spi_controller *ctlr) { if (ctlr->auto_runtime_pm) { - pm_runtime_mark_last_busy(ctlr->dev.parent); pm_runtime_put_autosuspend(ctlr->dev.parent); } } @@ -3856,7 +3855,6 @@ static int spi_set_cs_timing(struct spi_device *spi) } =20 status =3D spi->controller->set_cs_timing(spi); - pm_runtime_mark_last_busy(parent); pm_runtime_put_autosuspend(parent); } else { status =3D spi->controller->set_cs_timing(spi); @@ -3991,7 +3989,6 @@ int spi_setup(struct spi_device *spi) status =3D 0; =20 spi_set_cs(spi, false, true); - pm_runtime_mark_last_busy(spi->controller->dev.parent); pm_runtime_put_autosuspend(spi->controller->dev.parent); } else { spi_set_cs(spi, false, true); --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 E2C112F3C33 for ; Fri, 4 Jul 2025 07:55:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615706; cv=none; b=cER5vb7DKPnvQ7FevWBB3a4Dv1KUPNqtARrQbyVIU0APcRvla9YzYlFXw1g2xrX1XR7sIv4Wdndvdln7u58g7wNoSkNPj4zCjMuUyWR3IJGUArJfkfr1TISD0pvTP790w4BdDLty5hjpb4UZfRDEbTCwIbqgF0bFh1Mm+C355LA= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615706; c=relaxed/simple; bh=mdM0fCBRCMeIMAVi7fqCrM0fXAuMJVicckxaZNS+bgI=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=S+CxSCWZos3F75PuvuyVCPJrMteJPGj1rSTRrhcSTQmInaf45p8ZHhRuB9Y0dwY2XyED8qNdJl+Nnlg4EkdetMWypGSrZky1E7CZa2taTQQaTw/PLtzs2kkE5lwWndw9WnyW4dwFmVX3wT8FxAtjehiRzwtwE2cmKk1WCTOZnOI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=aB7Lt57l; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="aB7Lt57l" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615703; x=1783151703; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=mdM0fCBRCMeIMAVi7fqCrM0fXAuMJVicckxaZNS+bgI=; b=aB7Lt57lFqKGW2upTPlbNzpejBEwAcvzB+kKFozwU/9LiAHie4mHMQTC VNrKwX5C+fwWwua7sOPCNztsUArMhzViL1UD4Bw9CAeTXc8Ltp7SAGFxx jZGC/ZMzPyhzn+HCEvJKEu1+Fyfh/E1+2DKp1fjNEm70NKmVu9Er1pwqc yCCH/Su5OjvlCjLn4ftsZgptkCQ4AvdcLKuJqtYXXfRD08KrzP13Z9uxt S4fgczul8RE3nm/rwaXxnbh2dXEZO9qB/IiQsis8GWoCWhH4PPRJzMuvb 5vzvtdyGwpzfbzlEMgEFKOCLVPxD7xE22nxYtnBfYM44iQo1cBG0dzRaP Q==; X-CSE-ConnectionGUID: o3ojZnaNQdifyAhg28+Mgw== X-CSE-MsgGUID: dLZV87yESu+l756RUxzZcw== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194260" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194260" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:59 -0700 X-CSE-ConnectionGUID: LhFiReD2SIile6uLjhnPyQ== X-CSE-MsgGUID: o0jYIUk4SJePdq14auC1hg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616652" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:51 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 4B87844419; Fri, 4 Jul 2025 10:54:49 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Johan Hovold , Alex Elder , Greg Kroah-Hartman Cc: greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 62/80] staging: greybus: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:48 +0300 Message-Id: <20250704075448.3221843-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/staging/greybus/gbphy.c | 1 - drivers/staging/greybus/gbphy.h | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/staging/greybus/gbphy.c b/drivers/staging/greybus/gbph= y.c index 6adcad286633..3068bd71cd98 100644 --- a/drivers/staging/greybus/gbphy.c +++ b/drivers/staging/greybus/gbphy.c @@ -53,7 +53,6 @@ static void gbphy_dev_release(struct device *dev) #ifdef CONFIG_PM static int gb_gbphy_idle(struct device *dev) { - pm_runtime_mark_last_busy(dev); pm_request_autosuspend(dev); return 0; } diff --git a/drivers/staging/greybus/gbphy.h b/drivers/staging/greybus/gbph= y.h index d4a225b76338..4a4ebc7f2b98 100644 --- a/drivers/staging/greybus/gbphy.h +++ b/drivers/staging/greybus/gbphy.h @@ -85,7 +85,6 @@ static inline void gbphy_runtime_put_autosuspend(struct g= bphy_device *gbphy_dev) { struct device *dev =3D &gbphy_dev->dev; =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); } =20 --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 E36F42F3C35 for ; Fri, 4 Jul 2025 07:55:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615705; cv=none; b=i6UdhscqBcCHqteluk3Ni6v+nCLmeJsdsPszXeH1UOWBmndQ0aVvdyKOfBNy81pqay/mBxn46Hz5quwWNk/ZC7QBxfhWTerE9SgzkIajltUrfDWhGMe+GNg4sRocinzlDkUiTDjeRk5RX3LBUVApfJJI/mE5AeoJop4Y1WL3E4M= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615705; c=relaxed/simple; bh=qd8Jabk23N4/4W/Jfwg2Vhw/5dNNhoAgmpr14eTHRnE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=lcaORVyDBSz82KwLVKFkh4fzdOGGU4VEPTCEOWI2yG44OY47sjkfnxmahzTjnpCy02PCJ0ABOSO1hKRw86zFC0NybH1VhQF+yu+BwEiOc9+JBTui/Z6jt8P0cx/pytiv5eZQ94RkU4rI0GSFnRcWtFbDN3JwRN8A1TVR2/YDJ/Y= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=YRl3gRbt; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="YRl3gRbt" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615703; x=1783151703; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qd8Jabk23N4/4W/Jfwg2Vhw/5dNNhoAgmpr14eTHRnE=; b=YRl3gRbtqnuJB+FcWmQJIl6r1oVIgDAHWVjezacEBrD/oHKCxzNB6Mce To/iqKc7ERic57lhG5FfCdW2gDm+K/ngb16EsERPrt56fCpNPO0S5JE55 moUaF5CPZnpM6E8jFvjDInKIEwANt/SyLjABlhBiL4HABD8IVByIgO+nr 893ia9uFC7LpVy+iIeIE7QsYRgdyjTddOUAZFemnbdn+kK8/Oqx2fclGE DV8vX+JLxLbInsElUFNuQUzVyaoAvTeJJm0pLNdDNFT5RONADUcFU4asO 8xyBEVsvttRteJEpUVE0COxKUuVGz7AG05999TiiaP9GVXMETlUx4GiKp A==; X-CSE-ConnectionGUID: 2NiQuuofRNGKahMTFvMrcw== X-CSE-MsgGUID: bfaToOOHSKePOmd5jgZflw== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194256" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194256" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:59 -0700 X-CSE-ConnectionGUID: gWSRCDqQSH+IVoBxVZe6Mg== X-CSE-MsgGUID: TAR//cGuSLCFRfLCsb3ZiA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616663" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:54 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 0FF2A44394; Fri, 4 Jul 2025 10:54:50 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Johan Hovold , Alex Elder , Greg Kroah-Hartman Cc: greybus-dev@lists.linaro.org, linux-kernel@vger.kernel.org Subject: [PATCH 63/80] greybus: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:49 +0300 Message-Id: <20250704075449.3221896-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/greybus/bundle.c | 1 - drivers/greybus/interface.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/greybus/bundle.c b/drivers/greybus/bundle.c index a6e1cca06172..269a82c5c757 100644 --- a/drivers/greybus/bundle.c +++ b/drivers/greybus/bundle.c @@ -155,7 +155,6 @@ static int gb_bundle_resume(struct device *dev) =20 static int gb_bundle_idle(struct device *dev) { - pm_runtime_mark_last_busy(dev); pm_request_autosuspend(dev); =20 return 0; diff --git a/drivers/greybus/interface.c b/drivers/greybus/interface.c index a0f3e9422721..c49fe54c16ca 100644 --- a/drivers/greybus/interface.c +++ b/drivers/greybus/interface.c @@ -753,7 +753,6 @@ static int gb_interface_resume(struct device *dev) =20 static int gb_interface_runtime_idle(struct device *dev) { - pm_runtime_mark_last_busy(dev); pm_request_autosuspend(dev); =20 return 0; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 5D7C02F49F2; Fri, 4 Jul 2025 07:55:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615707; cv=none; b=qMRCTjaHJBnKxvmWo6jRRR5sTrzMFYj7jEOaf8UhDPHtscwdSpsgooArpDMBCuUUjvfgH5gNhEt63WoC2TuWz86WVz2qVWG7VVT61OKN2d+nILyiDjbVH5TTcrJqLFE09z4lvZR+eoeloUBWBBiSfxvhOO/GcZXf+tbDZeKXvhM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615707; c=relaxed/simple; bh=jYjiHNs7+nnRhnxWuagXuOKoGclwye4obrP5Szc2NG8=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=AyuAMJA9KaiGKCaJNqxxgtCuPZToRDXX46E3ttIG1EOX4V7r9wQscuoQDpwyHvpTvDKaWRLdG6faOrcn2BeNDS1x7vAi/oYJfnW4psy3kqLUY/jaOpfUwu5/xmVcwkH5mlj9KyK9ev0EhC9h8I4xOwL+X7QP1gn0wXitzZ9PH9s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=LBLn6fZS; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="LBLn6fZS" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615706; x=1783151706; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=jYjiHNs7+nnRhnxWuagXuOKoGclwye4obrP5Szc2NG8=; b=LBLn6fZSESyQCV1KttD/iq2fYgEmxUL0fAJVuQ0eVncbe8kV5EtLXeap 2kaRCcOMS8ff+8I1Cvn0tuwP/dAfhhQkZyBfDFxcKVwR6S+u5l1LMDOqJ 6jsz9XeB1wR/4wNDJsnFo7NDBeaNzE0q4nFkpH3FKViA/LbgZ5zMSt/Ue j3/5rXx2QFEVmQaSRjfJdNexM+6q/0Amc6PSJFQXKvd9u/FCSHn96mmRh OnJfC4e5MPp5tNR/m4NG6NHwq0khI7XonIM8N67lwuVjoiM/1V2ZgCM3h A7ew3HWTKlZDC7nSVmNBYxnakrF7qSz/zqbGMs3+Q5o1MJtBBG8QWMBAA w==; X-CSE-ConnectionGUID: +J++fAuJQxq1PNxATQmyqQ== X-CSE-MsgGUID: 4lMjmpzoR6ima6TRrhO45g== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194264" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194264" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:59 -0700 X-CSE-ConnectionGUID: yk+YfJ50SW+r/4KA71Ve/g== X-CSE-MsgGUID: l2mPlxxSSpS0B9pgrJDDKQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616671" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:55 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 3937244433; Fri, 4 Jul 2025 10:54:51 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Ezequiel Garcia , Mauro Carvalho Chehab , Greg Kroah-Hartman Cc: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH 64/80] media: rkvdec: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:50 +0300 Message-Id: <20250704075450.3221972-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Reviewed-by: Nicolas Dufresne --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/staging/media/rkvdec/rkvdec.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/staging/media/rkvdec/rkvdec.c b/drivers/staging/media/= rkvdec/rkvdec.c index d707088ec0dc..445f7c92eee3 100644 --- a/drivers/staging/media/rkvdec/rkvdec.c +++ b/drivers/staging/media/rkvdec/rkvdec.c @@ -765,7 +765,6 @@ static void rkvdec_job_finish(struct rkvdec_ctx *ctx, { struct rkvdec_dev *rkvdec =3D ctx->dev; =20 - pm_runtime_mark_last_busy(rkvdec->dev); pm_runtime_put_autosuspend(rkvdec->dev); rkvdec_job_finish_no_pm(ctx, result); } --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 80FA82F50AA; Fri, 4 Jul 2025 07:55:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615709; cv=none; b=RPvdlPCG3TbAKecjc1hX6tdx9WZfeXb1+xzPLy2/7FX4XUKesydXwwLXNkIs2ZNfmC9N3u/G6pIzKgO+PQc8nbWPN2x+nSSCtocRgO/9RuP3jAzByYmxpr4vD2mFETVy8l2Vg8KdCh8BLwz0PGLRnZx5JZ/SBz5EMH/YCnAdcPw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615709; c=relaxed/simple; bh=GXkooPLiz/m8KPmhM4Nz4SvBdNI/9KVoc1B8Wa4Texo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=SnJqqTqHix4Jyxfq6PJ3ZTiiq4RmoBEl5K5kWDs2f/P9HW5uIOqd9cZxiRuNJK9FWZHehX2GsJGptksQeTCTNvAtAnoDbQUN3Alf/BOvWptszR0S5IFtgfFZNzOGqkZcSCig80Y69IXp7FNGJfKGjXPDWhlQvcr/CCnIkH5AnR4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Zn8ItewI; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Zn8ItewI" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615707; x=1783151707; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=GXkooPLiz/m8KPmhM4Nz4SvBdNI/9KVoc1B8Wa4Texo=; b=Zn8ItewIOFumehIrp7s36eOg5md61iO0MLcO64Uu+mrVSY6HCkpfY3SZ +FLeN8vVxPQkdMOGyHw3ibLpAS8eK3vkDPOoYLBMyQ6FiclhgNeY4JA+H i6QpsHVpOVIUtUVDTqKFW3MHT0F/2I/SasWUvncH2wtDjqs3XiZxakKsl J8b5fZNIZw5RYnTKPEWSRUvoDu3/Q3wqy+scy6iQDnTJpEUAnxkbyFl+u HpyTvj+/5bhqpLz6obZeZsgxWMCucsK3hMzzqX21BjJKmFvlzqg32G/Aw zi3kZdN8PFj9rmiPg4z/Fs9Xl3z2XhzuM+Er4hjVi8EmT2Bh+jlhqHetQ Q==; X-CSE-ConnectionGUID: bAcstHPfRSqiGZ0qZ/j6Uw== X-CSE-MsgGUID: YBmeH1HLR3WPkMpJTzOX9Q== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194271" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194271" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:59 -0700 X-CSE-ConnectionGUID: qhmrTYIdQFWKLuP1ilA8CA== X-CSE-MsgGUID: yWHR0cUbSLSjcfGLmob/+w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616684" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:55 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id DF2F04445A; Fri, 4 Jul 2025 10:54:51 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Andreas Noever , Michael Jamet , Mika Westerberg , Yehezkel Bernat Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 65/80] thunderbolt: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:51 +0300 Message-Id: <20250704075451.3222060-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/thunderbolt/debugfs.c | 11 ----------- drivers/thunderbolt/domain.c | 2 -- drivers/thunderbolt/icm.c | 7 ------- drivers/thunderbolt/retimer.c | 2 -- drivers/thunderbolt/switch.c | 4 ---- drivers/thunderbolt/tb.c | 9 --------- drivers/thunderbolt/usb4_port.c | 2 -- 7 files changed, 37 deletions(-) diff --git a/drivers/thunderbolt/debugfs.c b/drivers/thunderbolt/debugfs.c index f8328ca7e22e..d0e91c93916d 100644 --- a/drivers/thunderbolt/debugfs.c +++ b/drivers/thunderbolt/debugfs.c @@ -262,7 +262,6 @@ static ssize_t regs_write(struct tb_switch *sw, struct = tb_port *port, mutex_unlock(&tb->lock); =20 out: - pm_runtime_mark_last_busy(&sw->dev); pm_runtime_put_autosuspend(&sw->dev); free_page((unsigned long)buf); =20 @@ -403,7 +402,6 @@ static ssize_t port_sb_regs_write(struct file *file, co= nst char __user *user_buf =20 mutex_unlock(&tb->lock); out: - pm_runtime_mark_last_busy(&sw->dev); pm_runtime_put_autosuspend(&sw->dev); free_page((unsigned long)buf); =20 @@ -436,7 +434,6 @@ static ssize_t retimer_sb_regs_write(struct file *file, =20 mutex_unlock(&tb->lock); out: - pm_runtime_mark_last_busy(&rt->dev); pm_runtime_put_autosuspend(&rt->dev); free_page((unsigned long)buf); =20 @@ -1304,7 +1301,6 @@ static int margining_run_write(void *data, u64 val) out_unlock: mutex_unlock(&tb->lock); out_rpm_put: - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; @@ -1923,7 +1919,6 @@ static ssize_t counters_write(struct file *file, cons= t char __user *user_buf, mutex_unlock(&tb->lock); =20 out: - pm_runtime_mark_last_busy(&sw->dev); pm_runtime_put_autosuspend(&sw->dev); free_page((unsigned long)buf); =20 @@ -2118,7 +2113,6 @@ static int port_regs_show(struct seq_file *s, void *n= ot_used) out_unlock: mutex_unlock(&tb->lock); out_rpm_put: - pm_runtime_mark_last_busy(&sw->dev); pm_runtime_put_autosuspend(&sw->dev); =20 return ret; @@ -2222,7 +2216,6 @@ static int switch_regs_show(struct seq_file *s, void = *not_used) out_unlock: mutex_unlock(&tb->lock); out_rpm_put: - pm_runtime_mark_last_busy(&sw->dev); pm_runtime_put_autosuspend(&sw->dev); =20 return ret; @@ -2283,7 +2276,6 @@ static int path_show(struct seq_file *s, void *not_us= ed) out_unlock: mutex_unlock(&tb->lock); out_rpm_put: - pm_runtime_mark_last_busy(&sw->dev); pm_runtime_put_autosuspend(&sw->dev); =20 return ret; @@ -2337,7 +2329,6 @@ static int counters_show(struct seq_file *s, void *no= t_used) mutex_unlock(&tb->lock); =20 out: - pm_runtime_mark_last_busy(&sw->dev); pm_runtime_put_autosuspend(&sw->dev); =20 return ret; @@ -2391,7 +2382,6 @@ static int port_sb_regs_show(struct seq_file *s, void= *not_used) =20 mutex_unlock(&tb->lock); out_rpm_put: - pm_runtime_mark_last_busy(&sw->dev); pm_runtime_put_autosuspend(&sw->dev); =20 return ret; @@ -2506,7 +2496,6 @@ static int retimer_sb_regs_show(struct seq_file *s, v= oid *not_used) =20 mutex_unlock(&tb->lock); out_rpm_put: - pm_runtime_mark_last_busy(&rt->dev); pm_runtime_put_autosuspend(&rt->dev); =20 return ret; diff --git a/drivers/thunderbolt/domain.c b/drivers/thunderbolt/domain.c index a3a7c8059eee..15d7c8881be1 100644 --- a/drivers/thunderbolt/domain.c +++ b/drivers/thunderbolt/domain.c @@ -150,7 +150,6 @@ static ssize_t boot_acl_show(struct device *dev, struct= device_attribute *attr, } =20 out: - pm_runtime_mark_last_busy(&tb->dev); pm_runtime_put_autosuspend(&tb->dev); kfree(uuids); =20 @@ -222,7 +221,6 @@ static ssize_t boot_acl_store(struct device *dev, struc= t device_attribute *attr, mutex_unlock(&tb->lock); =20 err_rpm_put: - pm_runtime_mark_last_busy(&tb->dev); pm_runtime_put_autosuspend(&tb->dev); err_free_acl: kfree(acl); diff --git a/drivers/thunderbolt/icm.c b/drivers/thunderbolt/icm.c index f213d9174dc5..ed8c9d8b1e36 100644 --- a/drivers/thunderbolt/icm.c +++ b/drivers/thunderbolt/icm.c @@ -367,7 +367,6 @@ static void icm_veto_end(struct tb *tb) if (icm->veto) { icm->veto =3D false; /* Allow the domain suspend now */ - pm_runtime_mark_last_busy(&tb->dev); pm_runtime_put_autosuspend(&tb->dev); } } @@ -721,7 +720,6 @@ static void add_xdomain(struct tb_switch *sw, u64 route, tb_xdomain_add(xd); =20 out: - pm_runtime_mark_last_busy(&sw->dev); pm_runtime_put_autosuspend(&sw->dev); } =20 @@ -883,7 +881,6 @@ icm_fr_device_connected(struct tb *tb, const struct icm= _pkg_header *hdr) tb_switch_put(sw); } =20 - pm_runtime_mark_last_busy(&parent_sw->dev); pm_runtime_put_autosuspend(&parent_sw->dev); =20 tb_switch_put(parent_sw); @@ -917,7 +914,6 @@ icm_fr_device_disconnected(struct tb *tb, const struct = icm_pkg_header *hdr) =20 remove_switch(sw); =20 - pm_runtime_mark_last_busy(sw->dev.parent); pm_runtime_put_autosuspend(sw->dev.parent); =20 tb_switch_put(sw); @@ -1315,7 +1311,6 @@ __icm_tr_device_connected(struct tb *tb, const struct= icm_pkg_header *hdr, tb_switch_put(sw); } =20 - pm_runtime_mark_last_busy(&parent_sw->dev); pm_runtime_put_autosuspend(&parent_sw->dev); =20 tb_switch_put(parent_sw); @@ -1346,7 +1341,6 @@ icm_tr_device_disconnected(struct tb *tb, const struc= t icm_pkg_header *hdr) =20 remove_switch(sw); =20 - pm_runtime_mark_last_busy(sw->dev.parent); pm_runtime_put_autosuspend(sw->dev.parent); =20 tb_switch_put(sw); @@ -2078,7 +2072,6 @@ static void remove_unplugged_switch(struct tb_switch = *sw) bus_for_each_dev(&tb_bus_type, &sw->dev, NULL, complete_rpm); tb_switch_remove(sw); =20 - pm_runtime_mark_last_busy(parent); pm_runtime_put_autosuspend(parent); =20 put_device(parent); diff --git a/drivers/thunderbolt/retimer.c b/drivers/thunderbolt/retimer.c index 361fece3d818..fa861567d246 100644 --- a/drivers/thunderbolt/retimer.c +++ b/drivers/thunderbolt/retimer.c @@ -53,7 +53,6 @@ static int nvm_read(void *priv, unsigned int offset, void= *val, size_t bytes) mutex_unlock(&rt->tb->lock); =20 out: - pm_runtime_mark_last_busy(&rt->dev); pm_runtime_put_autosuspend(&rt->dev); =20 return ret; @@ -304,7 +303,6 @@ static ssize_t nvm_authenticate_store(struct device *de= v, tb_retimer_unset_inbound_sbtx(rt->port); mutex_unlock(&rt->tb->lock); exit_rpm: - pm_runtime_mark_last_busy(&rt->dev); pm_runtime_put_autosuspend(&rt->dev); =20 if (ret) diff --git a/drivers/thunderbolt/switch.c b/drivers/thunderbolt/switch.c index e9f4186f20f4..44e821444412 100644 --- a/drivers/thunderbolt/switch.c +++ b/drivers/thunderbolt/switch.c @@ -318,7 +318,6 @@ static int nvm_read(void *priv, unsigned int offset, vo= id *val, size_t bytes) mutex_unlock(&sw->tb->lock); =20 out: - pm_runtime_mark_last_busy(&sw->dev); pm_runtime_put_autosuspend(&sw->dev); =20 return ret; @@ -1846,7 +1845,6 @@ static ssize_t authorized_store(struct device *dev, =20 pm_runtime_get_sync(&sw->dev); ret =3D tb_switch_set_authorized(sw, val); - pm_runtime_mark_last_busy(&sw->dev); pm_runtime_put_autosuspend(&sw->dev); =20 return ret ? ret : count; @@ -2078,7 +2076,6 @@ static ssize_t nvm_authenticate_sysfs(struct device *= dev, const char *buf, exit_unlock: mutex_unlock(&sw->tb->lock); exit_rpm: - pm_runtime_mark_last_busy(&sw->dev); pm_runtime_put_autosuspend(&sw->dev); =20 return ret; @@ -3351,7 +3348,6 @@ int tb_switch_add(struct tb_switch *sw) if (sw->rpm) { pm_runtime_set_autosuspend_delay(&sw->dev, TB_AUTOSUSPEND_DELAY); pm_runtime_use_autosuspend(&sw->dev); - pm_runtime_mark_last_busy(&sw->dev); pm_runtime_enable(&sw->dev); pm_request_autosuspend(&sw->dev); } diff --git a/drivers/thunderbolt/tb.c b/drivers/thunderbolt/tb.c index c14ab1fbeeaf..bd8bfd774345 100644 --- a/drivers/thunderbolt/tb.c +++ b/drivers/thunderbolt/tb.c @@ -1271,7 +1271,6 @@ static void tb_scan_switch(struct tb_switch *sw) tb_switch_for_each_port(sw, port) tb_scan_port(port); =20 - pm_runtime_mark_last_busy(&sw->dev); pm_runtime_put_autosuspend(&sw->dev); } =20 @@ -1415,7 +1414,6 @@ static void tb_scan_port(struct tb_port *port) =20 out_rpm_put: if (port->usb4) { - pm_runtime_mark_last_busy(&port->usb4->dev); pm_runtime_put_autosuspend(&port->usb4->dev); } } @@ -1740,9 +1738,7 @@ static void tb_deactivate_and_free_tunnel(struct tb_t= unnel *tunnel) */ tb_configure_sym(tb, src_port, dst_port, true); /* Now we can allow the domain to runtime suspend again */ - pm_runtime_mark_last_busy(&dst_port->sw->dev); pm_runtime_put_autosuspend(&dst_port->sw->dev); - pm_runtime_mark_last_busy(&src_port->sw->dev); pm_runtime_put_autosuspend(&src_port->sw->dev); fallthrough; =20 @@ -2046,9 +2042,7 @@ static void tb_tunnel_one_dp(struct tb *tb, struct tb= _port *in, err_dealloc_dp: tb_switch_dealloc_dp_resource(in->sw, in); err_rpm_put: - pm_runtime_mark_last_busy(&out->sw->dev); pm_runtime_put_autosuspend(&out->sw->dev); - pm_runtime_mark_last_busy(&in->sw->dev); pm_runtime_put_autosuspend(&in->sw->dev); } =20 @@ -2508,7 +2502,6 @@ static void tb_handle_hotplug(struct work_struct *wor= k) } } =20 - pm_runtime_mark_last_busy(&sw->dev); pm_runtime_put_autosuspend(&sw->dev); =20 put_sw: @@ -2516,7 +2509,6 @@ static void tb_handle_hotplug(struct work_struct *wor= k) out: mutex_unlock(&tb->lock); =20 - pm_runtime_mark_last_busy(&tb->dev); pm_runtime_put_autosuspend(&tb->dev); =20 kfree(ev); @@ -2843,7 +2835,6 @@ static void tb_handle_dp_bandwidth_request(struct wor= k_struct *work) unlock: mutex_unlock(&tb->lock); =20 - pm_runtime_mark_last_busy(&tb->dev); pm_runtime_put_autosuspend(&tb->dev); =20 kfree(ev); diff --git a/drivers/thunderbolt/usb4_port.c b/drivers/thunderbolt/usb4_por= t.c index 852a45fcd19d..4739e92bb46f 100644 --- a/drivers/thunderbolt/usb4_port.c +++ b/drivers/thunderbolt/usb4_port.c @@ -200,7 +200,6 @@ static ssize_t offline_store(struct device *dev, out_unlock: mutex_unlock(&tb->lock); out_rpm: - pm_runtime_mark_last_busy(&usb4->dev); pm_runtime_put_autosuspend(&usb4->dev); =20 return ret ? ret : count; @@ -242,7 +241,6 @@ static ssize_t rescan_store(struct device *dev, out_unlock: mutex_unlock(&tb->lock); out_rpm: - pm_runtime_mark_last_busy(&usb4->dev); pm_runtime_put_autosuspend(&usb4->dev); =20 return ret ? ret : count; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 BEE842F7D0E; Fri, 4 Jul 2025 07:55:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615715; cv=none; b=NuVF2B5VTDUeoUO/uVV3hRSFkE7ULxvT4CzPcPfWc0nvjUXYC6zncQFO0kXzdcCc+UpG5s0QTfRiIRvhIZZVyELTu4nQYP+y6qwKePmvAFTsUEj8e3LbncXLpJqpp8+ADg88k6dqbUNHZd7XnRvRfk69Dovxlfn/dB0eehQ9448= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615715; c=relaxed/simple; bh=lzOBZYTBavsi2Z34vHlXoBrBjY0eNs9he5kt9Nk32kM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=DdKJDKacAq09zqbByO9BcmpJ3fz9CApaOu44WxeNsVxxsVQ3pXt4GQhY85YJnElNKSJoqQL+LXG38tOfH2XDZCkIPdlo1yM0EuuDJo5ELuFVYNQKf0HWJdjNNK0L3DVVjHjaifNAuS0WJfPsK9jVOXS/N4IGn/Su87HIbTeA9N4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=NJ6NX9OS; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="NJ6NX9OS" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615713; x=1783151713; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lzOBZYTBavsi2Z34vHlXoBrBjY0eNs9he5kt9Nk32kM=; b=NJ6NX9OSqK2yH49TGJ1/yVF+qy9VHM1ambFydZS4yn9Bd3bZbiKYVwRH DtatMdEV2epfEOmnZpNEBBgjG3+4FJJZ4nxHyVb8OX9gxKuL0RXAd2Fdf FdsWICNO2YZaZadK03b+oXEC7LTtqOZyUgLYdFwGY+Mu1oShnagil8qYe 5U7dANefCWdvcduNUdv8BftpBtm0ZUhpzvwnUU/BlX+dRz62eoMuhxvlp CnerzDfDIQOfDV1byNO828Hs0iyzMo6TlZrsYqvPYsVQh7123/PDT4djy ZSik0Ijspc8Nad+6Hngl5mBEHNTN2c4pC6Nqv8dICEK5As+7FrnN1lChf A==; X-CSE-ConnectionGUID: yASibvyJRiytjWs64v0WHw== X-CSE-MsgGUID: oqHXpyHFQ8SRzHEhKU2g8g== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194328" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194328" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:55:03 -0700 X-CSE-ConnectionGUID: DyR3FIjPRPqQIAzc1rL3Jw== X-CSE-MsgGUID: qJCH8EhASNmI9Sen5dGyBg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616672" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:55 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id CFDC8447EB; Fri, 4 Jul 2025 10:54:52 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Greg Kroah-Hartman , Jiri Slaby , Peter Korsgaard , Michal Simek , Kevin Hilman , Markus Schneider-Pargmann , John Ogness , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Sakari Ailus , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= , Andy Shevchenko , Sherry Sun , Ingo Molnar , Peng Fan , Thomas Gleixner , Christophe JAILLET , Petr Mladek , Marcos Paulo de Souza , Nam Cao , Zack Rusin , Jinjie Ruan , Sean Anderson Cc: linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 66/80] serial: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:52 +0300 Message-Id: <20250704075452.3222201-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/tty/serial/8250/8250_omap.c | 9 --------- drivers/tty/serial/8250/8250_port.c | 2 -- drivers/tty/serial/fsl_lpuart.c | 1 - drivers/tty/serial/serial_core.c | 1 - drivers/tty/serial/uartlite.c | 2 -- drivers/tty/serial/xilinx_uartps.c | 1 - 6 files changed, 16 deletions(-) diff --git a/drivers/tty/serial/8250/8250_omap.c b/drivers/tty/serial/8250/= 8250_omap.c index 6707f55bdbe7..091afea71b95 100644 --- a/drivers/tty/serial/8250/8250_omap.c +++ b/drivers/tty/serial/8250/8250_omap.c @@ -207,7 +207,6 @@ static void omap8250_set_mctrl(struct uart_port *port, = unsigned int mctrl) =20 __omap8250_set_mctrl(port, mctrl); =20 - pm_runtime_mark_last_busy(port->dev); pm_runtime_put_autosuspend(port->dev); } =20 @@ -516,7 +515,6 @@ static void omap_8250_set_termios(struct uart_port *por= t, omap8250_restore_regs(up); =20 uart_port_unlock_irq(&up->port); - pm_runtime_mark_last_busy(port->dev); pm_runtime_put_autosuspend(port->dev); =20 /* calculate wakeup latency constraint */ @@ -554,7 +552,6 @@ static void omap_8250_pm(struct uart_port *port, unsign= ed int state, =20 uart_port_unlock_irq(port); =20 - pm_runtime_mark_last_busy(port->dev); pm_runtime_put_autosuspend(port->dev); } =20 @@ -773,7 +770,6 @@ static int omap_8250_startup(struct uart_port *port) =20 enable_irq(port->irq); =20 - pm_runtime_mark_last_busy(port->dev); pm_runtime_put_autosuspend(port->dev); return 0; } @@ -811,7 +807,6 @@ static void omap_8250_shutdown(struct uart_port *port) serial_out(up, UART_LCR, up->lcr & ~UART_LCR_SBC); serial_out(up, UART_FCR, UART_FCR_CLEAR_RCVR | UART_FCR_CLEAR_XMIT); =20 - pm_runtime_mark_last_busy(port->dev); pm_runtime_put_autosuspend(port->dev); } =20 @@ -827,7 +822,6 @@ static void omap_8250_throttle(struct uart_port *port) priv->throttled =3D true; uart_port_unlock_irqrestore(port, flags); =20 - pm_runtime_mark_last_busy(port->dev); pm_runtime_put_autosuspend(port->dev); } =20 @@ -848,7 +842,6 @@ static void omap_8250_unthrottle(struct uart_port *port) serial_out(up, UART_IER, up->ier); uart_port_unlock_irqrestore(port, flags); =20 - pm_runtime_mark_last_busy(port->dev); pm_runtime_put_autosuspend(port->dev); } =20 @@ -1594,7 +1587,6 @@ static int omap8250_probe(struct platform_device *pde= v) goto err; } priv->line =3D ret; - pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); return 0; err: @@ -1682,7 +1674,6 @@ static int omap8250_resume(struct device *dev) =20 serial8250_resume_port(priv->line); /* Paired with pm_runtime_resume_and_get() in omap8250_suspend() */ - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; diff --git a/drivers/tty/serial/8250/8250_port.c b/drivers/tty/serial/8250/= 8250_port.c index 7eddcab318b4..22ad70117c44 100644 --- a/drivers/tty/serial/8250/8250_port.c +++ b/drivers/tty/serial/8250/8250_port.c @@ -519,7 +519,6 @@ static void serial8250_rpm_put(struct uart_8250_port *p) { if (!(p->capabilities & UART_CAP_RPM)) return; - pm_runtime_mark_last_busy(p->port.dev); pm_runtime_put_autosuspend(p->port.dev); } =20 @@ -659,7 +658,6 @@ static void serial8250_rpm_put_tx(struct uart_8250_port= *p) rpm_active =3D xchg(&p->rpm_tx_active, 0); if (!rpm_active) return; - pm_runtime_mark_last_busy(p->port.dev); pm_runtime_put_autosuspend(p->port.dev); } =20 diff --git a/drivers/tty/serial/fsl_lpuart.c b/drivers/tty/serial/fsl_lpuar= t.c index c9519e649e82..79050a42cd1b 100644 --- a/drivers/tty/serial/fsl_lpuart.c +++ b/drivers/tty/serial/fsl_lpuart.c @@ -825,7 +825,6 @@ lpuart_uart_pm(struct uart_port *port, unsigned int sta= te, unsigned int oldstate { switch (state) { case UART_PM_STATE_OFF: - pm_runtime_mark_last_busy(port->dev); pm_runtime_put_autosuspend(port->dev); break; default: diff --git a/drivers/tty/serial/serial_core.c b/drivers/tty/serial/serial_c= ore.c index 86d404d649a3..f9fc9afcd845 100644 --- a/drivers/tty/serial/serial_core.c +++ b/drivers/tty/serial/serial_core.c @@ -159,7 +159,6 @@ static void __uart_start(struct uart_state *state) */ if (!pm_runtime_enabled(port->dev) || pm_runtime_active(&port_dev->dev)) port->ops->start_tx(port); - pm_runtime_mark_last_busy(&port_dev->dev); pm_runtime_put_autosuspend(&port_dev->dev); } =20 diff --git a/drivers/tty/serial/uartlite.c b/drivers/tty/serial/uartlite.c index 39c1fd1ff9ce..c21cd5f5be27 100644 --- a/drivers/tty/serial/uartlite.c +++ b/drivers/tty/serial/uartlite.c @@ -422,7 +422,6 @@ static void ulite_pm(struct uart_port *port, unsigned i= nt state, if (ret < 0) dev_err(port->dev, "Failed to enable clocks\n"); } else { - pm_runtime_mark_last_busy(port->dev); pm_runtime_put_autosuspend(port->dev); } } @@ -882,7 +881,6 @@ static int ulite_probe(struct platform_device *pdev) =20 ret =3D ulite_assign(&pdev->dev, id, res->start, irq, pdata); =20 - pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); =20 return ret; diff --git a/drivers/tty/serial/xilinx_uartps.c b/drivers/tty/serial/xilinx= _uartps.c index fe457bf1e15b..36afa2a8f158 100644 --- a/drivers/tty/serial/xilinx_uartps.c +++ b/drivers/tty/serial/xilinx_uartps.c @@ -1240,7 +1240,6 @@ static void cdns_uart_pm(struct uart_port *port, unsi= gned int state, { switch (state) { case UART_PM_STATE_OFF: - pm_runtime_mark_last_busy(port->dev); pm_runtime_put_autosuspend(port->dev); break; default: --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 ECC042F7CEF; Fri, 4 Jul 2025 07:55:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615714; cv=none; b=pcKhcsF6qWJcFPev3Anbk4IvYq7Se0BXjNY4699n/j53R6izEJoIdv30H5OTKYtYkZJtVQ0F+VB54hoEEMbapkt3aazj9XlAg7T809r0ypzaP9Zb6EZTu0IjuBZLlWbHf8abOTdU+xA1Yi5u+QrjTgoJOEeu3uE4I7dM3CLklyg= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615714; c=relaxed/simple; bh=VtrMMS/EYac2mYN0thS6RYOHnRUoRDdcw8Uw9hEQxe0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=niVCmYnLukoJlf9azdjTpL82iE4400y13LvMyI67LqUGHsEQxnwMplA2HKC0ZVd05CVXrbdxGnzjbjuz82x/2Aetclwx7dcCkOvHAVQw4uiX3QvzgPzJo8J8iVvWklF9jrptfGpEKq/Ck5RhFjegfh2ItwbuK3rm3GU0NCG/X/s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ax/mHDki; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ax/mHDki" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615712; x=1783151712; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VtrMMS/EYac2mYN0thS6RYOHnRUoRDdcw8Uw9hEQxe0=; b=ax/mHDkiWuxjiU+ulLFieWS9ZNoBHbyZl1ks0M7iktVooeOd25a4twrq 2NPkFa8fqSsmcDGzHuo8xNxSczySdQ0lKjoQGblePyOYyfFE1PBx3e6Td 9TFKqfJ0FJ+hZDP+iJd3BPqv2crLuwnc9uowGjvQ4REg+lncH1hLOgLBt Inpawwe3Q7MQtPFcbEANF+W/toFiTE21grGsiKYpUa6pyUK11ZnWm8xXj RnqL6LftfIyNszn8DktpVj4zJFXEq6rU9c8/H3l6GubxyadkxBNUWgTr9 XqHUdpsJBLwsQcqUYFmnXuBnJ3VyfZMn8QVNdoDZx0YLjjFHxOV9EjQwk w==; X-CSE-ConnectionGUID: nFLQBoXEQy2wKdpTy5lAiw== X-CSE-MsgGUID: T5sFCed6SzK47znbWn6mKw== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194335" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194335" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:55:04 -0700 X-CSE-ConnectionGUID: jIXe8cbqS1yvqeVuXvR2hw== X-CSE-MsgGUID: 1doSRlVvQPm86EldGdrOEA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616706" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:55 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id CB15944843; Fri, 4 Jul 2025 10:54:53 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Peter Chen , Pawel Laszczak , Roger Quadros , Greg Kroah-Hartman , Thinh Nguyen , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Michal Simek , Chunfeng Yun , Mathias Nyman , Matthias Brugger , AngeloGioacchino Del Regno , Thierry Reding , Jonathan Hunter , Bastien Nocera , Bin Liu Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-tegra@vger.kernel.org, linux-omap@vger.kernel.org Subject: [PATCH 67/80] usb: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:53 +0300 Message-Id: <20250704075453.3222311-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Acked-by: Peter Chen Acked-by: Thierry Reding Reviewed-by: AngeloGioacchino Del Regno --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/usb/cdns3/cdns3-gadget.c | 1 - drivers/usb/cdns3/cdnsp-gadget.c | 1 - drivers/usb/chipidea/core.c | 1 - drivers/usb/chipidea/otg_fsm.c | 1 - drivers/usb/dwc3/core.c | 2 -- drivers/usb/dwc3/dwc3-am62.c | 1 - drivers/usb/dwc3/dwc3-imx8mp.c | 1 - drivers/usb/dwc3/dwc3-pci.c | 1 - drivers/usb/dwc3/dwc3-xilinx.c | 1 - drivers/usb/gadget/udc/cdns2/cdns2-gadget.c | 1 - drivers/usb/host/xhci-mtk.c | 1 - drivers/usb/host/xhci-tegra.c | 1 - drivers/usb/misc/apple-mfi-fastcharge.c | 1 - drivers/usb/mtu3/mtu3_plat.c | 1 - drivers/usb/musb/musb_core.c | 5 ----- drivers/usb/musb/musb_debugfs.c | 5 ----- drivers/usb/musb/musb_dsps.c | 1 - drivers/usb/musb/musb_gadget.c | 4 ---- drivers/usb/musb/omap2430.c | 1 - 19 files changed, 31 deletions(-) diff --git a/drivers/usb/cdns3/cdns3-gadget.c b/drivers/usb/cdns3/cdns3-gad= get.c index d9d8dc05b235..168707213ed9 100644 --- a/drivers/usb/cdns3/cdns3-gadget.c +++ b/drivers/usb/cdns3/cdns3-gadget.c @@ -3251,7 +3251,6 @@ static void cdns3_gadget_exit(struct cdns *cdns) priv_dev =3D cdns->gadget_dev; =20 =20 - pm_runtime_mark_last_busy(cdns->dev); pm_runtime_put_autosuspend(cdns->dev); =20 usb_del_gadget(&priv_dev->gadget); diff --git a/drivers/usb/cdns3/cdnsp-gadget.c b/drivers/usb/cdns3/cdnsp-gad= get.c index 55f95f41b3b4..2ffe24a6e477 100644 --- a/drivers/usb/cdns3/cdnsp-gadget.c +++ b/drivers/usb/cdns3/cdnsp-gadget.c @@ -1996,7 +1996,6 @@ static void cdnsp_gadget_exit(struct cdns *cdns) struct cdnsp_device *pdev =3D cdns->gadget_dev; =20 devm_free_irq(pdev->dev, cdns->dev_irq, pdev); - pm_runtime_mark_last_busy(cdns->dev); pm_runtime_put_autosuspend(cdns->dev); usb_del_gadget_udc(&pdev->gadget); cdnsp_gadget_free_endpoints(pdev); diff --git a/drivers/usb/chipidea/core.c b/drivers/usb/chipidea/core.c index 694b4a8e4e1d..a6ce73dcc871 100644 --- a/drivers/usb/chipidea/core.c +++ b/drivers/usb/chipidea/core.c @@ -1372,7 +1372,6 @@ static int ci_controller_resume(struct device *dev) ci->in_lpm =3D false; if (ci->wakeup_int) { ci->wakeup_int =3D false; - pm_runtime_mark_last_busy(ci->dev); pm_runtime_put_autosuspend(ci->dev); enable_irq(ci->irq); if (ci_otg_is_fsm_mode(ci)) diff --git a/drivers/usb/chipidea/otg_fsm.c b/drivers/usb/chipidea/otg_fsm.c index a093544482d5..929536dc96ec 100644 --- a/drivers/usb/chipidea/otg_fsm.c +++ b/drivers/usb/chipidea/otg_fsm.c @@ -629,7 +629,6 @@ int ci_otg_fsm_work(struct ci_hdrc *ci) ci_otg_queue_work(ci); } } else if (ci->fsm.otg->state =3D=3D OTG_STATE_A_HOST) { - pm_runtime_mark_last_busy(ci->dev); pm_runtime_put_autosuspend(ci->dev); return 0; } diff --git a/drivers/usb/dwc3/core.c b/drivers/usb/dwc3/core.c index 8002c23a5a02..77b309ebd704 100644 --- a/drivers/usb/dwc3/core.c +++ b/drivers/usb/dwc3/core.c @@ -279,7 +279,6 @@ static void __dwc3_set_mode(struct work_struct *work) } =20 out: - pm_runtime_mark_last_busy(dwc->dev); pm_runtime_put_autosuspend(dwc->dev); mutex_unlock(&dwc->mutex); } @@ -2642,7 +2641,6 @@ int dwc3_runtime_idle(struct dwc3 *dwc) break; } =20 - pm_runtime_mark_last_busy(dev); pm_runtime_autosuspend(dev); =20 return 0; diff --git a/drivers/usb/dwc3/dwc3-am62.c b/drivers/usb/dwc3/dwc3-am62.c index 9db8f3ca493d..e11d7643f966 100644 --- a/drivers/usb/dwc3/dwc3-am62.c +++ b/drivers/usb/dwc3/dwc3-am62.c @@ -292,7 +292,6 @@ static int dwc3_ti_probe(struct platform_device *pdev) /* Setting up autosuspend */ pm_runtime_set_autosuspend_delay(dev, DWC3_AM62_AUTOSUSPEND_DELAY); pm_runtime_use_autosuspend(dev); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); return 0; =20 diff --git a/drivers/usb/dwc3/dwc3-imx8mp.c b/drivers/usb/dwc3/dwc3-imx8mp.c index 3edc5aca76f9..37700d95bc09 100644 --- a/drivers/usb/dwc3/dwc3-imx8mp.c +++ b/drivers/usb/dwc3/dwc3-imx8mp.c @@ -307,7 +307,6 @@ static int dwc3_imx8mp_resume(struct dwc3_imx8mp *dwc3_= imx, pm_message_t msg) if (dwc3_imx->wakeup_pending) { dwc3_imx->wakeup_pending =3D false; if (dwc->current_dr_role =3D=3D DWC3_GCTL_PRTCAP_DEVICE) { - pm_runtime_mark_last_busy(dwc->dev); pm_runtime_put_autosuspend(dwc->dev); } else { /* diff --git a/drivers/usb/dwc3/dwc3-pci.c b/drivers/usb/dwc3/dwc3-pci.c index 54a4ee2b90b7..07dfa0b5d184 100644 --- a/drivers/usb/dwc3/dwc3-pci.c +++ b/drivers/usb/dwc3/dwc3-pci.c @@ -321,7 +321,6 @@ static void dwc3_pci_resume_work(struct work_struct *wo= rk) return; } =20 - pm_runtime_mark_last_busy(&dwc3->dev); pm_runtime_put_sync_autosuspend(&dwc3->dev); } #endif diff --git a/drivers/usb/dwc3/dwc3-xilinx.c b/drivers/usb/dwc3/dwc3-xilinx.c index 1e28d6f50ed0..0a8c47876ff9 100644 --- a/drivers/usb/dwc3/dwc3-xilinx.c +++ b/drivers/usb/dwc3/dwc3-xilinx.c @@ -383,7 +383,6 @@ static int __maybe_unused dwc3_xlnx_runtime_resume(stru= ct device *dev) =20 static int __maybe_unused dwc3_xlnx_runtime_idle(struct device *dev) { - pm_runtime_mark_last_busy(dev); pm_runtime_autosuspend(dev); =20 return 0; diff --git a/drivers/usb/gadget/udc/cdns2/cdns2-gadget.c b/drivers/usb/gadg= et/udc/cdns2/cdns2-gadget.c index 7e69944ef18a..9b53daf76583 100644 --- a/drivers/usb/gadget/udc/cdns2/cdns2-gadget.c +++ b/drivers/usb/gadget/udc/cdns2/cdns2-gadget.c @@ -2415,7 +2415,6 @@ int cdns2_gadget_resume(struct cdns2_device *pdev, bo= ol hibernated) =20 void cdns2_gadget_remove(struct cdns2_device *pdev) { - pm_runtime_mark_last_busy(pdev->dev); pm_runtime_put_autosuspend(pdev->dev); =20 usb_del_gadget(&pdev->gadget); diff --git a/drivers/usb/host/xhci-mtk.c b/drivers/usb/host/xhci-mtk.c index 208558cf822d..06043c7c3100 100644 --- a/drivers/usb/host/xhci-mtk.c +++ b/drivers/usb/host/xhci-mtk.c @@ -670,7 +670,6 @@ static int xhci_mtk_probe(struct platform_device *pdev) } =20 device_enable_async_suspend(dev); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); pm_runtime_forbid(dev); =20 diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c index 0c7af44d4dae..554b03e3ae92 100644 --- a/drivers/usb/host/xhci-tegra.c +++ b/drivers/usb/host/xhci-tegra.c @@ -1394,7 +1394,6 @@ static void tegra_xhci_id_work(struct work_struct *wo= rk) } =20 tegra_xhci_set_port_power(tegra, true, true); - pm_runtime_mark_last_busy(tegra->dev); =20 } else { if (tegra->otg_usb3_port >=3D 0) diff --git a/drivers/usb/misc/apple-mfi-fastcharge.c b/drivers/usb/misc/app= le-mfi-fastcharge.c index 8e852f4b8262..47b38dcc2992 100644 --- a/drivers/usb/misc/apple-mfi-fastcharge.c +++ b/drivers/usb/misc/apple-mfi-fastcharge.c @@ -134,7 +134,6 @@ static int apple_mfi_fc_set_property(struct power_suppl= y *psy, ret =3D -EINVAL; } =20 - pm_runtime_mark_last_busy(&mfi->udev->dev); pm_runtime_put_autosuspend(&mfi->udev->dev); =20 return ret; diff --git a/drivers/usb/mtu3/mtu3_plat.c b/drivers/usb/mtu3/mtu3_plat.c index 7b5a431acb56..cc8a864dbd63 100644 --- a/drivers/usb/mtu3/mtu3_plat.c +++ b/drivers/usb/mtu3/mtu3_plat.c @@ -431,7 +431,6 @@ static int mtu3_probe(struct platform_device *pdev) } =20 device_enable_async_suspend(dev); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); pm_runtime_forbid(dev); =20 diff --git a/drivers/usb/musb/musb_core.c b/drivers/usb/musb/musb_core.c index c7234b236971..0acc62569ae5 100644 --- a/drivers/usb/musb/musb_core.c +++ b/drivers/usb/musb/musb_core.c @@ -2031,7 +2031,6 @@ static void musb_pm_runtime_check_session(struct musb= *musb) if (!musb->session) break; trace_musb_state(musb, devctl, "Allow PM on possible host mode disconnec= t"); - pm_runtime_mark_last_busy(musb->controller); pm_runtime_put_autosuspend(musb->controller); musb->session =3D false; return; @@ -2063,7 +2062,6 @@ static void musb_pm_runtime_check_session(struct musb= *musb) msecs_to_jiffies(3000)); } else { trace_musb_state(musb, devctl, "Allow PM with no session"); - pm_runtime_mark_last_busy(musb->controller); pm_runtime_put_autosuspend(musb->controller); } =20 @@ -2090,7 +2088,6 @@ static void musb_irq_work(struct work_struct *data) sysfs_notify(&musb->controller->kobj, NULL, "mode"); } =20 - pm_runtime_mark_last_busy(musb->controller); pm_runtime_put_autosuspend(musb->controller); } =20 @@ -2564,7 +2561,6 @@ musb_init_controller(struct device *dev, int nIrq, vo= id __iomem *ctrl) musb_init_debugfs(musb); =20 musb->is_initialized =3D 1; - pm_runtime_mark_last_busy(musb->controller); pm_runtime_put_autosuspend(musb->controller); =20 return 0; @@ -2887,7 +2883,6 @@ static int musb_resume(struct device *dev) error); spin_unlock_irqrestore(&musb->lock, flags); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; diff --git a/drivers/usb/musb/musb_debugfs.c b/drivers/usb/musb/musb_debugf= s.c index 2d623284edf6..5092d62c2062 100644 --- a/drivers/usb/musb/musb_debugfs.c +++ b/drivers/usb/musb/musb_debugfs.c @@ -106,7 +106,6 @@ static int musb_regdump_show(struct seq_file *s, void *= unused) } } =20 - pm_runtime_mark_last_busy(musb->controller); pm_runtime_put_autosuspend(musb->controller); return 0; } @@ -119,7 +118,6 @@ static int musb_test_mode_show(struct seq_file *s, void= *unused) =20 pm_runtime_get_sync(musb->controller); test =3D musb_readb(musb->mregs, MUSB_TESTMODE); - pm_runtime_mark_last_busy(musb->controller); pm_runtime_put_autosuspend(musb->controller); =20 if (test =3D=3D (MUSB_TEST_FORCE_HOST | MUSB_TEST_FORCE_FS)) @@ -216,7 +214,6 @@ static ssize_t musb_test_mode_write(struct file *file, musb_writeb(musb->mregs, MUSB_TESTMODE, test); =20 ret: - pm_runtime_mark_last_busy(musb->controller); pm_runtime_put_autosuspend(musb->controller); return count; } @@ -243,7 +240,6 @@ static int musb_softconnect_show(struct seq_file *s, vo= id *unused) reg =3D musb_readb(musb->mregs, MUSB_DEVCTL); connect =3D reg & MUSB_DEVCTL_SESSION ? 1 : 0; =20 - pm_runtime_mark_last_busy(musb->controller); pm_runtime_put_autosuspend(musb->controller); break; default: @@ -304,7 +300,6 @@ static ssize_t musb_softconnect_write(struct file *file, } } =20 - pm_runtime_mark_last_busy(musb->controller); pm_runtime_put_autosuspend(musb->controller); return count; } diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c index 12f587ab8511..9f93ed59a7e6 100644 --- a/drivers/usb/musb/musb_dsps.c +++ b/drivers/usb/musb/musb_dsps.c @@ -296,7 +296,6 @@ static void otg_timer(struct timer_list *t) if (err < 0) dev_err(dev, "%s resume work: %i\n", __func__, err); spin_unlock_irqrestore(&musb->lock, flags); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); } =20 diff --git a/drivers/usb/musb/musb_gadget.c b/drivers/usb/musb/musb_gadget.c index 6869c58367f2..f6ea91df80e4 100644 --- a/drivers/usb/musb/musb_gadget.c +++ b/drivers/usb/musb/musb_gadget.c @@ -1258,7 +1258,6 @@ static int musb_gadget_queue(struct usb_ep *ep, struc= t usb_request *req, =20 unlock: spin_unlock_irqrestore(&musb->lock, lockflags); - pm_runtime_mark_last_busy(musb->controller); pm_runtime_put_autosuspend(musb->controller); =20 return status; @@ -1642,7 +1641,6 @@ static void musb_gadget_work(struct work_struct *work) spin_lock_irqsave(&musb->lock, flags); musb_pullup(musb, musb->softconnect); spin_unlock_irqrestore(&musb->lock, flags); - pm_runtime_mark_last_busy(musb->controller); pm_runtime_put_autosuspend(musb->controller); } =20 @@ -1862,7 +1860,6 @@ static int musb_gadget_start(struct usb_gadget *g, if (musb->xceiv && musb->xceiv->last_event =3D=3D USB_EVENT_ID) musb_platform_set_vbus(musb, 1); =20 - pm_runtime_mark_last_busy(musb->controller); pm_runtime_put_autosuspend(musb->controller); =20 return 0; @@ -1915,7 +1912,6 @@ static int musb_gadget_stop(struct usb_gadget *g) */ =20 /* Force check of devctl register for PM runtime */ - pm_runtime_mark_last_busy(musb->controller); pm_runtime_put_autosuspend(musb->controller); =20 return 0; diff --git a/drivers/usb/musb/omap2430.c b/drivers/usb/musb/omap2430.c index 2970967a4fd2..191901317d7f 100644 --- a/drivers/usb/musb/omap2430.c +++ b/drivers/usb/musb/omap2430.c @@ -151,7 +151,6 @@ static void omap_musb_set_mailbox(struct omap2430_glue = *glue) default: dev_dbg(musb->controller, "ID float\n"); } - pm_runtime_mark_last_busy(musb->controller); pm_runtime_put_autosuspend(musb->controller); atomic_notifier_call_chain(&musb->xceiv->notifier, musb->xceiv->last_event, NULL); --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 CA1062877FB for ; Fri, 4 Jul 2025 07:55:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615707; cv=none; b=VkxfzJLQyRngDtKq+kCd35SkV+A2eYR16kq9g5ZcQBcHLGhQCCbM5XAQefHn7i9Nl+8VWIDPn7CfdnT66cajusmakNX8Bu7X2hNynV9hSdwumPF5wfodjnGV0tAu+OsU9sfkznqgHB5DDL6iBD2az9kiC2ZIHWCPJQ1LR92u00A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615707; c=relaxed/simple; bh=BKWpek0YSB33XpRHAKPZmEHtn7tj983LU7A2QeoRjjo=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=pyT2p3MvIzLAOCS6YwCvQZ3b6inZNQEYYLMTokc8INdFSQyQZ4VgFaqH3OvHolD+L557Hl//YUJQf3DrldhjNYa4TJHwt4d4t3ZwhL5C16Gv3bYcjwrXpM2GxoADu3UXEz5OiTFmQvj51oTKYSKWmM+1C30grclDpc3Nor+4krk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=BKVWU6GM; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="BKVWU6GM" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615706; x=1783151706; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=BKWpek0YSB33XpRHAKPZmEHtn7tj983LU7A2QeoRjjo=; b=BKVWU6GME0M13Kz22EuzSVQ9/qoNRtKqmRlT8dRGhTRi5V2jeKXL2uG8 S+KYu5ALETxgRrPcq58juvAEBfL5SnO+HhXHvpP87T7etCMsUaZaUIamE 3r6xe8xhihWPGB1GuAuGraNtlEhLLGXw06FlFBiRdsnS6IRrP0f4fa1b+ mQRjK99zG1QcxT8TQeexmYu8GCpwtR4Q/PSCxzwqg6xktmlh2HxfkYHYv uukr1OFAAKos9yznjZtbm4FJ5WcjlkgDog64QUbAQkmxTMQ0biGyZA1kW ffpRuiPMaCC9Zt2Zii4jBJRkSTh50ww6oEIyGqWfB4lCNFA/mlp4yOpM6 A==; X-CSE-ConnectionGUID: MAg8QAhnQSmIwZev5L64SQ== X-CSE-MsgGUID: na1P3YQfTI+YNp3S6KF2lQ== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194269" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194269" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:59 -0700 X-CSE-ConnectionGUID: BvArktvMTVuf69f8sKenGg== X-CSE-MsgGUID: 669lKT7oSiWf/T/A4+vwag== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616678" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:56 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 6F2664488D; Fri, 4 Jul 2025 10:54:54 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Krzysztof Kozlowski , Sakari Ailus Cc: linux-kernel@vger.kernel.org Subject: [PATCH 68/80] w1: omap-hdq: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:54 +0300 Message-Id: <20250704075454.3222362-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/w1/masters/omap_hdq.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/w1/masters/omap_hdq.c b/drivers/w1/masters/omap_hdq.c index 69b1d145657a..d13db3396570 100644 --- a/drivers/w1/masters/omap_hdq.c +++ b/drivers/w1/masters/omap_hdq.c @@ -445,7 +445,6 @@ static u8 omap_w1_triplet(void *_hdq, u8 bdir) out: mutex_unlock(&hdq_data->hdq_mutex); rtn: - pm_runtime_mark_last_busy(hdq_data->dev); pm_runtime_put_autosuspend(hdq_data->dev); =20 return ret; @@ -466,7 +465,6 @@ static u8 omap_w1_reset_bus(void *_hdq) =20 omap_hdq_break(hdq_data); =20 - pm_runtime_mark_last_busy(hdq_data->dev); pm_runtime_put_autosuspend(hdq_data->dev); =20 return 0; @@ -490,7 +488,6 @@ static u8 omap_w1_read_byte(void *_hdq) if (ret) val =3D -1; =20 - pm_runtime_mark_last_busy(hdq_data->dev); pm_runtime_put_autosuspend(hdq_data->dev); =20 return val; @@ -525,7 +522,6 @@ static void omap_w1_write_byte(void *_hdq, u8 byte) } =20 out_err: - pm_runtime_mark_last_busy(hdq_data->dev); pm_runtime_put_autosuspend(hdq_data->dev); } =20 @@ -625,7 +621,6 @@ static int omap_hdq_probe(struct platform_device *pdev) =20 omap_hdq_break(hdq_data); =20 - pm_runtime_mark_last_busy(&pdev->dev); pm_runtime_put_autosuspend(&pdev->dev); =20 omap_w1_master.data =3D hdq_data; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 08C132F5C5B; Fri, 4 Jul 2025 07:55:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615712; cv=none; b=qtU3aopXXYux+PnOskhY/pglvGxT0uqRPIhSSmqKEevvm0Kgoj6C9krHYp5okhuM/WBwvyGZTTQg3xZ3bMoTcIuhVOiONgEfeFZ/L4hGQTSqM8jm2qJUfdNIhR4OT24211+tW5z9c4b2jDnxzHoBK9U4vWWGDZmulx9l+2oUdSM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615712; c=relaxed/simple; bh=Ow9GDcoq++fMSGKyfGiqKXk0DAXPUXz0U3h1b3nG6A4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=mUj6xTlxuyy1cOmtoqwTs4M5jKntdEuF0gJWW+Qr1170CaaO8tzGCRn4Nz3YygUN5zItICaV6pmNeDC6BQ5oS2kZTntue+a1HZ8+FsD+BmQLoF8+UnF7E4Rv9DPEBc/+EwtZcjRhqoTZMfQqaFLy2hDXWJM1bCjgOxDBMFZp0so= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=CZpGwSgp; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="CZpGwSgp" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615711; x=1783151711; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Ow9GDcoq++fMSGKyfGiqKXk0DAXPUXz0U3h1b3nG6A4=; b=CZpGwSgpfe6SzNuDO1k3DrJs5XWIYKiYRQcTZYkSuDE4d2utTZr6FbO9 F9OOgTHQJdIeM1FwwcMoTNllAVGxRdcGOGIIq9wmHqY7tVyBEU11QxC7o 4/eenuZLht0BDJpz9kYnqIdiUGcPdYEzCUOcor/wKtFK1aAra6nAkOgfi Rv/Zd4ngzQHOamhS7AImH1bMwnACwEcchPaXC5IC3SMtRy6WL+MXYjQuL d4nc+MGJh0YPvHtFhq67dTaWh+8/3k9cZ+3XfkpcqR7GCZTGoiXxGeQ5G I8W8jLcGqRgTbxEjO1rYjSGhiXCJ9IoKeTFS7TisWwNWJMjDHHkoZT9vq Q==; X-CSE-ConnectionGUID: GBEhOz1PQYuKY2uMFH375A== X-CSE-MsgGUID: +XbVgguOSAKZphVea9Sm4g== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194308" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194308" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:55:03 -0700 X-CSE-ConnectionGUID: Weazn6h3QRyxib0YQ8iwTg== X-CSE-MsgGUID: yYhB1jCJQ0mMx26r49rSNw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616702" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:57 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 4171E44910; Fri, 4 Jul 2025 10:54:55 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Jaroslav Kysela , Takashi Iwai , David Rhodes , Richard Fitzgerald , Shenghao Ding , Kevin Lu , Baojun Xu , =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= , Sakari Ailus , Cezary Rojewski , Mark Brown , Andy Shevchenko , Dan Carpenter , Chen Ni Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, patches@opensource.cirrus.com Subject: [PATCH 69/80] ALSA: hda: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:55 +0300 Message-Id: <20250704075455.3222438-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Acked-by: Takashi Iwai --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 sound/hda/hdac_device.c | 1 - sound/pci/hda/cs35l41_hda.c | 4 ---- sound/pci/hda/cs35l56_hda.c | 1 - sound/pci/hda/tas2781_hda_i2c.c | 3 --- sound/pci/hda/tas2781_hda_spi.c | 4 ---- 5 files changed, 13 deletions(-) diff --git a/sound/hda/hdac_device.c b/sound/hda/hdac_device.c index 0053831eed2d..a02dce5f6a88 100644 --- a/sound/hda/hdac_device.c +++ b/sound/hda/hdac_device.c @@ -581,7 +581,6 @@ int snd_hdac_power_down(struct hdac_device *codec) { struct device *dev =3D &codec->dev; =20 - pm_runtime_mark_last_busy(dev); return pm_runtime_put_autosuspend(dev); } EXPORT_SYMBOL_GPL(snd_hdac_power_down); diff --git a/sound/pci/hda/cs35l41_hda.c b/sound/pci/hda/cs35l41_hda.c index c2cf3813872a..fc3f9ed3be13 100644 --- a/sound/pci/hda/cs35l41_hda.c +++ b/sound/pci/hda/cs35l41_hda.c @@ -836,7 +836,6 @@ static void cs35l41_hda_playback_hook(struct device *de= v, int action) * Playback must be finished for all amps before we start runtime suspen= d. * This ensures no amps are playing back when we start putting them to s= leep. */ - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); break; default: @@ -1284,7 +1283,6 @@ static void cs35l41_fw_load_work(struct work_struct *= work) cs35l41->fw_request_ongoing =3D false; mutex_unlock(&cs35l41->fw_mutex); =20 - pm_runtime_mark_last_busy(cs35l41->dev); pm_runtime_put_autosuspend(cs35l41->dev); } =20 @@ -1515,7 +1513,6 @@ static int cs35l41_hda_bind(struct device *dev, struc= t device *master, void *mas dev_warn(dev, "Unable to create device link\n"); unlock_system_sleep(sleep_flags); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 dev_info(cs35l41->dev, @@ -2036,7 +2033,6 @@ int cs35l41_hda_probe(struct device *dev, const char = *device_name, int id, int i =20 pm_runtime_set_autosuspend_delay(cs35l41->dev, 3000); pm_runtime_use_autosuspend(cs35l41->dev); - pm_runtime_mark_last_busy(cs35l41->dev); pm_runtime_set_active(cs35l41->dev); pm_runtime_get_noresume(cs35l41->dev); pm_runtime_enable(cs35l41->dev); diff --git a/sound/pci/hda/cs35l56_hda.c b/sound/pci/hda/cs35l56_hda.c index 3f2fd32f4ad9..0391bbffed7d 100644 --- a/sound/pci/hda/cs35l56_hda.c +++ b/sound/pci/hda/cs35l56_hda.c @@ -89,7 +89,6 @@ static void cs35l56_hda_pause(struct cs35l56_hda *cs35l56) BIT(CS35L56_ASP_TX1_EN_SHIFT) | BIT(CS35L56_ASP_TX2_EN_SHIFT) | BIT(CS35L56_ASP_TX3_EN_SHIFT) | BIT(CS35L56_ASP_TX4_EN_SHIFT)); =20 - pm_runtime_mark_last_busy(cs35l56->base.dev); pm_runtime_put_autosuspend(cs35l56->base.dev); } =20 diff --git a/sound/pci/hda/tas2781_hda_i2c.c b/sound/pci/hda/tas2781_hda_i2= c.c index b9cdbca951e4..8a461acbc3b9 100644 --- a/sound/pci/hda/tas2781_hda_i2c.c +++ b/sound/pci/hda/tas2781_hda_i2c.c @@ -157,7 +157,6 @@ static void tas2781_hda_playback_hook(struct device *de= v, int action) tas_hda->priv->playback_started =3D false; mutex_unlock(&tas_hda->priv->codec_lock); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); break; default: @@ -483,7 +482,6 @@ static void tasdev_fw_ready(const struct firmware *fmw,= void *context) out: mutex_unlock(&tas_hda->priv->codec_lock); release_firmware(fmw); - pm_runtime_mark_last_busy(tas_hda->dev); pm_runtime_put_autosuspend(tas_hda->dev); } =20 @@ -526,7 +524,6 @@ static int tas2781_hda_bind(struct device *dev, struct = device *master, if (!ret) comp->playback_hook =3D tas2781_hda_playback_hook; =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; diff --git a/sound/pci/hda/tas2781_hda_spi.c b/sound/pci/hda/tas2781_hda_sp= i.c index 5c03e9d2283a..c4b9a3c1a7f0 100644 --- a/sound/pci/hda/tas2781_hda_spi.c +++ b/sound/pci/hda/tas2781_hda_spi.c @@ -400,7 +400,6 @@ static void tas2781_hda_playback_hook(struct device *de= v, int action) guard(mutex)(&tas_priv->codec_lock); if (tas_priv->fw_state =3D=3D TASDEVICE_DSP_FW_ALL_OK) tasdevice_tuning_switch(tas_priv, 1); - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); } } @@ -698,7 +697,6 @@ static void tasdev_fw_ready(const struct firmware *fmw,= void *context) tas2781_save_calibration(tas_hda); out: release_firmware(fmw); - pm_runtime_mark_last_busy(tas_hda->priv->dev); pm_runtime_put_autosuspend(tas_hda->priv->dev); } =20 @@ -731,7 +729,6 @@ static int tas2781_hda_bind(struct device *dev, struct = device *master, if (!ret) comp->playback_hook =3D tas2781_hda_playback_hook; =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; @@ -816,7 +813,6 @@ static int tas2781_hda_spi_probe(struct spi_device *spi) =20 pm_runtime_set_autosuspend_delay(tas_priv->dev, 3000); pm_runtime_use_autosuspend(tas_priv->dev); - pm_runtime_mark_last_busy(tas_priv->dev); pm_runtime_set_active(tas_priv->dev); pm_runtime_get_noresume(tas_priv->dev); pm_runtime_enable(tas_priv->dev); --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 5EB552F5C35; Fri, 4 Jul 2025 07:55:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615711; cv=none; b=mWD/2H9r1i5xygmdj/i5F1Dw6nkWXEdKQ1R99/HGBISTznCvX4590zM/P5zZAGr+/vLJkwvM1ik9KWoDY8Zau3IwDigRpJeNJs3LuiNiiDfiHtxhHzmGVnWbDfcZXTrZ6GTCAtxd6KmTM0F2YyIuNwO3IafRSpc2g0vmCv961Lk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615711; c=relaxed/simple; bh=eVLkIeLgEFxD0O6073m8DnwCRdtHe+L5RdLUWpA3UoM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=PTLhI1ruNjKQvG2RXQ6cOwUUZ/mrKbLkLoeTcGCHI+mG8dxzemKvJVSGoIWEOLYHu6VRXhEV7Ldjm2Yp2VqFRbo7yVGlW65lVFvOiHZ+uFsS66P/loC0vVWjNF2K/kQ5AunyjmIrOcLng2rmnTGvp84z8OYcJDyFtzfH16Q2yDU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=l9QF1w+f; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="l9QF1w+f" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615710; x=1783151710; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=eVLkIeLgEFxD0O6073m8DnwCRdtHe+L5RdLUWpA3UoM=; b=l9QF1w+fhZJtMNpbrYOKLUNb1VEn1avrZoil81qCp0J4Qt7iNDqTPSPH +6gkNRuw4rOfeH3hcwHa6QdKPGJD+L7JzO7d35ecFF+QftQprzhKUW6Vg crLPHPJna0Hyk4Ba6efEb8a9NPUr/4e5+CI5g8kd4sRmhStLxLIG58GGX lHPMo6x82nuJJplUnIORhZmOZP/PzVmL9UCJk8VTrXkEzZG8qCQ3DWX4R SiuMLoiPHdMSIIqgBelGWRIrdREVV2lGCLF6cEZu9Qz5JKXHeEnPcg4Om NryVEO3LCAhia83aHULFKS5uw+LjvYpYCddsXcKf7Vun2+5qJA2Ro86vD w==; X-CSE-ConnectionGUID: 8zTTKtBMTPmRViHcw0euXg== X-CSE-MsgGUID: VmW1I5beTL+DeQEE45WcBQ== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194274" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194274" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:55:03 -0700 X-CSE-ConnectionGUID: e4q5kn2ZSyCHwss7ykn6BA== X-CSE-MsgGUID: XMYFixcGQDireEw7dxOfaQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616682" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:57 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id D98F744419; Fri, 4 Jul 2025 10:54:55 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Claudiu Beznea , Andrei Simion , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Nicolas Ferre , Alexandre Belloni Cc: linux-sound@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 70/80] ASoC: atmel: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:55 +0300 Message-Id: <20250704075455.3222541-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 sound/soc/atmel/mchp-spdifrx.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sound/soc/atmel/mchp-spdifrx.c b/sound/soc/atmel/mchp-spdifrx.c index fb820609c043..521bee4998f8 100644 --- a/sound/soc/atmel/mchp-spdifrx.c +++ b/sound/soc/atmel/mchp-spdifrx.c @@ -577,7 +577,6 @@ static int mchp_spdifrx_cs_get(struct mchp_spdifrx_dev = *dev, sizeof(ch_stat->data)); =20 pm_runtime_put: - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); unlock: mutex_unlock(&dev->mlock); @@ -660,7 +659,6 @@ static int mchp_spdifrx_subcode_ch_get(struct mchp_spdi= frx_dev *dev, sizeof(user_data->data)); =20 pm_runtime_put: - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); unlock: mutex_unlock(&dev->mlock); @@ -726,7 +724,6 @@ static int mchp_spdifrx_ulock_get(struct snd_kcontrol *= kcontrol, =20 uvalue->value.integer.value[0] =3D ctrl->ulock; =20 - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); unlock: mutex_unlock(&dev->mlock); @@ -762,7 +759,6 @@ static int mchp_spdifrx_badf_get(struct snd_kcontrol *k= control, ctrl->badf =3D 0; } =20 - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); unlock: mutex_unlock(&dev->mlock); @@ -811,7 +807,6 @@ static int mchp_spdifrx_signal_get(struct snd_kcontrol = *kcontrol, regmap_read(dev->regmap, SPDIFRX_RSR, &val); } =20 - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); =20 unlock: @@ -875,7 +870,6 @@ static int mchp_spdifrx_rate_get(struct snd_kcontrol *k= control, ucontrol->value.integer.value[0] =3D rate / (32 * SPDIFRX_RSR_IFS(val)); =20 pm_runtime_put: - pm_runtime_mark_last_busy(dev->dev); pm_runtime_put_autosuspend(dev->dev); unlock: mutex_unlock(&dev->mlock); --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 4A6C52F94B8; Fri, 4 Jul 2025 07:55:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615718; cv=none; b=IabFet3ySfXPvRKEqdoZNZUVQXVUxZ48oN2ctOnouV3QIde+XbLDqLfkfCn5RUnlzr7ce8GuxPh5+n3VFwrQSD1y/kr5Scyiy85+rEaGGrmkyzg9BspcR0ZwpE+gtAfUM2vFAYehapptWRS3wh9lwEXiAsk1kwwuUWlbN/UQy5c= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615718; c=relaxed/simple; bh=MAtO8lnZc2zwN2BbUqr7YcklCzUg6svdKjWVDBhrsb4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=k0YUdW7ncy3J3MMG141sgvpjPMrUvaaSllaf3vwk05u2K9UazTejhCavFDic09YTmWLt1ilWDe8CbJUdyrj0GIY7DE70Q1hF2YwuEUk04ovDHbmaMTgF+yjFGBUBwVbGI9epvztNKWQYVXl4wENbAS1CpVymhxTcE7GAvWCiQoo= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=BsqkHNXX; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="BsqkHNXX" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615716; x=1783151716; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=MAtO8lnZc2zwN2BbUqr7YcklCzUg6svdKjWVDBhrsb4=; b=BsqkHNXX+SxFxsVTT3bXJUIDZVC7xj2NnN94M3V7/4vYXQ6XyK1UoK69 F8LfVtFb96i4LbqedsXH02XPnkorbeiPQNXxE6Ils2X5ZfYuICJC4y2N/ +ZIFEMgtVBwETVUaO0KW+NAK9USs9ooFvfS7HsXRTecIqrFvxdjpTgrY7 MbMAt+hBKxqho/OtpHo17+etG6JoI6veQdicaMBeF80+TLbyRw4YCs0/c Vv5C2Qwtemm09ghNqusRDad5HH/Lre7glqIsJSl3IvYL9QpYsK6/p89nx d4ky86KkD1UI01KjcykDhCmBg1uc+K1Jb1LBieKAl01zOBFYFX0lBLGiZ Q==; X-CSE-ConnectionGUID: mmkK9o2sTX+8dvKnPqfinw== X-CSE-MsgGUID: vtGkXfLaQKKG2FlfO2tpSA== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194365" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194365" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:55:05 -0700 X-CSE-ConnectionGUID: yffOr3ZZREWQnRRooa6TeA== X-CSE-MsgGUID: gbTLSKQxTF+wuJh8zlh2Kg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616727" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:58 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id AF1EC44394; Fri, 4 Jul 2025 10:54:56 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , David Rhodes , Richard Fitzgerald , Oder Chiou , Shenghao Ding , Kevin Lu , Baojun Xu , Srinivas Kandagatla , Sakari Ailus , Cezary Rojewski , =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= , Charles Keepax , Krzysztof Kozlowski Cc: patches@opensource.cirrus.com, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org Subject: [PATCH 71/80] ASoC: codecs: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:56 +0300 Message-Id: <20250704075456.3222642-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Reviewed-by: Charles Keepax --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 sound/soc/codecs/arizona-jack.c | 2 -- sound/soc/codecs/cs35l41.c | 2 -- sound/soc/codecs/cs35l45.c | 1 - sound/soc/codecs/cs35l56-sdw.c | 1 - sound/soc/codecs/cs35l56.c | 1 - sound/soc/codecs/cs42l42.c | 1 - sound/soc/codecs/cs42l43-jack.c | 5 ----- sound/soc/codecs/cs42l43.c | 2 -- sound/soc/codecs/cs48l32.c | 1 - sound/soc/codecs/hda.c | 3 --- sound/soc/codecs/max98363.c | 1 - sound/soc/codecs/max98373-sdw.c | 1 - sound/soc/codecs/rt1017-sdca-sdw.c | 1 - sound/soc/codecs/rt1308-sdw.c | 1 - sound/soc/codecs/rt1316-sdw.c | 1 - sound/soc/codecs/rt1318-sdw.c | 1 - sound/soc/codecs/rt1320-sdw.c | 1 - sound/soc/codecs/rt5682-sdw.c | 1 - sound/soc/codecs/rt700.c | 2 -- sound/soc/codecs/rt711-sdca.c | 2 -- sound/soc/codecs/rt711.c | 2 -- sound/soc/codecs/rt712-sdca-dmic.c | 1 - sound/soc/codecs/rt712-sdca.c | 2 -- sound/soc/codecs/rt715-sdca.c | 1 - sound/soc/codecs/rt715.c | 1 - sound/soc/codecs/rt721-sdca.c | 2 -- sound/soc/codecs/rt722-sdca.c | 2 -- sound/soc/codecs/rt9123.c | 3 --- sound/soc/codecs/tas2552.c | 1 - sound/soc/codecs/wcd-mbhc-v2.c | 2 -- sound/soc/codecs/wsa881x.c | 1 - sound/soc/codecs/wsa883x.c | 1 - sound/soc/codecs/wsa884x.c | 1 - 33 files changed, 51 deletions(-) diff --git a/sound/soc/codecs/arizona-jack.c b/sound/soc/codecs/arizona-jac= k.c index 9c15ddba6008..22f9c431a0e5 100644 --- a/sound/soc/codecs/arizona-jack.c +++ b/sound/soc/codecs/arizona-jack.c @@ -319,7 +319,6 @@ static void arizona_stop_mic(struct arizona_priv *info) =20 if (change) { regulator_disable(info->micvdd); - pm_runtime_mark_last_busy(arizona->dev); pm_runtime_put_autosuspend(arizona->dev); } } @@ -1127,7 +1126,6 @@ static irqreturn_t arizona_jackdet(int irq, void *dat= a) =20 mutex_unlock(&info->lock); =20 - pm_runtime_mark_last_busy(arizona->dev); pm_runtime_put_autosuspend(arizona->dev); =20 return IRQ_HANDLED; diff --git a/sound/soc/codecs/cs35l41.c b/sound/soc/codecs/cs35l41.c index ff4134bee858..224d65987a8d 100644 --- a/sound/soc/codecs/cs35l41.c +++ b/sound/soc/codecs/cs35l41.c @@ -483,7 +483,6 @@ static irqreturn_t cs35l41_irq(int irq, void *data) } =20 done: - pm_runtime_mark_last_busy(cs35l41->dev); pm_runtime_put_autosuspend(cs35l41->dev); =20 return ret; @@ -1328,7 +1327,6 @@ int cs35l41_probe(struct cs35l41_private *cs35l41, co= nst struct cs35l41_hw_cfg * =20 pm_runtime_set_autosuspend_delay(cs35l41->dev, 3000); pm_runtime_use_autosuspend(cs35l41->dev); - pm_runtime_mark_last_busy(cs35l41->dev); pm_runtime_set_active(cs35l41->dev); pm_runtime_get_noresume(cs35l41->dev); pm_runtime_enable(cs35l41->dev); diff --git a/sound/soc/codecs/cs35l45.c b/sound/soc/codecs/cs35l45.c index 432a19f4de2b..d4dcdf37bb70 100644 --- a/sound/soc/codecs/cs35l45.c +++ b/sound/soc/codecs/cs35l45.c @@ -1427,7 +1427,6 @@ int cs35l45_probe(struct cs35l45_private *cs35l45) =20 pm_runtime_set_autosuspend_delay(cs35l45->dev, 3000); pm_runtime_use_autosuspend(cs35l45->dev); - pm_runtime_mark_last_busy(cs35l45->dev); pm_runtime_set_active(cs35l45->dev); pm_runtime_get_noresume(cs35l45->dev); pm_runtime_enable(cs35l45->dev); diff --git a/sound/soc/codecs/cs35l56-sdw.c b/sound/soc/codecs/cs35l56-sdw.c index fa9693af3722..ee14031695a1 100644 --- a/sound/soc/codecs/cs35l56-sdw.c +++ b/sound/soc/codecs/cs35l56-sdw.c @@ -283,7 +283,6 @@ static void cs35l56_sdw_init(struct sdw_slave *peripher= al) } =20 out: - pm_runtime_mark_last_busy(cs35l56->base.dev); pm_runtime_put_autosuspend(cs35l56->base.dev); } =20 diff --git a/sound/soc/codecs/cs35l56.c b/sound/soc/codecs/cs35l56.c index 1b42586794ad..b1c65d8331e7 100644 --- a/sound/soc/codecs/cs35l56.c +++ b/sound/soc/codecs/cs35l56.c @@ -871,7 +871,6 @@ static void cs35l56_dsp_work(struct work_struct *work) =20 cs35l56_log_tuning(&cs35l56->base, &cs35l56->dsp.cs_dsp); err: - pm_runtime_mark_last_busy(cs35l56->base.dev); pm_runtime_put_autosuspend(cs35l56->base.dev); } =20 diff --git a/sound/soc/codecs/cs42l42.c b/sound/soc/codecs/cs42l42.c index 56668c392063..78bb093fa0cc 100644 --- a/sound/soc/codecs/cs42l42.c +++ b/sound/soc/codecs/cs42l42.c @@ -1775,7 +1775,6 @@ irqreturn_t cs42l42_irq_thread(int irq, void *data) } =20 mutex_unlock(&cs42l42->irq_lock); - pm_runtime_mark_last_busy(cs42l42->dev); pm_runtime_put_autosuspend(cs42l42->dev); =20 return IRQ_HANDLED; diff --git a/sound/soc/codecs/cs42l43-jack.c b/sound/soc/codecs/cs42l43-jac= k.c index 72a4150709de..2a0a4986a9ce 100644 --- a/sound/soc/codecs/cs42l43-jack.c +++ b/sound/soc/codecs/cs42l43-jack.c @@ -242,7 +242,6 @@ int cs42l43_set_jack(struct snd_soc_component *componen= t, error: mutex_unlock(&priv->jack_lock); =20 - pm_runtime_mark_last_busy(priv->dev); pm_runtime_put_autosuspend(priv->dev); =20 return ret; @@ -429,7 +428,6 @@ irqreturn_t cs42l43_button_press(int irq, void *data) error: mutex_unlock(&priv->jack_lock); =20 - pm_runtime_mark_last_busy(priv->dev); pm_runtime_put_autosuspend(priv->dev); =20 return iret; @@ -461,7 +459,6 @@ irqreturn_t cs42l43_button_release(int irq, void *data) =20 mutex_unlock(&priv->jack_lock); =20 - pm_runtime_mark_last_busy(priv->dev); pm_runtime_put_autosuspend(priv->dev); =20 return iret; @@ -496,7 +493,6 @@ void cs42l43_bias_sense_timeout(struct work_struct *wor= k) =20 mutex_unlock(&priv->jack_lock); =20 - pm_runtime_mark_last_busy(priv->dev); pm_runtime_put_autosuspend(priv->dev); } =20 @@ -768,7 +764,6 @@ void cs42l43_tip_sense_work(struct work_struct *work) =20 priv->suspend_jack_debounce =3D false; =20 - pm_runtime_mark_last_busy(priv->dev); pm_runtime_put_autosuspend(priv->dev); } =20 diff --git a/sound/soc/codecs/cs42l43.c b/sound/soc/codecs/cs42l43.c index 41a0f4529ea1..b0c27d696c58 100644 --- a/sound/soc/codecs/cs42l43.c +++ b/sound/soc/codecs/cs42l43.c @@ -1080,7 +1080,6 @@ static int cs42l43_shutter_get(struct cs42l43_codec *= priv, unsigned int shift) ret ? "open" : "closed"); =20 error: - pm_runtime_mark_last_busy(priv->dev); pm_runtime_put_autosuspend(priv->dev); =20 return ret; @@ -2356,7 +2355,6 @@ static int cs42l43_codec_probe(struct platform_device= *pdev) goto err_clk; } =20 - pm_runtime_mark_last_busy(priv->dev); pm_runtime_put_autosuspend(priv->dev); =20 return 0; diff --git a/sound/soc/codecs/cs48l32.c b/sound/soc/codecs/cs48l32.c index 9bdd48aab42a..a306af4289ad 100644 --- a/sound/soc/codecs/cs48l32.c +++ b/sound/soc/codecs/cs48l32.c @@ -1385,7 +1385,6 @@ static irqreturn_t cs48l32_irq(int irq, void *data) result =3D IRQ_HANDLED; =20 out: - pm_runtime_mark_last_busy(cs48l32_codec->core.dev); pm_runtime_put_autosuspend(cs48l32_codec->core.dev); =20 return result; diff --git a/sound/soc/codecs/hda.c b/sound/soc/codecs/hda.c index dc7794c9ac44..7e4df1481486 100644 --- a/sound/soc/codecs/hda.c +++ b/sound/soc/codecs/hda.c @@ -162,7 +162,6 @@ int hda_codec_probe_complete(struct hda_codec *codec) snd_hda_codec_register(codec); =20 /* Complement pm_runtime_get_sync(bus) in probe */ - pm_runtime_mark_last_busy(bus->dev); pm_runtime_put_autosuspend(bus->dev); =20 return ret; @@ -262,7 +261,6 @@ static int hda_codec_probe(struct snd_soc_component *co= mponent) =20 snd_hdac_ext_bus_link_put(bus, hlink); =20 - pm_runtime_mark_last_busy(bus->dev); pm_runtime_put_autosuspend(bus->dev); return ret; } @@ -300,7 +298,6 @@ static void hda_codec_remove(struct snd_soc_component *= component) * not be called due to early error, leaving bus uc unbalanced */ if (!was_registered) { - pm_runtime_mark_last_busy(bus->dev); pm_runtime_put_autosuspend(bus->dev); } =20 diff --git a/sound/soc/codecs/max98363.c b/sound/soc/codecs/max98363.c index fd6830a7579d..25af78ab30d5 100644 --- a/sound/soc/codecs/max98363.c +++ b/sound/soc/codecs/max98363.c @@ -188,7 +188,6 @@ static int max98363_io_init(struct sdw_slave *slave) max98363->hw_init =3D true; =20 out: - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return ret; diff --git a/sound/soc/codecs/max98373-sdw.c b/sound/soc/codecs/max98373-sd= w.c index 43b52bda6ad5..88ff215f52b3 100644 --- a/sound/soc/codecs/max98373-sdw.c +++ b/sound/soc/codecs/max98373-sdw.c @@ -458,7 +458,6 @@ static int max98373_io_init(struct sdw_slave *slave) max98373->first_hw_init =3D true; max98373->hw_init =3D true; =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; diff --git a/sound/soc/codecs/rt1017-sdca-sdw.c b/sound/soc/codecs/rt1017-s= dca-sdw.c index 88fc23a4999f..a9c000876be8 100644 --- a/sound/soc/codecs/rt1017-sdca-sdw.c +++ b/sound/soc/codecs/rt1017-sdca-sdw.c @@ -362,7 +362,6 @@ static int rt1017_sdca_io_init(struct device *dev, stru= ct sdw_slave *slave) /* Mark Slave initialization complete */ rt1017->hw_init =3D true; =20 - pm_runtime_mark_last_busy(&slave->dev); pm_runtime_put_autosuspend(&slave->dev); =20 dev_dbg(&slave->dev, "hw_init complete\n"); diff --git a/sound/soc/codecs/rt1308-sdw.c b/sound/soc/codecs/rt1308-sdw.c index ea708068f0e8..b6c224832a43 100644 --- a/sound/soc/codecs/rt1308-sdw.c +++ b/sound/soc/codecs/rt1308-sdw.c @@ -291,7 +291,6 @@ static int rt1308_io_init(struct device *dev, struct sd= w_slave *slave) /* Mark Slave initialization complete */ rt1308->hw_init =3D true; =20 - pm_runtime_mark_last_busy(&slave->dev); pm_runtime_put_autosuspend(&slave->dev); =20 dev_dbg(&slave->dev, "%s hw_init complete\n", __func__); diff --git a/sound/soc/codecs/rt1316-sdw.c b/sound/soc/codecs/rt1316-sdw.c index 960b6c4f5a66..01a977398864 100644 --- a/sound/soc/codecs/rt1316-sdw.c +++ b/sound/soc/codecs/rt1316-sdw.c @@ -302,7 +302,6 @@ static int rt1316_io_init(struct device *dev, struct sd= w_slave *slave) /* Mark Slave initialization complete */ rt1316->hw_init =3D true; =20 - pm_runtime_mark_last_busy(&slave->dev); pm_runtime_put_autosuspend(&slave->dev); =20 dev_dbg(&slave->dev, "%s hw_init complete\n", __func__); diff --git a/sound/soc/codecs/rt1318-sdw.c b/sound/soc/codecs/rt1318-sdw.c index 4eb636e0c9ed..70db5450d6d2 100644 --- a/sound/soc/codecs/rt1318-sdw.c +++ b/sound/soc/codecs/rt1318-sdw.c @@ -434,7 +434,6 @@ static int rt1318_io_init(struct device *dev, struct sd= w_slave *slave) rt1318->first_hw_init =3D true; rt1318->hw_init =3D true; =20 - pm_runtime_mark_last_busy(&slave->dev); pm_runtime_put_autosuspend(&slave->dev); =20 dev_dbg(&slave->dev, "%s hw_init complete\n", __func__); diff --git a/sound/soc/codecs/rt1320-sdw.c b/sound/soc/codecs/rt1320-sdw.c index 015cc710e6dc..b13d7a99bf63 100644 --- a/sound/soc/codecs/rt1320-sdw.c +++ b/sound/soc/codecs/rt1320-sdw.c @@ -763,7 +763,6 @@ static int rt1320_io_init(struct device *dev, struct sd= w_slave *slave) rt1320->first_hw_init =3D true; rt1320->hw_init =3D true; =20 - pm_runtime_mark_last_busy(&slave->dev); pm_runtime_put_autosuspend(&slave->dev); =20 dev_dbg(&slave->dev, "%s hw_init complete\n", __func__); diff --git a/sound/soc/codecs/rt5682-sdw.c b/sound/soc/codecs/rt5682-sdw.c index aa229894129b..055bea0a4a3b 100644 --- a/sound/soc/codecs/rt5682-sdw.c +++ b/sound/soc/codecs/rt5682-sdw.c @@ -474,7 +474,6 @@ static int rt5682_io_init(struct device *dev, struct sd= w_slave *slave) rt5682->first_hw_init =3D true; =20 err_nodev: - pm_runtime_mark_last_busy(&slave->dev); pm_runtime_put_autosuspend(&slave->dev); =20 dev_dbg(&slave->dev, "%s hw_init complete: %d\n", __func__, ret); diff --git a/sound/soc/codecs/rt700.c b/sound/soc/codecs/rt700.c index 434b926f96c8..8f6d569c8f25 100644 --- a/sound/soc/codecs/rt700.c +++ b/sound/soc/codecs/rt700.c @@ -338,7 +338,6 @@ static int rt700_set_jack_detect(struct snd_soc_compone= nt *component, =20 rt700_jack_init(rt700); =20 - pm_runtime_mark_last_busy(component->dev); pm_runtime_put_autosuspend(component->dev); =20 return 0; @@ -1230,7 +1229,6 @@ int rt700_io_init(struct device *dev, struct sdw_slav= e *slave) /* Mark Slave initialization complete */ rt700->hw_init =3D true; =20 - pm_runtime_mark_last_busy(&slave->dev); pm_runtime_put_autosuspend(&slave->dev); =20 dev_dbg(&slave->dev, "%s hw_init complete\n", __func__); diff --git a/sound/soc/codecs/rt711-sdca.c b/sound/soc/codecs/rt711-sdca.c index dd6ccf17afd4..16c351779243 100644 --- a/sound/soc/codecs/rt711-sdca.c +++ b/sound/soc/codecs/rt711-sdca.c @@ -545,7 +545,6 @@ static int rt711_sdca_set_jack_detect(struct snd_soc_co= mponent *component, =20 rt711_sdca_jack_init(rt711); =20 - pm_runtime_mark_last_busy(component->dev); pm_runtime_put_autosuspend(component->dev); =20 return 0; @@ -1662,7 +1661,6 @@ int rt711_sdca_io_init(struct device *dev, struct sdw= _slave *slave) /* Mark Slave initialization complete */ rt711->hw_init =3D true; =20 - pm_runtime_mark_last_busy(&slave->dev); pm_runtime_put_autosuspend(&slave->dev); =20 dev_dbg(&slave->dev, "%s hw_init complete\n", __func__); diff --git a/sound/soc/codecs/rt711.c b/sound/soc/codecs/rt711.c index 5446f9506a16..af3a49aee618 100644 --- a/sound/soc/codecs/rt711.c +++ b/sound/soc/codecs/rt711.c @@ -480,7 +480,6 @@ static int rt711_set_jack_detect(struct snd_soc_compone= nt *component, =20 rt711_jack_init(rt711); =20 - pm_runtime_mark_last_busy(component->dev); pm_runtime_put_autosuspend(component->dev); =20 return 0; @@ -1331,7 +1330,6 @@ int rt711_io_init(struct device *dev, struct sdw_slav= e *slave) /* Mark Slave initialization complete */ rt711->hw_init =3D true; =20 - pm_runtime_mark_last_busy(&slave->dev); pm_runtime_put_autosuspend(&slave->dev); =20 dev_dbg(&slave->dev, "%s hw_init complete\n", __func__); diff --git a/sound/soc/codecs/rt712-sdca-dmic.c b/sound/soc/codecs/rt712-sd= ca-dmic.c index 4d044dfa3136..42f8f7b8bed0 100644 --- a/sound/soc/codecs/rt712-sdca-dmic.c +++ b/sound/soc/codecs/rt712-sdca-dmic.c @@ -236,7 +236,6 @@ static int rt712_sdca_dmic_io_init(struct device *dev, = struct sdw_slave *slave) /* Mark Slave initialization complete */ rt712->hw_init =3D true; =20 - pm_runtime_mark_last_busy(&slave->dev); pm_runtime_put_autosuspend(&slave->dev); =20 dev_dbg(&slave->dev, "%s hw_init complete\n", __func__); diff --git a/sound/soc/codecs/rt712-sdca.c b/sound/soc/codecs/rt712-sdca.c index 570c2af1245d..5b298db5f0f6 100644 --- a/sound/soc/codecs/rt712-sdca.c +++ b/sound/soc/codecs/rt712-sdca.c @@ -479,7 +479,6 @@ static int rt712_sdca_set_jack_detect(struct snd_soc_co= mponent *component, =20 rt712_sdca_jack_init(rt712); =20 - pm_runtime_mark_last_busy(component->dev); pm_runtime_put_autosuspend(component->dev); =20 return 0; @@ -1925,7 +1924,6 @@ int rt712_sdca_io_init(struct device *dev, struct sdw= _slave *slave) dev_dbg(&slave->dev, "%s hw_init complete\n", __func__); =20 suspend: - pm_runtime_mark_last_busy(&slave->dev); pm_runtime_put_autosuspend(&slave->dev); =20 return 0; diff --git a/sound/soc/codecs/rt715-sdca.c b/sound/soc/codecs/rt715-sdca.c index 7fb02654c16b..db7d43349d7d 100644 --- a/sound/soc/codecs/rt715-sdca.c +++ b/sound/soc/codecs/rt715-sdca.c @@ -1065,7 +1065,6 @@ int rt715_sdca_io_init(struct device *dev, struct sdw= _slave *slave) /* Mark Slave initialization complete */ rt715->hw_init =3D true; =20 - pm_runtime_mark_last_busy(&slave->dev); pm_runtime_put_autosuspend(&slave->dev); =20 return 0; diff --git a/sound/soc/codecs/rt715.c b/sound/soc/codecs/rt715.c index 2cf461852091..0fa445d88e23 100644 --- a/sound/soc/codecs/rt715.c +++ b/sound/soc/codecs/rt715.c @@ -1129,7 +1129,6 @@ int rt715_io_init(struct device *dev, struct sdw_slav= e *slave) /* Mark Slave initialization complete */ rt715->hw_init =3D true; =20 - pm_runtime_mark_last_busy(&slave->dev); pm_runtime_put_autosuspend(&slave->dev); =20 return 0; diff --git a/sound/soc/codecs/rt721-sdca.c b/sound/soc/codecs/rt721-sdca.c index ba080957e933..f6f7c2ffde1c 100644 --- a/sound/soc/codecs/rt721-sdca.c +++ b/sound/soc/codecs/rt721-sdca.c @@ -327,7 +327,6 @@ static int rt721_sdca_set_jack_detect(struct snd_soc_co= mponent *component, =20 rt721_sdca_jack_init(rt721); =20 - pm_runtime_mark_last_busy(component->dev); pm_runtime_put_autosuspend(component->dev); =20 return 0; @@ -1548,7 +1547,6 @@ int rt721_sdca_io_init(struct device *dev, struct sdw= _slave *slave) /* Mark Slave initialization complete */ rt721->hw_init =3D true; =20 - pm_runtime_mark_last_busy(&slave->dev); pm_runtime_put_autosuspend(&slave->dev); =20 dev_dbg(&slave->dev, "%s hw_init complete\n", __func__); diff --git a/sound/soc/codecs/rt722-sdca.c b/sound/soc/codecs/rt722-sdca.c index ac9588284a95..333611490ae3 100644 --- a/sound/soc/codecs/rt722-sdca.c +++ b/sound/soc/codecs/rt722-sdca.c @@ -339,7 +339,6 @@ static int rt722_sdca_set_jack_detect(struct snd_soc_co= mponent *component, =20 rt722_sdca_jack_init(rt722); =20 - pm_runtime_mark_last_busy(component->dev); pm_runtime_put_autosuspend(component->dev); =20 return 0; @@ -1559,7 +1558,6 @@ int rt722_sdca_io_init(struct device *dev, struct sdw= _slave *slave) /* Mark Slave initialization complete */ rt722->hw_init =3D true; =20 - pm_runtime_mark_last_busy(&slave->dev); pm_runtime_put_autosuspend(&slave->dev); =20 dev_dbg(&slave->dev, "%s hw_init complete\n", __func__); diff --git a/sound/soc/codecs/rt9123.c b/sound/soc/codecs/rt9123.c index 242e8c975a62..b162824526d6 100644 --- a/sound/soc/codecs/rt9123.c +++ b/sound/soc/codecs/rt9123.c @@ -77,7 +77,6 @@ static int rt9123_enable_event(struct snd_soc_dapm_widget= *w, struct snd_kcontro /* AMPON bit is located in volatile RG, use pm_runtime to guarantee the R= G access */ snd_soc_component_write_field(comp, RT9123_REG_AMPCTRL, RT9123_MASK_AMPON= , enable); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); =20 return 0; @@ -140,7 +139,6 @@ static int rt9123_xhandler_get(struct snd_kcontrol *kco= ntrol, struct snd_ctl_ele if (ret < 0) dev_err(dev, "Failed to get control (%d)\n", ret); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); return ret; } @@ -168,7 +166,6 @@ static int rt9123_xhandler_put(struct snd_kcontrol *kco= ntrol, struct snd_ctl_ele if (ret < 0) dev_err(dev, "Failed to put control (%d)\n", ret); =20 - pm_runtime_mark_last_busy(dev); pm_runtime_put_autosuspend(dev); return ret; } diff --git a/sound/soc/codecs/tas2552.c b/sound/soc/codecs/tas2552.c index b56dd279d90a..43449d7c2584 100644 --- a/sound/soc/codecs/tas2552.c +++ b/sound/soc/codecs/tas2552.c @@ -724,7 +724,6 @@ static int tas2552_probe(struct i2c_client *client) pm_runtime_set_autosuspend_delay(&client->dev, 1000); pm_runtime_use_autosuspend(&client->dev); pm_runtime_enable(&client->dev); - pm_runtime_mark_last_busy(&client->dev); pm_runtime_put_sync_autosuspend(&client->dev); =20 dev_set_drvdata(&client->dev, data); diff --git a/sound/soc/codecs/wcd-mbhc-v2.c b/sound/soc/codecs/wcd-mbhc-v2.c index 4b7c3d6080a1..26ebcdadeb7d 100644 --- a/sound/soc/codecs/wcd-mbhc-v2.c +++ b/sound/soc/codecs/wcd-mbhc-v2.c @@ -825,7 +825,6 @@ static int wcd_mbhc_initialise(struct wcd_mbhc *mbhc) =20 mutex_unlock(&mbhc->lock); =20 - pm_runtime_mark_last_busy(component->dev); pm_runtime_put_autosuspend(component->dev); =20 return 0; @@ -1319,7 +1318,6 @@ static void wcd_correct_swch_plug(struct work_struct = *work) if (mbhc->mbhc_cb->hph_pull_down_ctrl) mbhc->mbhc_cb->hph_pull_down_ctrl(component, true); =20 - pm_runtime_mark_last_busy(component->dev); pm_runtime_put_autosuspend(component->dev); } =20 diff --git a/sound/soc/codecs/wsa881x.c b/sound/soc/codecs/wsa881x.c index d479521a6d50..636e59abc377 100644 --- a/sound/soc/codecs/wsa881x.c +++ b/sound/soc/codecs/wsa881x.c @@ -775,7 +775,6 @@ static int wsa881x_put_pa_gain(struct snd_kcontrol *kc, usleep_range(1000, 1010); } =20 - pm_runtime_mark_last_busy(comp->dev); pm_runtime_put_autosuspend(comp->dev); =20 return 1; diff --git a/sound/soc/codecs/wsa883x.c b/sound/soc/codecs/wsa883x.c index 13c9d4a6f015..188363b03b93 100644 --- a/sound/soc/codecs/wsa883x.c +++ b/sound/soc/codecs/wsa883x.c @@ -1491,7 +1491,6 @@ static int wsa883x_get_temp(struct wsa883x_priv *wsa8= 83x, long *temp) ret =3D -EAGAIN; } out: - pm_runtime_mark_last_busy(wsa883x->dev); pm_runtime_put_autosuspend(wsa883x->dev); =20 return ret; diff --git a/sound/soc/codecs/wsa884x.c b/sound/soc/codecs/wsa884x.c index 07d8a2645404..2484d4b8e2d9 100644 --- a/sound/soc/codecs/wsa884x.c +++ b/sound/soc/codecs/wsa884x.c @@ -1941,7 +1941,6 @@ static int wsa884x_get_temp(struct wsa884x_priv *wsa8= 84x, long *temp) } =20 out: - pm_runtime_mark_last_busy(wsa884x->dev); pm_runtime_put_autosuspend(wsa884x->dev); =20 return ret; --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 5AA392FCE23; Fri, 4 Jul 2025 07:55:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615721; cv=none; b=lzRdrcKe1AaN3sqs79S5x2hc0Urh/Rq5/6jNwiURz79vcf9ylSQVVFMe30G3FkVXbJdHUNKNP6npVqLZVe19Y9tFYWSovnr+qCFNI+r7+QvXJjheLwnLHrCOTzKRhRgNxYO9k1tq0PQKUKxmMYIoZLVJKM8UjsgiojrrpCqaq00= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615721; c=relaxed/simple; bh=lpsHDsgCN1/Ne3kQyUJDyzv5amh4CMh7kdrVAedLdF4=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hG1PGqRlw5C/G2R4w2ZDiXoI8HcYL0K/LAi0V5R+PaH1O11F3Xip3CXGCfYmnP5sgJHOJ1nK4/ybXQPLKqJtg4sH+eqC5FKcfNIMsGIjtQekUgHsBDx6jWHHxNepq7WoVB13P/Mqrs9CVGZ8rf0hWBsXua3twiPntnxtmIUSoxA= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=hJ7U/vhq; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="hJ7U/vhq" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615720; x=1783151720; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=lpsHDsgCN1/Ne3kQyUJDyzv5amh4CMh7kdrVAedLdF4=; b=hJ7U/vhquwpWgPSQ1Ms7idmsVHcqBPhTJ6nXJUi0xh6FQfz9LmmACG4t fva+XM6n/sRFs6ZJSVajef5Vw5ky3Z/ePq3GW/uH8LR62H2NZoc4s+0za 8j4yXxjg0Xy0T4Yr54C3B8IiVkWHHgi3kcbbKpPQyV250e2txXsubaUGP cnT5sZAZpRt4aZUGMzhMr8fS4mPZxrZoLM5GHsJZ8xRC2tXL/3GjyV7i7 GUhi1KmAXD7AFBTWs+1XNSZqfvk9t/Qhdmb77S0dLkUJt6wsgE0c+7Q19 8m95ajJYdCk7Jq8mwY1Lg7D+6sw19lMAnHwDx4ndfnASpRKMPbD+h2Wn+ A==; X-CSE-ConnectionGUID: fBIu+HXWRbO4Ub8VHqAoYw== X-CSE-MsgGUID: 1hirFAE7RbGER5hdyejPsw== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194397" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194397" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:55:06 -0700 X-CSE-ConnectionGUID: VylmM25lR82HHD1Zdi0W7g== X-CSE-MsgGUID: 6SdYExSXQCy1pSMZ9X5Z6Q== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616730" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:54:59 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id B49CF44A4B; Fri, 4 Jul 2025 10:54:57 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Cezary Rojewski , Liam Girdwood , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Kai Vehmanen , Pierre-Louis Bossart , Mark Brown , Jaroslav Kysela , Takashi Iwai , Sakari Ailus , "Dr. David Alan Gilbert" , =?UTF-8?q?Amadeusz=20S=C5=82awi=C5=84ski?= , Philipp Stanner , Al Viro , Ethan Carter Edwards , Jerome Brunet , Henry Martin Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 72/80] ASoC: Intel: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:57 +0300 Message-Id: <20250704075457.3222746-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 sound/soc/intel/atom/sst/sst_pvt.c | 1 - sound/soc/intel/avs/core.c | 1 - sound/soc/intel/avs/debugfs.c | 2 -- sound/soc/intel/avs/ipc.c | 1 - sound/soc/intel/avs/pcm.c | 1 - sound/soc/intel/catpt/pcm.c | 6 ------ sound/soc/intel/catpt/sysfs.c | 1 - 7 files changed, 13 deletions(-) diff --git a/sound/soc/intel/atom/sst/sst_pvt.c b/sound/soc/intel/atom/sst/= sst_pvt.c index 5d08f7d803f9..c01b29616ebc 100644 --- a/sound/soc/intel/atom/sst/sst_pvt.c +++ b/sound/soc/intel/atom/sst/sst_pvt.c @@ -259,7 +259,6 @@ int sst_pm_runtime_put(struct intel_sst_drv *sst_drv) { int ret; =20 - pm_runtime_mark_last_busy(sst_drv->dev); ret =3D pm_runtime_put_autosuspend(sst_drv->dev); if (ret < 0) return ret; diff --git a/sound/soc/intel/avs/core.c b/sound/soc/intel/avs/core.c index ec1b3f55cb5c..7af324753673 100644 --- a/sound/soc/intel/avs/core.c +++ b/sound/soc/intel/avs/core.c @@ -231,7 +231,6 @@ static void avs_hda_probe_work(struct work_struct *work) /* configure PM */ pm_runtime_set_autosuspend_delay(bus->dev, 2000); pm_runtime_use_autosuspend(bus->dev); - pm_runtime_mark_last_busy(bus->dev); pm_runtime_put_autosuspend(bus->dev); pm_runtime_allow(bus->dev); } diff --git a/sound/soc/intel/avs/debugfs.c b/sound/soc/intel/avs/debugfs.c index c625cf879f17..f508f215ecd2 100644 --- a/sound/soc/intel/avs/debugfs.c +++ b/sound/soc/intel/avs/debugfs.c @@ -315,7 +315,6 @@ static int enable_logs(struct avs_dev *adev, u32 resour= ce_mask, u32 *priorities) if (!adev->logged_resources) { avs_dsp_enable_d0ix(adev); err_d0ix: - pm_runtime_mark_last_busy(adev->dev); pm_runtime_put_autosuspend(adev->dev); } =20 @@ -342,7 +341,6 @@ static int disable_logs(struct avs_dev *adev, u32 resou= rce_mask) /* If that's the last resource, allow for D3. */ if (!adev->logged_resources) { avs_dsp_enable_d0ix(adev); - pm_runtime_mark_last_busy(adev->dev); pm_runtime_put_autosuspend(adev->dev); } =20 diff --git a/sound/soc/intel/avs/ipc.c b/sound/soc/intel/avs/ipc.c index 0314f9d4ea5f..6bfb9d1a1ca8 100644 --- a/sound/soc/intel/avs/ipc.c +++ b/sound/soc/intel/avs/ipc.c @@ -141,7 +141,6 @@ static void avs_dsp_recovery(struct avs_dev *adev) if (ret < 0) dev_err(adev->dev, "dsp reboot failed: %d\n", ret); =20 - pm_runtime_mark_last_busy(adev->dev); pm_runtime_enable(adev->dev); pm_request_autosuspend(adev->dev); =20 diff --git a/sound/soc/intel/avs/pcm.c b/sound/soc/intel/avs/pcm.c index ccf90428126d..3a22a8cb5185 100644 --- a/sound/soc/intel/avs/pcm.c +++ b/sound/soc/intel/avs/pcm.c @@ -979,7 +979,6 @@ static int avs_component_load_libraries(struct avs_soc_= component *acomp) if (!ret) ret =3D avs_module_info_init(adev, false); =20 - pm_runtime_mark_last_busy(adev->dev); pm_runtime_put_autosuspend(adev->dev); =20 return ret; diff --git a/sound/soc/intel/catpt/pcm.c b/sound/soc/intel/catpt/pcm.c index 81a2f0339e05..46acb7fdc547 100644 --- a/sound/soc/intel/catpt/pcm.c +++ b/sound/soc/intel/catpt/pcm.c @@ -673,7 +673,6 @@ static int catpt_dai_pcm_new(struct snd_soc_pcm_runtime= *rtm, =20 ret =3D catpt_ipc_set_device_format(cdev, &devfmt); =20 - pm_runtime_mark_last_busy(cdev->dev); pm_runtime_put_autosuspend(cdev->dev); =20 if (ret) @@ -871,7 +870,6 @@ static int catpt_mixer_volume_get(struct snd_kcontrol *= kcontrol, ucontrol->value.integer.value[i] =3D dspvol_to_ctlvol(dspvol); } =20 - pm_runtime_mark_last_busy(cdev->dev); pm_runtime_put_autosuspend(cdev->dev); =20 return 0; @@ -892,7 +890,6 @@ static int catpt_mixer_volume_put(struct snd_kcontrol *= kcontrol, ret =3D catpt_set_dspvol(cdev, cdev->mixer.mixer_hw_id, ucontrol->value.integer.value); =20 - pm_runtime_mark_last_busy(cdev->dev); pm_runtime_put_autosuspend(cdev->dev); =20 return ret; @@ -927,7 +924,6 @@ static int catpt_stream_volume_get(struct snd_kcontrol = *kcontrol, ucontrol->value.integer.value[i] =3D dspvol_to_ctlvol(dspvol); } =20 - pm_runtime_mark_last_busy(cdev->dev); pm_runtime_put_autosuspend(cdev->dev); =20 return 0; @@ -958,7 +954,6 @@ static int catpt_stream_volume_put(struct snd_kcontrol = *kcontrol, ret =3D catpt_set_dspvol(cdev, stream->info.stream_hw_id, ucontrol->value.integer.value); =20 - pm_runtime_mark_last_busy(cdev->dev); pm_runtime_put_autosuspend(cdev->dev); =20 if (ret) @@ -1035,7 +1030,6 @@ static int catpt_loopback_switch_put(struct snd_kcont= rol *kcontrol, =20 ret =3D catpt_ipc_mute_loopback(cdev, stream->info.stream_hw_id, mute); =20 - pm_runtime_mark_last_busy(cdev->dev); pm_runtime_put_autosuspend(cdev->dev); =20 if (ret) diff --git a/sound/soc/intel/catpt/sysfs.c b/sound/soc/intel/catpt/sysfs.c index 936ac9d503ff..048253002ec8 100644 --- a/sound/soc/intel/catpt/sysfs.c +++ b/sound/soc/intel/catpt/sysfs.c @@ -21,7 +21,6 @@ static ssize_t fw_version_show(struct device *dev, =20 ret =3D catpt_ipc_get_fw_version(cdev, &version); =20 - pm_runtime_mark_last_busy(cdev->dev); pm_runtime_put_autosuspend(cdev->dev); =20 if (ret) --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 7924B2F9483; Fri, 4 Jul 2025 07:55:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615716; cv=none; b=r61rJENKxbgCKtj2DwXjsr66AqTfMKjbasYCZ2W6fkgPO1V2ENzdpoG7OZ7zqoGFcfAc59ry1CVrXw7K4CXC6+USA2dic7XGwisHJ0FU53Z37zNzIqrhGc76rkQa0XvHRdU8p+ouiryPXMuXcPuTmEeEM3Xdhc6Vx2QdB7bP9CE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615716; c=relaxed/simple; bh=/sdRjYxfS+XsY+oFUi9LbPiw9xP+mi2C4Wu33DXiipM=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Z8Uam4+efft0DQjCliCIqTtDdvNNubLmxXMANPXgeoRQksLbjCC1ilPWe2uzN7ybq2ReBl/XWcxffcapmPwhKQSTaC+e9AF5EbwBpO27GeKL1aQkAIfaXtHDtQ36mMnmZxwhFqkI/8t2Zw3MSKm0Ql8vCyZnGXK9SRI2PHc9pZ0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=b71O0mqt; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="b71O0mqt" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615715; x=1783151715; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=/sdRjYxfS+XsY+oFUi9LbPiw9xP+mi2C4Wu33DXiipM=; b=b71O0mqtj6gM83eomGve+rmuB61X5brZJRhVDj+SYddzBmmu0QEsiohl rD1+qG+FXeBeAsp1IevXg85yroBpgfevCr3XfdEsFiHcDd2CU+Rx/htF4 XZ8M/xCU2Bf+OpHDEEZDz+iLcOVZK5o0qQy8IntV5VErCth0cYctFgZvv aJRLl1sLWj/p7/HP073AFqoEgHx8g3Vu7g1Cx2fN2CNsx4N9FvrtQTxnQ U1OclumaV6Pdx19caoOCGcV4FI7r22hYbataEwbk7jOZbIfvd6CteWCu0 GFMh/h6Drgj9m66voEwuvoby2H4Gj/q68e8Npy2QNXBwPzPWWi7XJIa/q w==; X-CSE-ConnectionGUID: vBlivEolRFmd3WcWZfXKhA== X-CSE-MsgGUID: TFueOom6QVqDzh/TLvxKYQ== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194346" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194346" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:55:04 -0700 X-CSE-ConnectionGUID: VMyG7aEjR4iffiOzvKpwyQ== X-CSE-MsgGUID: s7YHK/SnR1ieixpXxymbsQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616694" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:55:00 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 9EFFB44433; Fri, 4 Jul 2025 10:54:58 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 73/80] ASoC: component: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:58 +0300 Message-Id: <20250704075458.3222817-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 sound/soc/soc-component.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sound/soc/soc-component.c b/sound/soc/soc-component.c index 25f5e543ae8d..65c495094024 100644 --- a/sound/soc/soc-component.c +++ b/sound/soc/soc-component.c @@ -1278,7 +1278,6 @@ void snd_soc_pcm_component_pm_runtime_put(struct snd_= soc_pcm_runtime *rtd, if (rollback && !soc_component_mark_match(component, stream, pm)) continue; =20 - pm_runtime_mark_last_busy(component->dev); pm_runtime_put_autosuspend(component->dev); =20 /* remove marked stream */ --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 5BBB82FBFF2; Fri, 4 Jul 2025 07:55:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615719; cv=none; b=Nsv3k24kk3PCH6mkcdTAcOvaz3aw8vpfPrN2u5vfeNVQvs/nO4UMeZBW59rRXz458Mb5JTvee5DMzc8pbE4ltw3ee2xfrsPy0gX7/gxqBxwmnbLuTEQ1+jomuIpprQuIyVTPVsObKP2fNMNbo0+xHR14+M4LPwHA9CRLvmCZqv4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615719; c=relaxed/simple; bh=9q69OYL/7CXMUWdcHldof/LUdGaA7ZxaW92IuHgn28U=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=t3nbcG9eUwnEohDKXm/lZZWqIiREcP1kdhzUDKlm9ji4C0kv+iyTB3IYWNdmkKHfOZQppvpWux+gnSJNHBk0Xnfc9o2FrD2dKWA+uy7J3d8b4lBzpmxInD7J/dApFQnvgCik+lDXX5Yy+hPq73BPmuD3D68Kx/HNi+sejOo+mvs= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Bk0XzXxu; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Bk0XzXxu" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615718; x=1783151718; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9q69OYL/7CXMUWdcHldof/LUdGaA7ZxaW92IuHgn28U=; b=Bk0XzXxul8g+M59MCbQ57GMYoYCXcIy1Ug6xJNeKzvlcp4JGpgSITBad yGFSm81Fzz0+06k0qivitY8h+zFaF6hncTqH1S5MpZsoplMwXDkd4PbQ9 ZZRNaEEG88Gq2qZ3ueOeSBHCxfj8eghMT8ZMq2Hu4GE/ppB/caU137t7i ap9vd1e09SzdW2K9s1yLrMFtgN9o1qPDzOIrkDzRNu82GEtt0tz1KncrP cZbt0lFXg0CuqzrPJi5gAW6FSROq0Tdg5CCMz4VuiCZN7AGpR1+vsGI+j TOIZAdvbpfLr+7jWPmH4AFFXOnhPAJUtmx3RZLdXbBT6gc01cE2Xtso9a g==; X-CSE-ConnectionGUID: au2DMQatSM2JnaU3vzeNwQ== X-CSE-MsgGUID: PHnFYLHrSvOEp5tIOIqmZQ== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194389" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194389" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:55:06 -0700 X-CSE-ConnectionGUID: 1RWBHqSlQQe4GhVeAOhq5g== X-CSE-MsgGUID: B7ehfIh7QfWHqURRUlM27w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616700" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:55:01 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 8B2364445A; Fri, 4 Jul 2025 10:54:59 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Liam Girdwood , Peter Ujfalusi , Bard Liao , Ranjani Sridharan , Daniel Baluta , Kai Vehmanen , Pierre-Louis Bossart , Mark Brown , Jaroslav Kysela , Takashi Iwai Cc: sound-open-firmware@alsa-project.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 74/80] ASoC: SOF: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:54:59 +0300 Message-Id: <20250704075459.3222908-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Acked-by: Peter Ujfalusi --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 sound/soc/sof/control.c | 1 - sound/soc/sof/debug.c | 1 - sound/soc/sof/ipc3-dtrace.c | 1 - sound/soc/sof/ipc4-loader.c | 1 - sound/soc/sof/pcm.c | 1 - sound/soc/sof/sof-client-ipc-flood-test.c | 1 - sound/soc/sof/sof-client-ipc-kernel-injector.c | 1 - sound/soc/sof/sof-client-ipc-msg-injector.c | 1 - sound/soc/sof/sof-client-probes.c | 3 --- 9 files changed, 11 deletions(-) diff --git a/sound/soc/sof/control.c b/sound/soc/sof/control.c index 463d418e7200..a3fd1d523c09 100644 --- a/sound/soc/sof/control.c +++ b/sound/soc/sof/control.c @@ -196,7 +196,6 @@ int snd_sof_bytes_ext_volatile_get(struct snd_kcontrol = *kcontrol, unsigned int _ if (tplg_ops && tplg_ops->control && tplg_ops->control->bytes_ext_volatil= e_get) ret =3D tplg_ops->control->bytes_ext_volatile_get(scontrol, binary_data,= size); =20 - pm_runtime_mark_last_busy(scomp->dev); err =3D pm_runtime_put_autosuspend(scomp->dev); if (err < 0) dev_err_ratelimited(scomp->dev, "%s: failed to idle %d\n", __func__, err= ); diff --git a/sound/soc/sof/debug.c b/sound/soc/sof/debug.c index d0ffa1d71145..b24943a65c89 100644 --- a/sound/soc/sof/debug.c +++ b/sound/soc/sof/debug.c @@ -217,7 +217,6 @@ static int memory_info_update(struct snd_sof_dev *sdev,= char *buf, size_t buff_s } =20 ret =3D sof_ipc_tx_message(sdev->ipc, &msg, msg.size, reply, SOF_IPC_MSG_= MAX_SIZE); - pm_runtime_mark_last_busy(sdev->dev); pm_runtime_put_autosuspend(sdev->dev); if (ret < 0 || reply->rhdr.error < 0) { ret =3D min(ret, reply->rhdr.error); diff --git a/sound/soc/sof/ipc3-dtrace.c b/sound/soc/sof/ipc3-dtrace.c index 744a91a150bc..e5c8fec173c4 100644 --- a/sound/soc/sof/ipc3-dtrace.c +++ b/sound/soc/sof/ipc3-dtrace.c @@ -172,7 +172,6 @@ static int ipc3_trace_update_filter(struct snd_sof_dev = *sdev, int num_elems, goto error; } ret =3D sof_ipc_tx_message_no_reply(sdev->ipc, msg, msg->hdr.size); - pm_runtime_mark_last_busy(sdev->dev); pm_runtime_put_autosuspend(sdev->dev); =20 error: diff --git a/sound/soc/sof/ipc4-loader.c b/sound/soc/sof/ipc4-loader.c index ee61394e73d7..b0d293f62d1c 100644 --- a/sound/soc/sof/ipc4-loader.c +++ b/sound/soc/sof/ipc4-loader.c @@ -236,7 +236,6 @@ static int sof_ipc4_load_library(struct snd_sof_dev *sd= ev, unsigned long lib_id, =20 ret =3D ipc4_data->load_library(sdev, fw_lib, false); =20 - pm_runtime_mark_last_busy(sdev->dev); err =3D pm_runtime_put_autosuspend(sdev->dev); if (err < 0) dev_err_ratelimited(sdev->dev, "%s: pm_runtime idle failed: %d\n", diff --git a/sound/soc/sof/pcm.c b/sound/soc/sof/pcm.c index 090ea3a76892..fe43de1fe96c 100644 --- a/sound/soc/sof/pcm.c +++ b/sound/soc/sof/pcm.c @@ -712,7 +712,6 @@ static int sof_pcm_probe(struct snd_soc_component *comp= onent) ret); =20 pm_error: - pm_runtime_mark_last_busy(component->dev); pm_runtime_put_autosuspend(component->dev); =20 return ret; diff --git a/sound/soc/sof/sof-client-ipc-flood-test.c b/sound/soc/sof/sof-= client-ipc-flood-test.c index 11b6f7da2882..373f3a125372 100644 --- a/sound/soc/sof/sof-client-ipc-flood-test.c +++ b/sound/soc/sof/sof-client-ipc-flood-test.c @@ -223,7 +223,6 @@ static ssize_t sof_ipc_flood_dfs_write(struct file *fil= e, const char __user *buf ret =3D sof_debug_ipc_flood_test(cdev, flood_duration_test, ipc_duration_ms, ipc_count); =20 - pm_runtime_mark_last_busy(dev); err =3D pm_runtime_put_autosuspend(dev); if (err < 0) dev_err_ratelimited(dev, "debugfs write failed to idle %d\n", err); diff --git a/sound/soc/sof/sof-client-ipc-kernel-injector.c b/sound/soc/sof= /sof-client-ipc-kernel-injector.c index 8b28c3dc920c..249bd2d6c8d2 100644 --- a/sound/soc/sof/sof-client-ipc-kernel-injector.c +++ b/sound/soc/sof/sof-client-ipc-kernel-injector.c @@ -65,7 +65,6 @@ static ssize_t sof_kernel_msg_inject_dfs_write(struct fil= e *file, const char __u =20 sof_client_ipc_rx_message(cdev, hdr, priv->kernel_buffer); =20 - pm_runtime_mark_last_busy(dev); ret =3D pm_runtime_put_autosuspend(dev); if (ret < 0) dev_err_ratelimited(dev, "debugfs write failed to idle %d\n", ret); diff --git a/sound/soc/sof/sof-client-ipc-msg-injector.c b/sound/soc/sof/so= f-client-ipc-msg-injector.c index ba7ca1c5027f..9c8a0fbfb8df 100644 --- a/sound/soc/sof/sof-client-ipc-msg-injector.c +++ b/sound/soc/sof/sof-client-ipc-msg-injector.c @@ -137,7 +137,6 @@ static int sof_msg_inject_send_message(struct sof_clien= t_dev *cdev) if (ret) dev_err(dev, "IPC message send failed: %d\n", ret); =20 - pm_runtime_mark_last_busy(dev); err =3D pm_runtime_put_autosuspend(dev); if (err < 0) dev_err_ratelimited(dev, "debugfs write failed to idle %d\n", err); diff --git a/sound/soc/sof/sof-client-probes.c b/sound/soc/sof/sof-client-p= robes.c index aff9ce980429..663c0d3c314c 100644 --- a/sound/soc/sof/sof-client-probes.c +++ b/sound/soc/sof/sof-client-probes.c @@ -238,7 +238,6 @@ static ssize_t sof_probes_dfs_points_read(struct file *= file, char __user *to, kfree(desc); =20 pm_error: - pm_runtime_mark_last_busy(dev); err =3D pm_runtime_put_autosuspend(dev); if (err < 0) dev_err_ratelimited(dev, "debugfs read failed to idle %d\n", err); @@ -289,7 +288,6 @@ sof_probes_dfs_points_write(struct file *file, const ch= ar __user *from, if (!ret) ret =3D count; =20 - pm_runtime_mark_last_busy(dev); err =3D pm_runtime_put_autosuspend(dev); if (err < 0) dev_err_ratelimited(dev, "debugfs write failed to idle %d\n", err); @@ -337,7 +335,6 @@ sof_probes_dfs_points_remove_write(struct file *file, c= onst char __user *from, if (!ret) ret =3D count; =20 - pm_runtime_mark_last_busy(dev); err =3D pm_runtime_put_autosuspend(dev); if (err < 0) dev_err_ratelimited(dev, "debugfs write failed to idle %d\n", err); --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 118902F5C28; Fri, 4 Jul 2025 07:55:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615717; cv=none; b=nKDkbsRvggf64NvbO+CeYJ22GZArcOQHu9QDqnM5yZmmTgEapHU9nLw4mLpcM03DIdD/QtViaZknXgAvcfGVVtjEZaoVIiLUF5M0suVpuoGSTHfy+56vb74nhxt0h/iL9OdtzPNb1kv9jtxZmLqWUX2YdfnKfePJF1c9c12WHEs= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615717; c=relaxed/simple; bh=4ldo25+N/tIFm8DeRcBCKb3twA4UajKK70i0GKs/kok=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=TTiw4TpP05WPTCHsscI3KtVHyjt+uG62hLqpzFoL/Vc/pbl4zI01oW3YlHf2IIZnxXFXQhXes80tQfjNMWJzNraSicN/5zypx4fXGgajkxILeG92lecD/iiL5g3vsuW4jvM4s8kV7SlVYe471FwV2gfJ/Am3LF8Xey9dGyvE45A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Suv8p/HM; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Suv8p/HM" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615715; x=1783151715; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4ldo25+N/tIFm8DeRcBCKb3twA4UajKK70i0GKs/kok=; b=Suv8p/HMVE69tC2YMdWgd/T4+NuwIjOvMeKQZf7c2kruR8momzd3UWau cVnhLJMh9P0pQSw/NAwAx+/8mjYOSd3pdPduwybFas45FIUkzKqYRrWHu t1pyiIjfGJmRo9iG2CiH3SZG5Vl7CcBBYSgkY+7DwijUnlmQgqdzZjhN/ XtaRH5EXmfpPHOnItXLWlZtveMXPvy5wJOCLNPQV76G4uw7QZW0N2FAZ3 kISTPZaAAcFQYgyVd2y54lBcbvu95Dzb60LN2HpQFqcntrXyGSM1Hhg/Y pZvFCUt/mNFFs+XhmKJInB4VDqBf7bpbqEcUMWZ57c+lMynMVEbADcg+9 Q==; X-CSE-ConnectionGUID: bwFFjWQuR42xnfMrkTpipw== X-CSE-MsgGUID: A8InFhvwQc2bhlF3NrzGpA== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194357" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194357" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:55:04 -0700 X-CSE-ConnectionGUID: bfQcSKCsSfCiGdfFB4zSUA== X-CSE-MsgGUID: RS77KNxxS3mhIudXvS88zg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616704" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:55:02 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 2FCB24488D; Fri, 4 Jul 2025 10:55:00 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Jaroslav Kysela , Takashi Iwai , Sakari Ailus , Thorsten Blum Cc: linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 75/80] ALSA: intel_hdmi: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:55:00 +0300 Message-Id: <20250704075500.3222950-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus Acked-by: Takashi Iwai --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 sound/x86/intel_hdmi_audio.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/sound/x86/intel_hdmi_audio.c b/sound/x86/intel_hdmi_audio.c index fe5cb4139088..cc54539c6030 100644 --- a/sound/x86/intel_hdmi_audio.c +++ b/sound/x86/intel_hdmi_audio.c @@ -1102,7 +1102,6 @@ static int had_pcm_open(struct snd_pcm_substream *sub= stream) =20 return retval; error: - pm_runtime_mark_last_busy(intelhaddata->dev); pm_runtime_put_autosuspend(intelhaddata->dev); return retval; } @@ -1127,7 +1126,6 @@ static int had_pcm_close(struct snd_pcm_substream *su= bstream) } spin_unlock_irq(&intelhaddata->had_spinlock); =20 - pm_runtime_mark_last_busy(intelhaddata->dev); pm_runtime_put_autosuspend(intelhaddata->dev); return 0; } @@ -1589,7 +1587,6 @@ static void had_audio_wq(struct work_struct *work) } =20 mutex_unlock(&ctx->mutex); - pm_runtime_mark_last_busy(ctx->dev); pm_runtime_put_autosuspend(ctx->dev); } =20 --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 5A98C2FCE22 for ; Fri, 4 Jul 2025 07:55:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615721; cv=none; b=ENmqxjbzQZFuS6TCtorPLheCBqCtEhaPxhktPCLUKfB/pYaxSrv8oKVdTt8iQzMuvW5LUTl1+KgrWwBP6QyVsEXHtQ2EE5o+YhtY4wUVN5DjPg7dNct7WNR+XuOn7m7Fy8EzHSplDooAkGbVgJudvLrbEXQWcxQHVGbZtay0j6Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615721; c=relaxed/simple; bh=EoYEpuIhjevRLmOMCR7f7TcajIGyH0zpZLQ+nin4C+I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=IuvtwFu056plaBwcQrEy3SvX8faONhCVVntCKIUDQiS9dMN2X/Vke8AhF6SGt/RNHCBt1dXiCqjtjZXemdKV3Ia+TfUPbVYaQtxDm8zP6TwkLhqsgAKdEtFxBq1sSXJdse5ovZztJbma386CA8HGX1dr++cMUiVLNvddja2EmZ0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=XCuUkhmB; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="XCuUkhmB" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615720; x=1783151720; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=EoYEpuIhjevRLmOMCR7f7TcajIGyH0zpZLQ+nin4C+I=; b=XCuUkhmBGr2aH5SmQgniYn0qZnGw7fgk2P5HVF7uuqrW1o5vkV9wjQR1 9Ae1Uvanb6sLrZPoliQFQgIKmyXe96vGnvZGgPZaeQfl6AiQaYVYlocpk GzyPNXwR9G9VzjE73SgCvx/45pGqleN8RNPKTkLbjVLojjDtJBE20N7zz 68CiEY3IPMEdl/e2EpOMHARMK+3j8XKij5bniQMIW0oGhdfQcE7SKBf+T tpwV5V5YQkMq+ZnGSb+dxBcP6dV7zSVE8L1KhhAW9SWCbZD3f3w8pdO8A YK0ufkPgabu1o0ahV0Q9qLJeDHiwcmNZXc17F6gTj7oLCfD6RPps09P0+ Q==; X-CSE-ConnectionGUID: ImewDs+/SDWAyUmezeE7hw== X-CSE-MsgGUID: nsAXlgPZRP6Axsw9tR5ftg== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194383" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194383" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:55:05 -0700 X-CSE-ConnectionGUID: vgQ8PaqkSnqJO8aISIvvhg== X-CSE-MsgGUID: vTwceVOmQzGj0D8RXANUPA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616716" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:55:03 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id EDE1344BAC; Fri, 4 Jul 2025 10:55:00 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Sven Peter , Janne Grunau , Alyssa Rosenzweig , Neal Gompa Cc: asahi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 76/80] soc: apple: mailbox: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:55:00 +0300 Message-Id: <20250704075500.3223019-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/soc/apple/mailbox.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/soc/apple/mailbox.c b/drivers/soc/apple/mailbox.c index 49a0955e82d6..b56600229a7d 100644 --- a/drivers/soc/apple/mailbox.c +++ b/drivers/soc/apple/mailbox.c @@ -275,7 +275,6 @@ void apple_mbox_stop(struct apple_mbox *mbox) =20 mbox->active =3D false; disable_irq(mbox->irq_recv_not_empty); - pm_runtime_mark_last_busy(mbox->dev); pm_runtime_put_autosuspend(mbox->dev); } EXPORT_SYMBOL(apple_mbox_stop); --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 B12E82FC00C; Fri, 4 Jul 2025 07:55:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615718; cv=none; b=DnbiO0Qekwib/l27fygs8KM+lPBNs2/YHwEvJa6wTNmibjZ3/vt5NMfLSnKDLbn1EMW8xCf7daoRNx62ijIqBgRxGJSGhdWjUeiU0wNTOWgt/NJosy3OLFYo9eTi7M24CN6RCFv0wf/EB1SO7tzrHxWRvXKf35S/oGczFEjBlIk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615718; c=relaxed/simple; bh=BB3rhAsySMZ6PI5adPReuYJsqbTYSmLkgXXONyBiWNQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=hmVSk+lOnKxeWbB2whf8EYa4L0Okc6L78nq3RwnjT9lZGszukhXzEeGOtb6fDX9kOBZn+hHxqaHBwibwtgjjoIIhXZtJqyDzIbc3033py5oabb+1pJsjvmUChFDGVjbxuM2mdzrtFkd2cQjZMebaVu+5WEiuDzxchZnr9lZzBfc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Bx3uzdZK; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="Bx3uzdZK" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615717; x=1783151717; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=BB3rhAsySMZ6PI5adPReuYJsqbTYSmLkgXXONyBiWNQ=; b=Bx3uzdZKL1qSdVIXvUCcDbfiwZ4LTFacw8Z43uGNX1DGa/XS1qtCV/6u V4n/qkEKV4ttWH7o84s+wtp3yUSBPOtfs6dpqhZDRKtJ21G8rdP4E/o6h qeT3ZMnls9Ur0z/kjTdRoDijnhf1NtHljVwhtY7trrrUaPBCYGQZ98e+l cJLVYg4zaYTaBuReDkQLJqDfOsRtgBTeJ7JOXRREaRAz6e1bk/T6gXnyk glZ6yEX6ecBIW3iGgPm7rKZedaqQNd+Vg+0OjVerljpWpm13ttviS1JDB X6gONKaH5NuZdYIK/5XZm0lU5OWzrFre6v2Rtx1SuSTNXe8fsj6rGzLXS A==; X-CSE-ConnectionGUID: X/ljuuA1TvGv4h2RFwld4Q== X-CSE-MsgGUID: khq9JthbTY2eSyiCVshPog== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194371" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194371" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:55:05 -0700 X-CSE-ConnectionGUID: k4jNQM5LRgW24dmJhqpysg== X-CSE-MsgGUID: 4+8QGBjSTfKjJk3ao15Olg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616721" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:55:03 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id C686E44419; Fri, 4 Jul 2025 10:55:01 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Jens Axboe Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 77/80] block: pm: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:55:01 +0300 Message-Id: <20250704075501.3223068-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 block/blk-pm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/block/blk-pm.c b/block/blk-pm.c index 8d3e052f91da..d6eab3193a20 100644 --- a/block/blk-pm.c +++ b/block/blk-pm.c @@ -181,7 +181,6 @@ void blk_post_runtime_resume(struct request_queue *q) spin_lock_irq(&q->queue_lock); old_status =3D q->rpm_status; q->rpm_status =3D RPM_ACTIVE; - pm_runtime_mark_last_busy(q->dev); pm_request_autosuspend(q->dev); spin_unlock_irq(&q->queue_lock); =20 --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) (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 9633E2FCE33; Fri, 4 Jul 2025 07:55:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.11 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615721; cv=none; b=f/VTkptglPjgZFj/th4ejOhvsQr7en7Z3FXKPYIq+p4SODMe2Mmq+btMv+v99rjUNDtmeAL7B/3n7JZNmZZ93ZG/2xIjy3H21nsTePjZgu1zTve+k1KI9mPyY8c5Xbe9TDpQi1NuUJANnV41oouZFAbLF6QK6x9+Z3UE0RiBRRk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615721; c=relaxed/simple; bh=AKRBPdQvBvtbRK/bXPl6r6OCwP7RJU5T2nZ52barpCE=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=YEkoFu9xGUXCnParwSjIZzdwMPJoJYAyNtllooXYu/BHO6F2iu2vsGWIyDdeipEa4jPiDm3EvN0THTf1RKhzlr4tRCITmtjGCrbIqZdmQXZpdsGYU5ay+0SIAQEjM++AutA95l0B2MbrIvYYh3yGtghDcO8uemhr+e6XILt9Clg= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=GmDPYHDY; arc=none smtp.client-ip=198.175.65.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="GmDPYHDY" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615720; x=1783151720; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=AKRBPdQvBvtbRK/bXPl6r6OCwP7RJU5T2nZ52barpCE=; b=GmDPYHDYZWod9kDSXyKXP9yMvDq5uX8MSK2Gvn/dbdjJ8TYoa2eMkYoC yDSqTtTGjzKb4pK0bS2mY2b4dVjuIZRCUV8gwUJXQUwWIBjCOnoJ1QFrl CXsgNi3gZ5ywVTyC5aU2huGCX4EOHVOAny+1v6ojTNfn8JCPTLY4zbcKi RlUUUzbqWdP/E05OQnqA3jUXTziBpio9ansGpYhe/5a5YcY9o5VXPx+sV 8ORT8XPRcuhslbGPCq0X1VGdBf/res0hqYtfJI4mAN4yW0qPE+Ky/XlfT Bt3ddQXdHVW5/+CsTdXuG+OmLQrNF2oEu5+eE85ruyjvgUDVJBIAaF3jW Q==; X-CSE-ConnectionGUID: k2Bm+046SmGKX56WGj2riQ== X-CSE-MsgGUID: DOdFi4pgRYmtaOlbGiehwQ== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="64194406" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="64194406" Received: from fmviesa003.fm.intel.com ([10.60.135.143]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:55:07 -0700 X-CSE-ConnectionGUID: r0Yg0XYGSACvaZf+G+FrQw== X-CSE-MsgGUID: U50mikryQMm5rKhXsjifnA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="158616725" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:55:04 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 70C6C44424; Fri, 4 Jul 2025 10:55:02 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Dmitry Torokhov , Josh Poimboeuf , Sakari Ailus , Ingo Molnar , Al Viro Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 78/80] Input: cyapa - Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:55:02 +0300 Message-Id: <20250704075502.3223112-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/input/mouse/cyapa.c | 3 --- drivers/input/mouse/cyapa_gen5.c | 1 - 2 files changed, 4 deletions(-) diff --git a/drivers/input/mouse/cyapa.c b/drivers/input/mouse/cyapa.c index 00c87c0532a6..6e0d956617a1 100644 --- a/drivers/input/mouse/cyapa.c +++ b/drivers/input/mouse/cyapa.c @@ -403,7 +403,6 @@ static int cyapa_open(struct input_dev *input) } =20 pm_runtime_get_sync(dev); - pm_runtime_mark_last_busy(dev); pm_runtime_put_sync_autosuspend(dev); out: mutex_unlock(&cyapa->state_sync_lock); @@ -666,7 +665,6 @@ static int cyapa_reinitialize(struct cyapa *cyapa) pm_runtime_enable(dev); =20 pm_runtime_get_sync(dev); - pm_runtime_mark_last_busy(dev); pm_runtime_put_sync_autosuspend(dev); } =20 @@ -710,7 +708,6 @@ static irqreturn_t cyapa_irq(int irq, void *dev_id) * process. */ pm_runtime_get_sync(dev); - pm_runtime_mark_last_busy(dev); pm_runtime_put_sync_autosuspend(dev); } =20 diff --git a/drivers/input/mouse/cyapa_gen5.c b/drivers/input/mouse/cyapa_g= en5.c index 3b4439f10635..59f6e97d5482 100644 --- a/drivers/input/mouse/cyapa_gen5.c +++ b/drivers/input/mouse/cyapa_gen5.c @@ -2833,7 +2833,6 @@ static int cyapa_pip_event_process(struct cyapa *cyap= a, * process. */ pm_runtime_get_sync(dev); - pm_runtime_mark_last_busy(dev); pm_runtime_put_sync_autosuspend(dev); return 0; } else if (report_id !=3D PIP_TOUCH_REPORT_ID && --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 1059A2F5470 for ; Fri, 4 Jul 2025 07:55:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615710; cv=none; b=sYuKIxjVqZ5IZxuM0rWQ9lHaY1a4p8armoM267ZPyrs51lO7Uby91+YuUsh30mm+wUn+ImBE06f5RwCnrvYb8OnuCaE7btI4hlcbOWVRWlMbbrG67v9XOXDLGpBbxyFinUNh+XxSlfFwhn1pZ63CXVk8tGNwcOE82GDB9DHoVa8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615710; c=relaxed/simple; bh=OzSsz6xVEE9TXDJejGYjMqpw4PBQB0JITmdRwE01wEY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=O0LfC6K11o4bCj0lDRL4wGKBTtsTRVRhP+svXd+ELwVd5JB6mOjuSTiL7gu51aXdbFZlAGHHXIkz5ygiYi9WZVRkkM09FdxyEHm25QpKj8tz2vmSPUQvhGc+6Gcgw7tpJKegPPNQ9V0cj+KWkoprZ22A2hH0dZRSNgqMi0/z7DI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=ggCs8naf; arc=none smtp.client-ip=192.198.163.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ggCs8naf" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615708; x=1783151708; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=OzSsz6xVEE9TXDJejGYjMqpw4PBQB0JITmdRwE01wEY=; b=ggCs8naffoG91oBSzgumFCY9BZE1E6jhUkrWnr+lRJBjwzDDzmGHoG36 ROmELFUJKW+e4f+pzw0frG1VUfLlq7/GOaTBywuAAYt2qg5cduT80HCBT /nKoE1pR2oDSG8U1XTacuql63u2fbPSJQ+aRnS6nVKp/cdF4wJdOkIbNQ FqRYXEtgP2hpViR9kRQv8CZcVShj5nFnOXRxdwHjtSJ/4g46K6tAi3tAv wTPRsRVhq0VqOsfOHiWp2Niw9dmUxZMPccBrVTpAhhsDcJwRupZJoUwhJ TahL8W/tT494snXjR+FxTjkalbY/3Neq/yUd7cLNygyP7S8ZJ3NhgJsF1 w==; X-CSE-ConnectionGUID: uEec2AwWRLyjtHZYOGPXWQ== X-CSE-MsgGUID: 5XGxR5dxQZmirseYtpqpQg== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="53080627" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="53080627" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:55:07 -0700 X-CSE-ConnectionGUID: pppj2q5kQwqDK8vpbtRjVA== X-CSE-MsgGUID: acWbReNfSvOicECSSl+KSg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="154223146" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:55:05 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 47D6344433; Fri, 4 Jul 2025 10:55:03 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: Alexander Usyskin , Arnd Bergmann , Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org Subject: [PATCH 79/80] mei: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:55:03 +0300 Message-Id: <20250704075503.3223168-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/misc/mei/interrupt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c index c484f416fae4..d74159811f75 100644 --- a/drivers/misc/mei/interrupt.c +++ b/drivers/misc/mei/interrupt.c @@ -229,7 +229,6 @@ static int mei_cl_irq_read_msg(struct mei_cl *cl, cl_dbg(dev, cl, "completed read length =3D %zu\n", cb->buf_idx); list_move_tail(&cb->list, cmpl_list); } else { - pm_runtime_mark_last_busy(dev->dev); pm_request_autosuspend(dev->dev); } =20 @@ -310,7 +309,6 @@ static int mei_cl_irq_read(struct mei_cl *cl, struct me= i_cl_cb *cb, return ret; } =20 - pm_runtime_mark_last_busy(dev->dev); pm_request_autosuspend(dev->dev); =20 list_move_tail(&cb->list, &cl->rd_pending); --=20 2.39.5 From nobody Tue Oct 7 22:58:35 2025 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.19]) (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 A6E062882A9; Fri, 4 Jul 2025 07:55:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.19 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615712; cv=none; b=X+NnQlG+ox+TqfjESJK0i+NZZv+d7jfzTi7NrqeO0+A8sb76VW7/dmoxK8b/uVmQzuHQx1XXSmGzoMNrxdwvvkj+TcCGtYXTSQTvVfwrKPFkuws/+ql/hz6AjCfA0sSfPmjU+TqqB1XcJ6Yp1ljOOLChipcUVwT/NP9WnApCZwQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751615712; c=relaxed/simple; bh=HatJQt+/Adv64NfU4l9yYslyXa8ctxMBuP4/uoYp+2s=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Tf/hX+AE6vXQKeXFvoDnMLxd0wK8hIGZ3zyErLn358u1FojtyBVWBXG9xgR2gIJzBLAfoWBSQ4lv9nfDUcn9O5xG1JStgiAT3/9BUnixRwhWOY9EcWig1qCB6zBJOD1ayF1xLmuf0gHpGfPzQAHYABg7mOH93RUO1PxiejIcP8A= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=eQ7Hb34u; arc=none smtp.client-ip=192.198.163.19 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="eQ7Hb34u" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1751615710; x=1783151710; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=HatJQt+/Adv64NfU4l9yYslyXa8ctxMBuP4/uoYp+2s=; b=eQ7Hb34uCUvO5XR3/8vL+iAvgrjPz50bs0W8beNRjuQyVYrhEMYXLfFx HFsPcb666mfaaULkHe5j6RtyeUG4oxkvGbypkTHRWtoX5VwiGNfGo5zHo 1pLN8aL8aFphZTI0Omwakd/A/JwAGp8FnHvXNt2SmH7rkEk5RT185Z0Kj V1R6hmUkt+TKonpA5KE6slMqoKBxq/p1hQH9uFtlkYy4mQvvsOcKn2MQx MPnT1nbZfzaYnA4lTb+E9/pcQ0Ep4GRu4Ab8unCixzoKmMj9YfctqQobY vyvxIA05C6pCgg53RHz94LeL4q2zF47qlrzYQ8vSxvtplIonYiN6adpTg A==; X-CSE-ConnectionGUID: H2i2/9KxTL6RhBhwc+4v2A== X-CSE-MsgGUID: EN/KXynSQF+6iDOfJcJCTw== X-IronPort-AV: E=McAfee;i="6800,10657,11483"; a="53080630" X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="53080630" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa113.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:55:07 -0700 X-CSE-ConnectionGUID: 3ZLeYn5ZSAuolWKw3UI1DA== X-CSE-MsgGUID: If5O9QjwR6KhmWAMeK3pcA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.16,286,1744095600"; d="scan'208";a="154223141" Received: from jkrzyszt-mobl2.ger.corp.intel.com (HELO svinhufvud.fi.intel.com) ([10.245.244.244]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jul 2025 00:55:06 -0700 Received: from svinhufvud.lan (localhost [IPv6:::1]) by svinhufvud.fi.intel.com (Postfix) with ESMTP id 1464F447EB; Fri, 4 Jul 2025 10:55:04 +0300 (EEST) Organization: Intel Finland Oy - BIC 0357606-4 - c/o Alberga Business Park, 6 krs, Bertel Jungin Aukio 5, 02600 Espoo From: Sakari Ailus To: "James E.J. Bottomley" , "Martin K. Petersen" Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 80/80] scsi: block: pm: Remove redundant pm_runtime_mark_last_busy() calls Date: Fri, 4 Jul 2025 10:55:03 +0300 Message-Id: <20250704075503.3223228-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> References: <20250704075225.3212486-1-sakari.ailus@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" pm_runtime_put_autosuspend(), pm_runtime_put_sync_autosuspend(), pm_runtime_autosuspend() and pm_request_autosuspend() now include a call to pm_runtime_mark_last_busy(). Remove the now-reduntant explicit call to pm_runtime_mark_last_busy(). Signed-off-by: Sakari Ailus --- The cover letter of the set can be found here . In brief, this patch depends on PM runtime patches adding marking the last busy timestamp in autosuspend related functions. The patches are here, on rc2: git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git \ pm-runtime-6.17-rc1 drivers/scsi/scsi_pm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/scsi/scsi_pm.c b/drivers/scsi/scsi_pm.c index d581613d87c7..2652fecbfe47 100644 --- a/drivers/scsi/scsi_pm.c +++ b/drivers/scsi/scsi_pm.c @@ -205,7 +205,6 @@ static int scsi_runtime_idle(struct device *dev) /* Insert hooks here for targets, hosts, and transport classes */ =20 if (scsi_is_sdev_device(dev)) { - pm_runtime_mark_last_busy(dev); pm_runtime_autosuspend(dev); return -EBUSY; } --=20 2.39.5