From: Sakari Ailus <sakari.ailus@linux.intel.com>
To: Han Xu <han.xu@nxp.com>,
Miquel Raynal <miquel.raynal@bootlin.com>,
Richard Weinberger <richard@nod.at>,
Vignesh Raghavendra <vigneshr@ti.com>
Cc: linux-mtd@lists.infradead.org
Subject: [PATCH 29/51] mtd: rawnand: gpmi: Switch to __pm_runtime_put_autosuspend()
Date: Fri, 4 Oct 2024 12:41:33 +0300 [thread overview]
Message-ID: <20241004094133.113844-1-sakari.ailus@linux.intel.com> (raw)
In-Reply-To: <20241004094101.113349-1-sakari.ailus@linux.intel.com>
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 <sakari.ailus@linux.intel.com>
---
drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
index e1b515304e3c..1a8fe322f5d6 100644
--- a/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
+++ b/drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c
@@ -187,7 +187,7 @@ static int gpmi_init(struct gpmi_nand_data *this)
err_out:
pm_runtime_mark_last_busy(this->dev);
- pm_runtime_put_autosuspend(this->dev);
+ __pm_runtime_put_autosuspend(this->dev);
return ret;
}
@@ -739,7 +739,7 @@ static int bch_set_geometry(struct gpmi_nand_data *this)
ret = pm_runtime_get_sync(this->dev);
if (ret < 0) {
- pm_runtime_put_autosuspend(this->dev);
+ __pm_runtime_put_autosuspend(this->dev);
return ret;
}
@@ -758,7 +758,7 @@ static int bch_set_geometry(struct gpmi_nand_data *this)
ret = 0;
err_out:
pm_runtime_mark_last_busy(this->dev);
- pm_runtime_put_autosuspend(this->dev);
+ __pm_runtime_put_autosuspend(this->dev);
return ret;
}
@@ -2664,7 +2664,7 @@ static int gpmi_nfc_exec_op(struct nand_chip *chip,
out_pm:
pm_runtime_mark_last_busy(this->dev);
- pm_runtime_put_autosuspend(this->dev);
+ __pm_runtime_put_autosuspend(this->dev);
return ret;
}
@@ -2780,7 +2780,7 @@ static int gpmi_nand_probe(struct platform_device *pdev)
goto exit_nfc_init;
pm_runtime_mark_last_busy(&pdev->dev);
- pm_runtime_put_autosuspend(&pdev->dev);
+ __pm_runtime_put_autosuspend(&pdev->dev);
dev_info(this->dev, "driver registered.\n");
--
2.39.5
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
next prev parent reply other threads:[~2024-10-04 9:48 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-04 9:41 [PATCH 00/51] treewide: Switch to __pm_runtime_put_autosuspend() Sakari Ailus
2024-10-04 9:41 ` Sakari Ailus [this message]
2024-10-04 11:12 ` [PATCH 29/51] mtd: rawnand: gpmi: " Miquel Raynal
2024-10-04 14:38 ` [PATCH 00/51] treewide: " Ulf Hansson
2024-10-07 18:49 ` Laurent Pinchart
2024-10-07 22:08 ` Ulf Hansson
2024-10-07 22:25 ` Laurent Pinchart
2024-10-07 22:34 ` Ulf Hansson
2024-10-08 18:24 ` Rafael J. Wysocki
2024-10-09 10:20 ` Rafael J. Wysocki
2024-10-09 10:27 ` Ulf Hansson
2024-10-09 12:48 ` Richard Fitzgerald
2024-10-09 13:34 ` Rafael J. Wysocki
2024-10-08 20:38 ` Uwe Kleine-König
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20241004094133.113844-1-sakari.ailus@linux.intel.com \
--to=sakari.ailus@linux.intel.com \
--cc=han.xu@nxp.com \
--cc=linux-mtd@lists.infradead.org \
--cc=miquel.raynal@bootlin.com \
--cc=richard@nod.at \
--cc=vigneshr@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox