From patchwork Fri Oct 4 09:41:22 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sakari Ailus X-Patchwork-Id: 13822005 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 3497FCFA74C for ; Fri, 4 Oct 2024 09:44:23 +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=I8Zzkba5ZdmJLsDWqDTFmaaBOKR+Z24FRScc1BCJt54=; b=XQLBtY5wyZYURe90hbZgeIgNsm 1cGWAVkrxbhk3YiWpvcUBs2QxBsu7hAHe4GbHcJH4Rvie2n07LTvdZPjJL2Cvvc1sKVVBxZuSEktR BqxDAvmXD7Y8cB3TUdNBGwpB6gyZ1D2xDS6GEUli70XRf5XrHySFnGNl07xq/y4lGhIGQ5nrnloR6 2sg3it9DtVFsKo4hHciHzuoT/HnTfxE0ex9+MEdgpXuCPD1CbhWwotk0xMWLP21NpDj94zIkMMCiz /fG94y9Gn3WOZz19F06mFxl6ExrHF7nLyzA6QTaoSLjWKSqyUErFJGwp6VQR4GhdTdD4Vd2xDWN+4 68ORUPHg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1swer7-0000000Bgp5-2Naz; Fri, 04 Oct 2024 09:44:13 +0000 Received: from mgamail.intel.com ([192.198.163.11]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sweoQ-0000000BfmG-3edc for linux-arm-kernel@lists.infradead.org; Fri, 04 Oct 2024 09:41:28 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1728034887; x=1759570887; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=vBw/GQefa64DRp8NDioQypMCDfwKLCufkrK3JfG6lus=; b=DsXgJefoHgTBA8zAxW3Tho1xfQMos5JlbKz15JxdtuuhfOXiGIfVOFP2 6FRzPmTlUQIl+rB2Vh/3DHeexwub72Roq6CVMwVMjLZyCIsnFuU2NsyNv J2FEAqT4RtJLD8u6lFbDsyUDR5q+wHsemKdDEPqnKBVJ1nGRPcdSUKucH MzsOmuFE+eB+OsbJxv15C0pOazy9NY1S1LpGdku0bYD2DYlMSouDwZVP9 Eu9pF/BHFYPCLst/AxSeNW2mee3dQ9yZznrN4rbb+h6zrZm0KiX+xu3n1 oVdBOyMWsPz1H3Cvb01hednRjn6zk4FU60LoNWSfANHglWcFDs+HNSgXE g==; X-CSE-ConnectionGUID: y/+gtbFUQ/m6qLcck1Tbuw== X-CSE-MsgGUID: p0NdohmLQDCNjjAuicAQUA== X-IronPort-AV: E=McAfee;i="6700,10204,11214"; a="37856243" X-IronPort-AV: E=Sophos;i="6.11,177,1725346800"; d="scan'208";a="37856243" 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:27 -0700 X-CSE-ConnectionGUID: b2wFGtwkQAaI954hcfHTVA== X-CSE-MsgGUID: +ueu421NRTWNaE2iatHzTA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,177,1725346800"; d="scan'208";a="74331936" 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:24 -0700 Received: from punajuuri.localdomain (punajuuri.localdomain [192.168.240.130]) by kekkonen.fi.intel.com (Postfix) with ESMTP id B1FFA1203FA; Fri, 4 Oct 2024 12:41:22 +0300 (EEST) Received: from sailus by punajuuri.localdomain with local (Exim 4.96) (envelope-from ) id 1sweoM-000TYa-2J; Fri, 04 Oct 2024 12:41:22 +0300 Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 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 Subject: [PATCH 15/51] stm class: Switch to __pm_runtime_put_autosuspend() Date: Fri, 4 Oct 2024 12:41:22 +0300 Message-Id: <20241004094122.113606-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_024127_070058_C5FD5709 X-CRM114-Status: GOOD ( 11.44 ) 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 Acked-by: Alexander Shishkin --- drivers/hwtracing/stm/core.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/hwtracing/stm/core.c b/drivers/hwtracing/stm/core.c index cdba4e875b28..229546270bf4 100644 --- a/drivers/hwtracing/stm/core.c +++ b/drivers/hwtracing/stm/core.c @@ -660,7 +660,7 @@ static ssize_t stm_char_write(struct file *file, const char __user *buf, count = stm_write(stm, &stmf->output, 0, kbuf, count, NULL); pm_runtime_mark_last_busy(&stm->dev); - pm_runtime_put_autosuspend(&stm->dev); + __pm_runtime_put_autosuspend(&stm->dev); kfree(kbuf); return count; @@ -680,7 +680,7 @@ static void stm_mmap_close(struct vm_area_struct *vma) struct stm_device *stm = stmf->stm; pm_runtime_mark_last_busy(&stm->dev); - pm_runtime_put_autosuspend(&stm->dev); + __pm_runtime_put_autosuspend(&stm->dev); } static const struct vm_operations_struct stm_mmap_vmops = { @@ -1083,7 +1083,7 @@ static int __stm_source_link_drop(struct stm_source_device *src, 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); + __pm_runtime_put_autosuspend(&link->dev); /* matches stm_find_device() from stm_source_link_store() */ stm_put_device(link); rcu_assign_pointer(src->link, NULL); @@ -1181,7 +1181,7 @@ static ssize_t stm_source_link_store(struct device *dev, err = stm_source_link_add(src, link); if (err) { - pm_runtime_put_autosuspend(&link->dev); + __pm_runtime_put_autosuspend(&link->dev); /* matches the stm_find_device() above */ stm_put_device(link); }