mbox series

[PULL] pwm changes for 6.2 for Thierry

Message ID 20221202183504.rhz5meomd4a4t7am@pengutronix.de
State Accepted
Headers show
Series [PULL] pwm changes for 6.2 for Thierry | expand

Pull-request

https://git.pengutronix.de/git/ukl/linux pwm-6.2

Message

Uwe Kleine-König Dec. 2, 2022, 6:35 p.m. UTC
Hello Thierry,

there are quite some patches still marked as "new" in our patchwork and
a bit part of them is ready in my eyes on top of your for-next branch.
Given that Linus Torvalds indicated to want the pull requests for 6.2
ready early[1] I thought I collect the patches I consider good for
application.

Feel free to do whatever you want with this pull request. If you find
the time to pick up patches yourself that's just fine for me. And in
case Linus doesn't to a -rc8 but cuts 6.1 this weekend, we have at least
a tree with non-faked timestamps older than the v6.1 tag. :-)

One thing I considered was pulling in Andy's PR[2], just to have it.
But I didn't as you signalled it to be not necessary. (And it merges
just fine into the changes from this PR.)

Best regards and a nice week-end
Uwe

[1] https://lore.kernel.org/lkml/CAHk-=wgUZwX8Sbb8Zvm7FxWVfX6CGuE7x+E16VKoqL7Ok9vv7g@mail.gmail.com/
[2] https://lore.kernel.org/linux-pwm/Y30YOvHpqvte9otX@black.fi.intel.com

The following changes since commit 50315945d178eebec4e8e2c50c265767ddb926eb:

  dt-bindings: pwm: renesas,tpu: Add r8a779g0 support (2022-11-23 12:22:35 +0100)

are available in the Git repository at:

  https://git.pengutronix.de/git/ukl/linux pwm-6.2

for you to fetch changes up to 145e5425eb85fc833d4b5d983cffa9ef1acd6c16:

  pwm: pca9685: Convert to i2c's .probe_new() (2022-12-02 19:16:30 +0100)

----------------------------------------------------------------
Andre Przywara (1):
      pwm: sun4i: Propagate errors in .get_state() to the caller

Andy Shevchenko (1):
      pwm: core: Remove S_IFREG from debugfs_create_file()

Daniel Golle (2):
      pwm: mediatek: always use bus clock for PWM on MT7622
      pwm: mediatek: Add support for MT7986

Doug Brown (6):
      pwm: pxa: Remove pxa_pwm_enable/disable
      pwm: pxa: Set duty cycle to 0 when disabling PWM
      pwm: pxa: Remove clk enable/disable from pxa_pwm_config
      pwm: pxa: Use abrupt shutdown mode
      pwm: pxa: Add reference manual link and limitations
      pwm: pxa: Enable for MMP platform

Fabrice Gasnier (1):
      pwm: stm32-lp: fix the check on arr and cmp registers update

Uwe Kleine-König (23):
      pwm: sifive: Call pwm_sifive_update_clock() while mutex is held
      pwm: lpc18xx-sct: Fix a comment to match code
      pwm: Document variables protected by pwm_lock
      pwm: Reduce time the pwm_lock mutex is held in pwmchip_add()
      pwm: Mark free pwm IDs as used in alloc_pwms()
      pwm: Don't initialize list head before calling list_add()
      pwm: fsl-ftm: Use regmap_clear_bits and regmap_set_bits where applicable
      pwm: img: Use regmap_clear_bits and regmap_set_bits where applicable
      pwm: iqs620a: Use regmap_clear_bits and regmap_set_bits where applicable
      pwm: stm32-lp: Use regmap_clear_bits and regmap_set_bits where applicable
      pwm: stm32: Use regmap_clear_bits and regmap_set_bits where applicable
      pwm: Make .get_state() callback return an error code
      pwm/tracing: Also record trace events for failed API calls
      drm/bridge: ti-sn65dsi86: Propagate errors in .get_state() to the caller
      leds: qcom-lpg: Propagate errors in .get_state() to the caller
      pwm: crc: Propagate errors in .get_state() to the caller
      pwm: cros-ec: Propagate errors in .get_state() to the caller
      pwm: imx27: Propagate errors in .get_state() to the caller
      pwm: mtk-disp: Propagate errors in .get_state() to the caller
      pwm: rockchip: Propagate errors in .get_state() to the caller
      pwm: sprd: Propagate errors in .get_state() to the caller
      pwm: Handle .get_state() failures
      pwm: pca9685: Convert to i2c's .probe_new()

