From mboxrd@z Thu Jan 1 00:00:00 1970 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83AECC433EF for ; Thu, 12 May 2022 14:52:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1355627AbiELOwr (ORCPT ); Thu, 12 May 2022 10:52:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1355622AbiELOwq (ORCPT ); Thu, 12 May 2022 10:52:46 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B6D4E62CE0; Thu, 12 May 2022 07:52:45 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 49D01FF811; Thu, 12 May 2022 14:52:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1652367164; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=oBHgUfjkvjlOrlP0AfXjalTcWpG6ICU7K/iN/xZMXlI=; b=osJeEdmvZN9+RU0m75ElviajW9Dx9hv2xk8vs5LWy0n9W9ROWeCocOomfjnEusbjcQ89/T NY58W3GYu+FmCkPb2LG1r71qodOPjur1/SkMxI/Vv9MjEq5aytyJ9XTGtI1njH4KJzCd1x BBfNTnm91dikw01VfoB02jfqmjeoZwniWauMoPzUAKDXfKdeqYJI31v3/AhloxX2OPYEIS VOkZ9saSzEr8cSV1y7nB3L/+4vVozEm3vaS2i/kaJbyx2TtTQyUl2Bk+vhjkzJ+xnQygYQ +/tI/0WmNDE+OOnRd+rYIhiL18A92IjIk2iGV7NwdydrYpxGa0qJuyZJbYY+RA== From: Miquel Raynal To: Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Pratyush Yadav , Michael Walle , Cc: linux-renesas-soc@vger.kernel.org, Magnus Damm , Gareth Williams , Phil Edworthy , Geert Uytterhoeven , Milan Stevanovic , Jimmy Lalande , Pascal Eberhard , Thomas Petazzoni , Herve Codina , Clement Leger , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, Miquel Raynal Subject: [PATCH v3 0/2] mtd: rawnand: renesas: Runtime PM use Date: Thu, 12 May 2022 16:52:38 +0200 Message-Id: <20220512145240.243469-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org 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 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