From patchwork Mon Apr 26 14:17:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= X-Patchwork-Id: 12224349 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BC4AFC43461 for ; Mon, 26 Apr 2021 14:17:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8B5D161165 for ; Mon, 26 Apr 2021 14:17:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233765AbhDZOSc (ORCPT ); Mon, 26 Apr 2021 10:18:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233755AbhDZOSb (ORCPT ); Mon, 26 Apr 2021 10:18:31 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0BCAEC061756 for ; Mon, 26 Apr 2021 07:17:49 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lb23K-0002KB-Ie; Mon, 26 Apr 2021 16:17:34 +0200 Received: from ukl by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1lb23I-0005nU-Px; Mon, 26 Apr 2021 16:17:32 +0200 From: =?utf-8?q?Uwe_Kleine-K=C3=B6nig?= To: Michael Turquette , Stephen Boyd Cc: linux-clk@vger.kernel.org, kernel@pengutronix.de, Claudiu Beznea , Thierry Reding , Lee Jones , Nicolas Ferre , Alexandre Belloni , Ludovic Desroches , linux-pwm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Alessandro Zummo , linux-rtc@vger.kernel.org, Mark Brown , linux-spi@vger.kernel.org, Wolfram Sang , Oleksij Rempel Subject: [PATCH v6 0/6] clk: provide new devm helpers for prepared and enabled clocks Date: Mon, 26 Apr 2021 16:17:24 +0200 Message-Id: <20210426141730.2826832-1-u.kleine-koenig@pengutronix.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-clk@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-clk@vger.kernel.org Hello, compared to v5 sent last week this series only fixes two typos in the commit logs. The range-diff is 1: 0f2fe65a9c9c ! 1: 38f213c5eeff rtc: at91sma9: Simplify using devm_clk_get_enabled() @@ Metadata Author: Uwe Kleine-König ## Commit message ## - rtc: at91sma9: Simplify using devm_clk_get_enabled() + rtc: at91sam9: Simplify using devm_clk_get_enabled() devm_clk_get_enabled() returns the clk already (prepared and) enabled and the automatically called cleanup cares for disabling (and 2: 3f11b70e7427 ! 2: b9cebea08a73 i2c: imx: Simplify using devm_clk_get_enableded() @@ Metadata Author: Uwe Kleine-König ## Commit message ## - i2c: imx: Simplify using devm_clk_get_enableded() + i2c: imx: Simplify using devm_clk_get_enabled() devm_clk_get_enabled() returns the clk already (prepared and) enabled and the automatically called cleanup cares for disabling (and 3: 6c357913e391 = 3: 8167605ad349 spi: davinci: Simplify using devm_clk_get_enabled() 4: 71b3db526357 < -: ------------ pwm: Clarify documentation about pwm_get_state() Other than that the state is still unchanged: This is a series which allows several cleanups (as can be seen from patches 2 to 6) and I didn't get any feedback from the clock maintainers since v1 that I sent in October. Best regards Uwe Uwe Kleine-König (6): clk: generalize devm_clk_get() a bit clk: Provide new devm_clk_helpers for prepared and enabled clocks pwm: atmel: Simplify using devm_clk_get_prepared() rtc: at91sam9: Simplify using devm_clk_get_enabled() i2c: imx: Simplify using devm_clk_get_enabled() spi: davinci: Simplify using devm_clk_get_enabled() drivers/clk/clk-devres.c | 96 ++++++++++++++++++++++++++++++------ drivers/i2c/busses/i2c-imx.c | 12 +---- drivers/pwm/pwm-atmel.c | 15 +----- drivers/rtc/rtc-at91sam9.c | 22 ++------- drivers/spi/spi-davinci.c | 11 +---- include/linux/clk.h | 87 +++++++++++++++++++++++++++++++- 6 files changed, 176 insertions(+), 67 deletions(-) base-commit: a38fd8748464831584a19438cbb3082b5a2dab15