[PATCH v6 0/6] clk: provide new devm helpers for prepared and enabled clocks

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Mon Apr 26 15:17:24 BST 2021


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 <u.kleine-koenig at pengutronix.de>
     
      ## 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 <u.kleine-koenig at pengutronix.de>
     
      ## 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
-- 
2.30.2




More information about the linux-arm-kernel mailing list