From patchwork Mon May 9 15:49:41 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 12843811 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 ABD37C433FE for ; Mon, 9 May 2022 15:50:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238622AbiEIPxo (ORCPT ); Mon, 9 May 2022 11:53:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238529AbiEIPxn (ORCPT ); Mon, 9 May 2022 11:53:43 -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 3ECBB2D7EC5; Mon, 9 May 2022 08:49:47 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id EBE9CFF803; Mon, 9 May 2022 15:49:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1652111386; 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=mIquRG577JqEJQFRHPKavgPrOYAE9YyAjroW6Bm9Lt8=; b=KxqAo1RleezPKdee9P+jVaqAyQbjagyU8gaRVXDs4FXLK4B6FzQv2yjd1aHJLkmjG07OrJ ffUV3tzsSFEHDqZ6BEBlxRrK27uA0gWSbvbQmEmA4Dh6kFB2vuym4+SuDFBjbvrOtphu4Z iQFQmZgWfuB/0CsHuXxWBNhto1uv3SHroBgRZOon0MHdzmyf5QZTwEAsZh2ycSbP4WneDB Pv58t3m1SFOl1LVSVBPgH3AoHywPaRs12EeBfM8ia00TcGWvzNt7Yv9dywlKtnQ7fR7I1v k0+sSq837fgso/EVxl02udUfYyxU+jT4Jvkw5bs7JXR0MKJ+vLdDIxO1OGpxTw== 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 , Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, Milan Stevanovic , Jimmy Lalande , Pascal Eberhard , Thomas Petazzoni , Herve Codina , Clement Leger , Miquel Raynal Subject: [PATCH v2 0/2] mtd: rawnand: renesas: Runtime PM use Date: Mon, 9 May 2022 17:49:41 +0200 Message-Id: <20220509154943.25422-1-miquel.raynal@bootlin.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@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 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 | 58 +++++++++---------- 2 files changed, 31 insertions(+), 32 deletions(-)