[GIT PULL] pwm: Changes for v6.8-rc1, take 2

From: Uwe Kleine-König
Date: Thu Jan 18 2024 - 03:38:07 EST


Hello Linus,

the following changes since commit 7afc0e7f681e6efd6b826f003fc14c17b5093643:

MAINTAINERS: pwm: Thierry steps down, Uwe takes over (2024-01-12 16:40:34 +0100)

are available in the Git repository at:

git@xxxxxxxxxxxxxxxxxxx:pub/scm/linux/kernel/git/ukleinek/linux tags/pwm/for-6.8-2

for you to fetch changes up to 9320fc509b87b4d795fb37112931e2f4f8b5c55f:

pwm: jz4740: Don't use dev_err_probe() in .request() (2024-01-12 18:25:05 +0100)

The commits are in next since next-20240117 only, but they are small
and obvious enough to qualify for inclusion IMHO.

Please pull this for v6.8-rc1.

Thanks to Sean for his contribution to this PR.

Best regards
Uwe

----------------------------------------------------------------
pwm changes for 6.8, take 2

The first commit fixes a duplicate cleanup in an error path introduced
in pwm/for-6.8-rc1~13.

The second cares for an out-of-bounds access. In practise it doesn't
happen---otherwise someone would have noticed since v5.17-rc1 I
guess---because the device tree binding for the two drivers using
of_pwm_single_xlate() only have args->args_count == 1. A device-tree
that doesn't conform to the respective bindings could trigger that
easily however.

The third and last one corrects the request callback of the jz4740 pwm
driver which used dev_err_probe() long after .probe() completed. This is
conceptually wrong because dev_err_probe() might call
device_set_deferred_probe_reason() which is nonsensical after the driver
is bound.
----------------------------------------------------------------

Sean Young (1):
pwm: bcm2835: Remove duplicate call to clk_rate_exclusive_put()

Uwe Kleine-König (2):
pwm: Fix out-of-bounds access in of_pwm_single_xlate()
pwm: jz4740: Don't use dev_err_probe() in .request()

drivers/pwm/core.c | 2 +-
drivers/pwm/pwm-bcm2835.c | 4 +---
drivers/pwm/pwm-jz4740.c | 7 ++++---
3 files changed, 6 insertions(+), 7 deletions(-)

--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |

Attachment: signature.asc
Description: PGP signature