xinlei lee (1):
      pwm: mtk-disp: Fix the parameters calculated by the enabled flag of disp_pwm

 drivers/gpio/gpio-mvebu.c             |  9 ++++++---
 drivers/gpu/drm/bridge/ti-sn65dsi86.c | 14 ++++++++------
 drivers/leds/rgb/leds-qcom-lpg.c      | 14 ++++++++------
 drivers/pwm/Kconfig                   |  2 +-
 drivers/pwm/core.c                    | 68 ++++++++++++++++++++++++++++++++++++++------------------------------
 drivers/pwm/pwm-atmel.c               |  6 ++++--
 drivers/pwm/pwm-bcm-iproc.c           |  8 +++++---
 drivers/pwm/pwm-crc.c                 | 10 ++++++----
 drivers/pwm/pwm-cros-ec.c             |  8 +++++---
 drivers/pwm/pwm-dwc.c                 |  6 ++++--
 drivers/pwm/pwm-fsl-ftm.c             | 18 +++++++-----------
 drivers/pwm/pwm-hibvt.c               |  6 ++++--
 drivers/pwm/pwm-img.c                 | 15 +++++++--------
 drivers/pwm/pwm-imx-tpm.c             |  8 +++++---
 drivers/pwm/pwm-imx27.c               |  8 +++++---
 drivers/pwm/pwm-intel-lgm.c           |  6 ++++--
 drivers/pwm/pwm-iqs620a.c             | 10 ++++++----
 drivers/pwm/pwm-keembay.c             |  6 ++++--
 drivers/pwm/pwm-lpc18xx-sct.c         |  2 +-
 drivers/pwm/pwm-lpss.c                |  6 ++++--
 drivers/pwm/pwm-mediatek.c            |  9 ++++++++-
 drivers/pwm/pwm-meson.c               |  8 +++++---
 drivers/pwm/pwm-mtk-disp.c            | 17 ++++++++++-------
 drivers/pwm/pwm-pca9685.c             | 13 +++++++------
 drivers/pwm/pwm-pxa.c                 | 58 +++++++++++++++++++++++++---------------------------------
 drivers/pwm/pwm-raspberrypi-poe.c     |  8 +++++---
 drivers/pwm/pwm-rockchip.c            | 12 +++++++-----
 drivers/pwm/pwm-sifive.c              | 11 ++++++++---
 drivers/pwm/pwm-sl28cpld.c            |  8 +++++---
 drivers/pwm/pwm-sprd.c                |  8 +++++---
 drivers/pwm/pwm-stm32-lp.c            | 15 ++++++++-------
 drivers/pwm/pwm-stm32.c               | 34 ++++++++++++++++------------------
 drivers/pwm/pwm-sun4i.c               | 14 +++++++++-----
 drivers/pwm/pwm-sunplus.c             |  6 ++++--
 drivers/pwm/pwm-visconti.c            |  6 ++++--
 drivers/pwm/pwm-xilinx.c              |  8 +++++---
 include/linux/pwm.h                   |  4 ++--
 include/trace/events/pwm.h            | 20 ++++++++++----------
 38 files changed, 275 insertions(+), 214 deletions(-)

Comments

Uwe Kleine-König Dec. 2, 2022, 7:03 p.m. UTC | #1
On Fri, Dec 02, 2022 at 07:35:04PM +0100, Uwe Kleine-König wrote:
>       drm/bridge: ti-sn65dsi86: Propagate errors in .get_state() to the caller
>       leds: qcom-lpg: Propagate errors in .get_state() to the caller

One thing I forgot to point out: I wasn't sure if I should include these
two patches. They could just be dropped without harm. I kept them
because I already touched these drivers anyhow in the change "pwm: Make
.get_state() callback return an error code".

Best regards
Uwe
Uwe Kleine-König Dec. 6, 2022, 11:17 a.m. UTC | #2
On Fri, Dec 02, 2022 at 08:03:06PM +0100, Uwe Kleine-König wrote:
> On Fri, Dec 02, 2022 at 07:35:04PM +0100, Uwe Kleine-König wrote:
> >       drm/bridge: ti-sn65dsi86: Propagate errors in .get_state() to the caller
> >       leds: qcom-lpg: Propagate errors in .get_state() to the caller
> 
> One thing I forgot to point out: I wasn't sure if I should include these
> two patches. They could just be dropped without harm. I kept them
> because I already touched these drivers anyhow in the change "pwm: Make
> .get_state() callback return an error code".

