* [PATCH] bus: ts-nbus: Use pwm_apply_might_sleep()
@ 2024-06-14 9:08 Sean Young
2024-06-14 10:06 ` Uwe Kleine-König
0 siblings, 1 reply; 4+ messages in thread
From: Sean Young @ 2024-06-14 9:08 UTC (permalink / raw)
To: Uwe Kleine-König; +Cc: linux-kernel, linux-pwm
pwm_apply_state() is deprecated since commit c748a6d77c06a ("pwm: Rename
pwm_apply_state() to pwm_apply_might_sleep()").
Signed-off-by: Sean Young <sean@mess.org>
---
drivers/bus/ts-nbus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/bus/ts-nbus.c b/drivers/bus/ts-nbus.c
index baf22a82c47a7..b8af44c5cdbd0 100644
--- a/drivers/bus/ts-nbus.c
+++ b/drivers/bus/ts-nbus.c
@@ -294,7 +294,7 @@ static int ts_nbus_probe(struct platform_device *pdev)
state.duty_cycle = state.period;
state.enabled = true;
- ret = pwm_apply_state(pwm, &state);
+ ret = pwm_apply_might_sleep(pwm, &state);
if (ret < 0)
return dev_err_probe(dev, ret, "failed to configure PWM\n");
--
2.45.2
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] bus: ts-nbus: Use pwm_apply_might_sleep()
2024-06-14 9:08 [PATCH] bus: ts-nbus: Use pwm_apply_might_sleep() Sean Young
@ 2024-06-14 10:06 ` Uwe Kleine-König
2024-06-14 11:38 ` Arnd Bergmann
0 siblings, 1 reply; 4+ messages in thread
From: Uwe Kleine-König @ 2024-06-14 10:06 UTC (permalink / raw)
To: Sean Young, Arnd Bergmann; +Cc: linux-kernel, linux-pwm
[-- Attachment #1: Type: text/plain, Size: 1207 bytes --]
Hello,
[To: += Arnd]
On Fri, Jun 14, 2024 at 10:08:29AM +0100, Sean Young wrote:
> pwm_apply_state() is deprecated since commit c748a6d77c06a ("pwm: Rename
> pwm_apply_state() to pwm_apply_might_sleep()").
>
> Signed-off-by: Sean Young <sean@mess.org>
> ---
> drivers/bus/ts-nbus.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/bus/ts-nbus.c b/drivers/bus/ts-nbus.c
> index baf22a82c47a7..b8af44c5cdbd0 100644
> --- a/drivers/bus/ts-nbus.c
> +++ b/drivers/bus/ts-nbus.c
> @@ -294,7 +294,7 @@ static int ts_nbus_probe(struct platform_device *pdev)
> state.duty_cycle = state.period;
> state.enabled = true;
>
> - ret = pwm_apply_state(pwm, &state);
> + ret = pwm_apply_might_sleep(pwm, &state);
> if (ret < 0)
> return dev_err_probe(dev, ret, "failed to configure PWM\n");
Thanks. I guess the patch becoming
8129d25e32b7fd0f77bc664252321f3a16bb26b8 was created a while before
pwm_apply_might_sleep() was a thing.
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Arnd, you merged the last changes to that driver. Do you want to care
for that one, too? If not I can apply it via my pwm tree.
Best regards
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] bus: ts-nbus: Use pwm_apply_might_sleep()
2024-06-14 10:06 ` Uwe Kleine-König
@ 2024-06-14 11:38 ` Arnd Bergmann
2024-06-14 15:35 ` Uwe Kleine-König
0 siblings, 1 reply; 4+ messages in thread
From: Arnd Bergmann @ 2024-06-14 11:38 UTC (permalink / raw)
To: Uwe Kleine-König, Sean Young; +Cc: linux-kernel, linux-pwm
On Fri, Jun 14, 2024, at 12:06, Uwe Kleine-König wrote:
> On Fri, Jun 14, 2024 at 10:08:29AM +0100, Sean Young wrote:
>
> Thanks. I guess the patch becoming
> 8129d25e32b7fd0f77bc664252321f3a16bb26b8 was created a while before
> pwm_apply_might_sleep() was a thing.
>
> Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
>
> Arnd, you merged the last changes to that driver. Do you want to care
> for that one, too? If not I can apply it via my pwm tree.
Whichever works best for you. I generally take drivers/bus
and drivers/soc fixes through the soc tree, but if this is
a PWM related change then having it in the pwm tree makes
sense as well.
If you like me to pick it up through the soc tree, please
forward the fix to soc@kernel.org.
Arnd
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] bus: ts-nbus: Use pwm_apply_might_sleep()
2024-06-14 11:38 ` Arnd Bergmann
@ 2024-06-14 15:35 ` Uwe Kleine-König
0 siblings, 0 replies; 4+ messages in thread
From: Uwe Kleine-König @ 2024-06-14 15:35 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: Sean Young, linux-kernel, linux-pwm
[-- Attachment #1: Type: text/plain, Size: 960 bytes --]
Hello Arnd,
On Fri, Jun 14, 2024 at 01:38:05PM +0200, Arnd Bergmann wrote:
> On Fri, Jun 14, 2024, at 12:06, Uwe Kleine-König wrote:
> > On Fri, Jun 14, 2024 at 10:08:29AM +0100, Sean Young wrote:
> >
> > Thanks. I guess the patch becoming
> > 8129d25e32b7fd0f77bc664252321f3a16bb26b8 was created a while before
> > pwm_apply_might_sleep() was a thing.
> >
> > Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
> >
> > Arnd, you merged the last changes to that driver. Do you want to care
> > for that one, too? If not I can apply it via my pwm tree.
>
> Whichever works best for you. I generally take drivers/bus
> and drivers/soc fixes through the soc tree, but if this is
> a PWM related change then having it in the pwm tree makes
> sense as well.
>
> If you like me to pick it up through the soc tree, please
> forward the fix to soc@kernel.org.
OK, then I pick it up and consider it done. Thanks.
Best regards
Uwe
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-06-14 15:35 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-14 9:08 [PATCH] bus: ts-nbus: Use pwm_apply_might_sleep() Sean Young
2024-06-14 10:06 ` Uwe Kleine-König
2024-06-14 11:38 ` Arnd Bergmann
2024-06-14 15:35 ` Uwe Kleine-König
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®