From patchwork Fri May 13 10:49:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miquel Raynal X-Patchwork-Id: 12848647 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 4DDB5C433F5 for ; Fri, 13 May 2022 10:50:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379623AbiEMKuD (ORCPT ); Fri, 13 May 2022 06:50:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37136 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233550AbiEMKuC (ORCPT ); Fri, 13 May 2022 06:50:02 -0400 Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96104296BE3; Fri, 13 May 2022 03:50:01 -0700 (PDT) Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 39E7BFF810; Fri, 13 May 2022 10:49:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1652439000; 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=EOnBw339JZrqM43NcFanIyq3YzXvKL8IR0/WPRtOnr0=; b=dv8mGuviAjL/9g1H1jG/m6wLkRB5Fon/bb3iJikEI9pBpc7sIRYSIhlw4CLq1bcPeRKp8J zcfF2vHZ7vFcNVU6FHOHY/mjLidppUFvu+qKU186e+5uDKWxo28ecJziCyOwE4oZQY4O8h UGJKQF1k9SW8Fyinwbzz5H9Tgamml4igqVoQSGpkGEZ15BrrWO7YCsTLL/lmi8/mLMInbV 5/RJLACBjTJwv5fb/3ycAHohahCkEbZzRq+aSTzWjaDsY1dZrpJIR5BGkHvfrh8ZqZnoE5 pGW637LNzfqY058RWJhu4z6Rmd830/bI7DbkDDtO67CXnxDRXXxFvkFX063trQ== From: Miquel Raynal To: linux-renesas-soc@vger.kernel.org, Magnus Damm , Gareth Williams , Phil Edworthy , Geert Uytterhoeven , Richard Weinberger , Vignesh Raghavendra , Tudor Ambarus , Pratyush Yadav , Michael Walle , Cc: Rob Herring , Krzysztof Kozlowski , devicetree@vger.kernel.org, Milan Stevanovic , Jimmy Lalande , Pascal Eberhard , Thomas Petazzoni , Herve Codina , Clement Leger , Miquel Raynal Subject: [PATCH v4 0/2] mtd: rawnand: renesas: Runtime PM use Date: Fri, 13 May 2022 12:49:55 +0200 Message-Id: <20220513104957.257721-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 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(-)