I updated the branch (reminder:

	https://git.pengutronix.de/git/ukl/linux pwm-6.2

) with some more Acks (and dropped a few duplicted S-o-b lines for
myself). Most notably Pavel acked the led changes to go via your tree.
Together with Doug's explanation about who cares for ti-sn65dsi86 I
think this is good as is.

The new hash is 0c6e9c1b0d9625f1202185048809a68fd506657f, there are no
source changes compared to the previous history.

Best regards
Uwe
Thierry Reding Dec. 6, 2022, 5:06 p.m. UTC | #3
On Fri, Dec 02, 2022 at 07:35:04PM +0100, Uwe Kleine-König wrote:
> Hello Thierry,
> 
> there are quite some patches still marked as "new" in our patchwork and
> a bit part of them is ready in my eyes on top of your for-next branch.
> Given that Linus Torvalds indicated to want the pull requests for 6.2
> ready early[1] I thought I collect the patches I consider good for
> application.
> 
> Feel free to do whatever you want with this pull request. If you find
> the time to pick up patches yourself that's just fine for me. And in
> case Linus doesn't to a -rc8 but cuts 6.1 this weekend, we have at least
> a tree with non-faked timestamps older than the v6.1 tag. :-)
> 
> One thing I considered was pulling in Andy's PR[2], just to have it.
> But I didn't as you signalled it to be not necessary. (And it merges
> just fine into the changes from this PR.)
> 
> Best regards and a nice week-end
> Uwe
> 
> [1] https://lore.kernel.org/lkml/CAHk-=wgUZwX8Sbb8Zvm7FxWVfX6CGuE7x+E16VKoqL7Ok9vv7g@mail.gmail.com/
> [2] https://lore.kernel.org/linux-pwm/Y30YOvHpqvte9otX@black.fi.intel.com
> 
> The following changes since commit 50315945d178eebec4e8e2c50c265767ddb926eb:
> 
>   dt-bindings: pwm: renesas,tpu: Add r8a779g0 support (2022-11-23 12:22:35 +0100)
> 
> are available in the Git repository at:
> 
>   https://git.pengutronix.de/git/ukl/linux pwm-6.2
> 
> for you to fetch changes up to 145e5425eb85fc833d4b5d983cffa9ef1acd6c16:
> 
>   pwm: pca9685: Convert to i2c's .probe_new() (2022-12-02 19:16:30 +0100)
> 
> ----------------------------------------------------------------
> Andre Przywara (1):
>       pwm: sun4i: Propagate errors in .get_state() to the caller
> 
> Andy Shevchenko (1):
>       pwm: core: Remove S_IFREG from debugfs_create_file()
> 
> Daniel Golle (2):
>       pwm: mediatek: always use bus clock for PWM on MT7622
>       pwm: mediatek: Add support for MT7986
> 
> Doug Brown (6):
>       pwm: pxa: Remove pxa_pwm_enable/disable
>       pwm: pxa: Set duty cycle to 0 when disabling PWM
>       pwm: pxa: Remove clk enable/disable from pxa_pwm_config
>       pwm: pxa: Use abrupt shutdown mode
>       pwm: pxa: Add reference manual link and limitations
>       pwm: pxa: Enable for MMP platform
> 
> Fabrice Gasnier (1):
>       pwm: stm32-lp: fix the check on arr and cmp registers update
> 
> Uwe Kleine-König (23):
>       pwm: sifive: Call pwm_sifive_update_clock() while mutex is held
>       pwm: lpc18xx-sct: Fix a comment to match code
>       pwm: Document variables protected by pwm_lock
>       pwm: Reduce time the pwm_lock mutex is held in pwmchip_add()
>       pwm: Mark free pwm IDs as used in alloc_pwms()
>       pwm: Don't initialize list head before calling list_add()
>       pwm: fsl-ftm: Use regmap_clear_bits and regmap_set_bits where applicable
>       pwm: img: Use regmap_clear_bits and regmap_set_bits where applicable
>       pwm: iqs620a: Use regmap_clear_bits and regmap_set_bits where applicable
>       pwm: stm32-lp: Use regmap_clear_bits and regmap_set_bits where applicable
>       pwm: stm32: Use regmap_clear_bits and regmap_set_bits where applicable
>       pwm: Make .get_state() callback return an error code
>       pwm/tracing: Also record trace events for failed API calls
>       drm/bridge: ti-sn65dsi86: Propagate errors in .get_state() to the caller
>       leds: qcom-lpg: Propagate errors in .get_state() to the caller
>       pwm: crc: Propagate errors in .get_state() to the caller
>       pwm: cros-ec: Propagate errors in .get_state() to the caller
>       pwm: imx27: Propagate errors in .get_state() to the caller
>       pwm: mtk-disp: Propagate errors in .get_state() to the caller
>       pwm: rockchip: Propagate errors in .get_state() to the caller
>       pwm: sprd: Propagate errors in .get_state() to the caller
>       pwm: Handle .get_state() failures
>       pwm: pca9685: Convert to i2c's .probe_new()
> 
> xinlei lee (1):
>       pwm: mtk-disp: Fix the parameters calculated by the enabled flag of disp_pwm
> 
>  drivers/gpio/gpio-mvebu.c             |  9 ++++++---
>  drivers/gpu/drm/bridge/ti-sn65dsi86.c | 14 ++++++++------
>  drivers/leds/rgb/leds-qcom-lpg.c      | 14 ++++++++------
>  drivers/pwm/Kconfig                   |  2 +-
>  drivers/pwm/core.c                    | 68 ++++++++++++++++++++++++++++++++++++++------------------------------
>  drivers/pwm/pwm-atmel.c               |  6 ++++--
>  drivers/pwm/pwm-bcm-iproc.c           |  8 +++++---
>  drivers/pwm/pwm-crc.c                 | 10 ++++++----
>  drivers/pwm/pwm-cros-ec.c             |  8 +++++---
>  drivers/pwm/pwm-dwc.c                 |  6 ++++--
>  drivers/pwm/pwm-fsl-ftm.c             | 18 +++++++-----------
>  drivers/pwm/pwm-hibvt.c               |  6 ++++--
>  drivers/pwm/pwm-img.c                 | 15 +++++++--------
>  drivers/pwm/pwm-imx-tpm.c             |  8 +++++---
>  drivers/pwm/pwm-imx27.c               |  8 +++++---
>  drivers/pwm/pwm-intel-lgm.c           |  6 ++++--
>  drivers/pwm/pwm-iqs620a.c             | 10 ++++++----
>  drivers/pwm/pwm-keembay.c             |  6 ++++--
>  drivers/pwm/pwm-lpc18xx-sct.c         |  2 +-
>  drivers/pwm/pwm-lpss.c                |  6 ++++--
>  drivers/pwm/pwm-mediatek.c            |  9 ++++++++-
>  drivers/pwm/pwm-meson.c               |  8 +++++---
>  drivers/pwm/pwm-mtk-disp.c            | 17 ++++++++++-------
>  drivers/pwm/pwm-pca9685.c             | 13 +++++++------
>  drivers/pwm/pwm-pxa.c                 | 58 +++++++++++++++++++++++++---------------------------------
>  drivers/pwm/pwm-raspberrypi-poe.c     |  8 +++++---
>  drivers/pwm/pwm-rockchip.c            | 12 +++++++-----
>  drivers/pwm/pwm-sifive.c              | 11 ++++++++---
>  drivers/pwm/pwm-sl28cpld.c            |  8 +++++---
>  drivers/pwm/pwm-sprd.c                |  8 +++++---
>  drivers/pwm/pwm-stm32-lp.c            | 15 ++++++++-------
>  drivers/pwm/pwm-stm32.c               | 34 ++++++++++++++++------------------
>  drivers/pwm/pwm-sun4i.c               | 14 +++++++++-----
>  drivers/pwm/pwm-sunplus.c             |  6 ++++--
>  drivers/pwm/pwm-visconti.c            |  6 ++++--
>  drivers/pwm/pwm-xilinx.c              |  8 +++++---
>  include/linux/pwm.h                   |  4 ++--
>  include/trace/events/pwm.h            | 20 ++++++++++----------
>  38 files changed, 275 insertions(+), 214 deletions(-)

I had gotten partially through this set and b4 wasn't happy letting me
pull this directly since the commit in the pull request didn't match the
commit in the remote, so I ended up grabbing the patches based on this
list and that seems to have worked. Build tests all check out (modulo
some egrep vs. grep -E warnings on MIPS) so I've pushed these out.

The branch also contains a few more that I had already applied before
taking the above patches.

Thanks,
Thierry