From patchwork Fri Oct 4 09:41:23 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sakari Ailus X-Patchwork-Id: 13822018 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 88E45CFA74C for ; Fri, 4 Oct 2024 09:48:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cBpon3/Bod5dXEmh3xr/seMnFanxyA0HGNYjsMu1hsg=; b=dNY7I0PFXClgYBRmZixYklfgyI f0ADwBaGAbS6xpuRU07errKAzpzFkaRwdTExNZxotO2IyPuBjAOCacpGUVPo1Y/zWBKGPBVyV+7dA QxjvmEZukJFm1pQLmIkHD2XumRs9Wy+HLrQxWehjEwwhXK3ATuV8Lj25ubYLodT+sw2KOE8vKvZBD UXH9OhY6QV7kHsGP4COxOR6FiMBjgRKaC3TTEMLjy85DZ0orEtCHVocDnkBAiJ5Q9fh7kQuRapaD9 rRDAXRSW7/7u/yXYyqrdThFAb1rXUHybwLFJV3cDkXxP9x7rkGwvQWkcBGNPulPDTsAsPDXEY11WY cRLkwiDw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sweut-0000000BhsJ-2u5g; Fri, 04 Oct 2024 09:48:07 +0000 Received: from mgamail.intel.com ([192.198.163.11]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sweoX-0000000Bfqg-0rGA for linux-arm-kernel@lists.infradead.org; Fri, 04 Oct 2024 09:41:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1728034893; x=1759570893; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=n4KF3dBjJucW5uKA3f4JXugGchbXk/nbttaph2dNEeU=; b=VqbpC1YilYbxjKYQGUFBm0eDK6iNFRFgAR9oiCTaLZBG839SbiAwRSbY GgdEavC/ZdVSbBRDLmbcD5KBIe/n8scW9lcbLFqO+hxtND7vNwc5kvnSh XsBi33QWksgMILiMFkTBrSdktsqr3ssANjmpGnJQT3b8hvJK3dlOJga+s IMBfRSk2ukVCUds/LjP9zZrXDp6nsVfWunn+PFZUPwrMlLkhuLWIvZHKG 5HDSiuD8mD/K7K4uMTOwuptTzbGkrhJ+oU+Ivo8ZTN+eEUG2ssL9hpyGl 1tb4awVvjYqGrF/Lldl73KetxB38+x27JnXXU7MA50yjt7UMJLTDwFrGq g==; X-CSE-ConnectionGUID: Z1iEGkguSCWnAATTXsI0Sw== X-CSE-MsgGUID: ASDOQnQqSFup2994cG2Ikw== X-IronPort-AV: E=McAfee;i="6700,10204,11214"; a="37856290" X-IronPort-AV: E=Sophos;i="6.11,177,1725346800"; d="scan'208";a="37856290" Received: from fmviesa007.fm.intel.com ([10.60.135.147]) by fmvoesa105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2024 02:41:31 -0700 X-CSE-ConnectionGUID: Otx8UPjeS0WU/6ygcjZ9hQ== X-CSE-MsgGUID: nyDUhajAS4aDSGF+jSAM8w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,177,1725346800"; d="scan'208";a="74331943" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by fmviesa007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2024 02:41:28 -0700 Received: from punajuuri.localdomain (punajuuri.localdomain [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id 45283120F46; Fri, 4 Oct 2024 12:41:23 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.96) (envelope-from ) id 1sweoN-000TaV-0r; Fri, 04 Oct 2024 12:41:23 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo From: Sakari Ailus To: Will Deacon , Robin Murphy , Joerg Roedel , Jason Gunthorpe , Pranjal Shrivastava , Rob Clark , Georgi Djakov , Sakari Ailus Cc: linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev Subject: [PATCH 22/51] iommu/arm-smmu: Switch to __pm_runtime_put_autosuspend() Date: Fri, 4 Oct 2024 12:41:23 +0300 Message-Id: <20241004094123.113725-1-sakari.ailus@linux.intel.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20241004094101.113349-1-sakari.ailus@linux.intel.com> References: <20241004094101.113349-1-sakari.ailus@linux.intel.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241004_024133_518274_D3C3B49C X-CRM114-Status: GOOD ( 11.62 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org pm_runtime_put_autosuspend() will soon be changed to include a call to pm_runtime_mark_last_busy(). This patch switches the current users to __pm_runtime_put_autosuspend() which will continue to have the functionality of old pm_runtime_put_autosuspend(). Signed-off-by: Sakari Ailus Reviewed-by: Pranjal Shrivastava --- drivers/iommu/arm/arm-smmu/arm-smmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iommu/arm/arm-smmu/arm-smmu.c b/drivers/iommu/arm/arm-smmu/arm-smmu.c index 8321962b3714..cad02d5dc6d2 100644 --- a/drivers/iommu/arm/arm-smmu/arm-smmu.c +++ b/drivers/iommu/arm/arm-smmu/arm-smmu.c @@ -79,7 +79,7 @@ static inline int arm_smmu_rpm_get(struct arm_smmu_device *smmu) static inline void arm_smmu_rpm_put(struct arm_smmu_device *smmu) { if (pm_runtime_enabled(smmu->dev)) - pm_runtime_put_autosuspend(smmu->dev); + __pm_runtime_put_autosuspend(smmu->dev); } static void arm_smmu_rpm_use_autosuspend(struct arm_smmu_device *smmu)