From patchwork Fri Oct 4 09:41:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sakari Ailus X-Patchwork-Id: 13822019 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 C5571CFA74C for ; Fri, 4 Oct 2024 09:49:33 +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=+d7bAxf15dHkNq2AwcsfiCY+IqHeVzzaIB4QrSFtgzY=; b=rzSYU6jKAXjlS86yf6WrCFqNoB BBdv48XloxE2vFt1MorfzW0arEb7RxI0VdG7MIiCMXB3W3UK53Wxisi1uGxCMaja0FQDcpLlW/z5e kaWHjQkwcRMigeV+6+ILRYC98eUFBQ8KfIB91S0pRV9uOAgDBe48f6uzWqyAcxU461ayCyb7tEaEm 9+A6shHg+q+Pkrlj6+V9eHesXLybWZaQ5UQJMQRbMnszNANT/9xvFi6xQv4syWmS6rOAW2A10iT/c krxTfTQ8gb6crTlT+s8lA62PbKXGeDBiMwvclD0StqiObgUSKgkrtemHB/B0QEwOShbI6K1zmN9Qj lvpH+ACg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1swew7-0000000Bi8j-44E7; Fri, 04 Oct 2024 09:49:24 +0000 Received: from mgamail.intel.com ([192.198.163.17]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sweon-0000000Bg16-1PQc for linux-arm-kernel@lists.infradead.org; Fri, 04 Oct 2024 09:41:51 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1728034909; x=1759570909; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=caxOy/jgffzaiTHudoOppz/Vo2lQ194SRaTCVSsthec=; b=jgGOwyHmtyK60ObKEqiAwPmt7G+ZTdlXEWvLwwTZ+bENgmLLh5Xc5Pir akj2rnnWCvnxErpXYAMyXLlfa5FdJCXVGxmDjp+hduX0KI2BzgPGSDy/d aFiSrUOc9c8yhE7VeBT33bF4eLozT9MmsZmLjwmGe+fmxtICECRULKf5c 8xkL5RvKiYzAKexiDUdSpa/vISA0qHfKOSXCzKUj8w1iUyNHZR3Ei3IBr VImpvMYRHBtQxmDpEkeS+MSP4FaPSrTWROA58XmQ8PTXmPNM1xKlnhG8v 9DLUFp/n4DF/QPo2iKnaip4Dp87A+hxjBSDulgcWx9SiB/hGF/eDArxaZ Q==; X-CSE-ConnectionGUID: f4UBc0jfR72VlySVzzAnIg== X-CSE-MsgGUID: Nspe1Ap2SgmEVFks5Lt9Fw== X-IronPort-AV: E=McAfee;i="6700,10204,11214"; a="27136199" X-IronPort-AV: E=Sophos;i="6.11,177,1725346800"; d="scan'208";a="27136199" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2024 02:41:49 -0700 X-CSE-ConnectionGUID: CDNy/UxyQ5yR4P99lTb9gQ== X-CSE-MsgGUID: Ix2TPCorRyiHZW4/Nle32g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,177,1725346800"; d="scan'208";a="105492071" Received: from turnipsi.fi.intel.com (HELO kekkonen.fi.intel.com) ([10.237.72.44]) by orviesa002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Oct 2024 02:41:47 -0700 Received: from punajuuri.localdomain (punajuuri.localdomain [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id 92DB211F727; Fri, 4 Oct 2024 12:41:44 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.96) (envelope-from ) id 1sweoi-000Tec-1m; Fri, 04 Oct 2024 12:41:44 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo From: Sakari Ailus To: Liam Girdwood , Mark Brown , Maxime Coquelin , Alexandre Torgue Cc: linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH 37/51] regulator: stm32-vrefbuf: Switch to __pm_runtime_put_autosuspend() Date: Fri, 4 Oct 2024 12:41:34 +0300 Message-Id: <20241004094134.113980-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_024149_409729_A195FC51 X-CRM114-Status: GOOD ( 11.02 ) 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 --- drivers/regulator/stm32-vrefbuf.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/regulator/stm32-vrefbuf.c b/drivers/regulator/stm32-vrefbuf.c index 40855105dd33..870e568e5de9 100644 --- a/drivers/regulator/stm32-vrefbuf.c +++ b/drivers/regulator/stm32-vrefbuf.c @@ -68,7 +68,7 @@ static int stm32_vrefbuf_enable(struct regulator_dev *rdev) } pm_runtime_mark_last_busy(priv->dev); - pm_runtime_put_autosuspend(priv->dev); + __pm_runtime_put_autosuspend(priv->dev); return ret; } @@ -88,7 +88,7 @@ static int stm32_vrefbuf_disable(struct regulator_dev *rdev) writel_relaxed(val, priv->base + STM32_VREFBUF_CSR); pm_runtime_mark_last_busy(priv->dev); - pm_runtime_put_autosuspend(priv->dev); + __pm_runtime_put_autosuspend(priv->dev); return 0; } @@ -105,7 +105,7 @@ static int stm32_vrefbuf_is_enabled(struct regulator_dev *rdev) ret = readl_relaxed(priv->base + STM32_VREFBUF_CSR) & STM32_ENVR; pm_runtime_mark_last_busy(priv->dev); - pm_runtime_put_autosuspend(priv->dev); + __pm_runtime_put_autosuspend(priv->dev); return ret; } @@ -126,7 +126,7 @@ static int stm32_vrefbuf_set_voltage_sel(struct regulator_dev *rdev, writel_relaxed(val, priv->base + STM32_VREFBUF_CSR); pm_runtime_mark_last_busy(priv->dev); - pm_runtime_put_autosuspend(priv->dev); + __pm_runtime_put_autosuspend(priv->dev); return 0; } @@ -145,7 +145,7 @@ static int stm32_vrefbuf_get_voltage_sel(struct regulator_dev *rdev) ret = FIELD_GET(STM32_VRS, val); pm_runtime_mark_last_busy(priv->dev); - pm_runtime_put_autosuspend(priv->dev); + __pm_runtime_put_autosuspend(priv->dev); return ret; } @@ -219,7 +219,7 @@ static int stm32_vrefbuf_probe(struct platform_device *pdev) platform_set_drvdata(pdev, rdev); pm_runtime_mark_last_busy(&pdev->dev); - pm_runtime_put_autosuspend(&pdev->dev); + __pm_runtime_put_autosuspend(&pdev->dev); return 0;