public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v4 0/2] mtd: rawnand: renesas: Runtime PM use
@ 2022-05-13 10:49 Miquel Raynal
  2022-05-13 10:49 ` [PATCH v4 1/2] dt-bindings: mtd: renesas: Fix the NAND controller description Miquel Raynal
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Miquel Raynal @ 2022-05-13 10:49 UTC (permalink / raw)
  To: linux-renesas-soc, Magnus Damm, Gareth Williams, Phil Edworthy,
	Geert Uytterhoeven, Richard Weinberger, Vignesh Raghavendra,
	Tudor Ambarus, Pratyush Yadav, Michael Walle, linux-mtd
  Cc: Rob Herring, Krzysztof Kozlowski, devicetree, Milan Stevanovic,
	Jimmy Lalande, Pascal Eberhard, Thomas Petazzoni, Herve Codina,
	Clement Leger, Miquel Raynal

There was a small mistake when first introducing this controller driver:
the power-domain property was missing in the device tree because there
was only one controller supported at this time (UART) and this is a
Synopsis IP which did not support power domains. The idea is to always
use these power domains when available, so let's add it to the bindings,
the DT and use it from the driver through the runtimpe PM API instead of
doing raw clk API calls.

Changes in v4:
* Use pm_runtime_resume_and_get() instead of pm_runtime_get_sync().

Changes in v3:
* Moved the pm_runtime calls earlier in the probe to avoid possible
  register accesses while the clocks have not yet been enabled.
 
Changes in v2:
* Dropped the DT patch merged by Geert.
* Used devm_pm_runtime_enable() instead of pm_runtime_enable() and
  dropped the pm_runtime_disable() calls.
* Used pm_runtime_resume_and_get() instead of pm_runtime_get_sync().
* Collected the tags on the bindings.

Miquel Raynal (2):
  dt-bindings: mtd: renesas: Fix the NAND controller description
  mtd: rawnand: renesas: Use runtime PM instead of the raw clock API

 .../bindings/mtd/renesas-nandc.yaml           |  5 ++
 .../mtd/nand/raw/renesas-nand-controller.c    | 51 +++++++++----------
 2 files changed, 28 insertions(+), 28 deletions(-)

-- 
2.27.0


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-05-16 16:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-13 10:49 [PATCH v4 0/2] mtd: rawnand: renesas: Runtime PM use Miquel Raynal
2022-05-13 10:49 ` [PATCH v4 1/2] dt-bindings: mtd: renesas: Fix the NAND controller description Miquel Raynal
2022-05-13 10:49 ` [PATCH v4 2/2] mtd: rawnand: renesas: Use runtime PM instead of the raw clock API Miquel Raynal
2022-05-13 17:16   ` Geert Uytterhoeven
2022-05-16 16:43 ` [PATCH v4 0/2] mtd: rawnand: renesas: Runtime PM use Miquel Raynal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox