* [PATCH] pwm: ab8500: Add error message if pwmchip_add() fails
@ 2020-08-12 7:52 Uwe Kleine-König
2020-08-12 8:11 ` Lee Jones
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Uwe Kleine-König @ 2020-08-12 7:52 UTC (permalink / raw)
To: Thierry Reding, Lee Jones; +Cc: linux-pwm, Linus Walleij, linux-arm-kernel
pwmchip_add() doesn't emit an error message, so add one in the driver.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
---
drivers/pwm/pwm-ab8500.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pwm/pwm-ab8500.c b/drivers/pwm/pwm-ab8500.c
index fdf3964db4a6..4b6f9e24e11d 100644
--- a/drivers/pwm/pwm-ab8500.c
+++ b/drivers/pwm/pwm-ab8500.c
@@ -106,7 +106,7 @@ static int ab8500_pwm_probe(struct platform_device *pdev)
err = pwmchip_add(&ab8500->chip);
if (err < 0)
- return err;
+ return dev_err_probe(&pdev->dev, err, "Failed to add pwm chip\n");
dev_dbg(&pdev->dev, "pwm probe successful\n");
platform_set_drvdata(pdev, ab8500);
--
2.27.0
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply related [flat|nested] 8+ messages in thread
* Re: [PATCH] pwm: ab8500: Add error message if pwmchip_add() fails
2020-08-12 7:52 [PATCH] pwm: ab8500: Add error message if pwmchip_add() fails Uwe Kleine-König
@ 2020-08-12 8:11 ` Lee Jones
2020-10-22 19:22 ` Uwe Kleine-König
2020-11-06 13:55 ` Linus Walleij
2020-11-11 18:07 ` Thierry Reding
2 siblings, 1 reply; 8+ messages in thread
From: Lee Jones @ 2020-08-12 8:11 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: linux-pwm, Linus Walleij, Thierry Reding, linux-arm-kernel
On Wed, 12 Aug 2020, Uwe Kleine-König wrote:
> pwmchip_add() doesn't emit an error message, so add one in the driver.
Maybe placing one there would be a good idea.
It would certainly cut down on a lot of superfluous strings.
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
> drivers/pwm/pwm-ab8500.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pwm/pwm-ab8500.c b/drivers/pwm/pwm-ab8500.c
> index fdf3964db4a6..4b6f9e24e11d 100644
> --- a/drivers/pwm/pwm-ab8500.c
> +++ b/drivers/pwm/pwm-ab8500.c
> @@ -106,7 +106,7 @@ static int ab8500_pwm_probe(struct platform_device *pdev)
>
> err = pwmchip_add(&ab8500->chip);
> if (err < 0)
> - return err;
> + return dev_err_probe(&pdev->dev, err, "Failed to add pwm chip\n");
>
> dev_dbg(&pdev->dev, "pwm probe successful\n");
> platform_set_drvdata(pdev, ab8500);
--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] pwm: ab8500: Add error message if pwmchip_add() fails
2020-08-12 8:11 ` Lee Jones
@ 2020-10-22 19:22 ` Uwe Kleine-König
2020-10-26 9:33 ` Lee Jones
0 siblings, 1 reply; 8+ messages in thread
From: Uwe Kleine-König @ 2020-10-22 19:22 UTC (permalink / raw)
To: Lee Jones; +Cc: linux-pwm, Linus Walleij, Thierry Reding, linux-arm-kernel
[-- Attachment #1.1: Type: text/plain, Size: 618 bytes --]
On Wed, Aug 12, 2020 at 09:11:39AM +0100, Lee Jones wrote:
> On Wed, 12 Aug 2020, Uwe Kleine-König wrote:
>
> > pwmchip_add() doesn't emit an error message, so add one in the driver.
>
> Maybe placing one there would be a good idea.
>
> It would certainly cut down on a lot of superfluous strings.
Hmm, I'm not convinced. Do you want to work on that? If not I suggest to
still apply the patch as currently it is justified.
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] pwm: ab8500: Add error message if pwmchip_add() fails
2020-10-22 19:22 ` Uwe Kleine-König
@ 2020-10-26 9:33 ` Lee Jones
2020-11-03 8:00 ` Uwe Kleine-König
0 siblings, 1 reply; 8+ messages in thread
From: Lee Jones @ 2020-10-26 9:33 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: linux-pwm, Linus Walleij, Thierry Reding, linux-arm-kernel
On Thu, 22 Oct 2020, Uwe Kleine-König wrote:
> On Wed, Aug 12, 2020 at 09:11:39AM +0100, Lee Jones wrote:
> > On Wed, 12 Aug 2020, Uwe Kleine-König wrote:
> >
> > > pwmchip_add() doesn't emit an error message, so add one in the driver.
> >
> > Maybe placing one there would be a good idea.
> >
> > It would certainly cut down on a lot of superfluous strings.
>
> Hmm, I'm not convinced. Do you want to work on that? If not I suggest to
> still apply the patch as currently it is justified.
I haven't looked at implementing it. Does it look difficult/
--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] pwm: ab8500: Add error message if pwmchip_add() fails
2020-10-26 9:33 ` Lee Jones
@ 2020-11-03 8:00 ` Uwe Kleine-König
2020-11-03 8:18 ` Lee Jones
0 siblings, 1 reply; 8+ messages in thread
From: Uwe Kleine-König @ 2020-11-03 8:00 UTC (permalink / raw)
To: Lee Jones; +Cc: linux-pwm, Linus Walleij, Thierry Reding, linux-arm-kernel
[-- Attachment #1.1: Type: text/plain, Size: 1020 bytes --]
On Mon, Oct 26, 2020 at 09:33:00AM +0000, Lee Jones wrote:
> On Thu, 22 Oct 2020, Uwe Kleine-König wrote:
>
> > On Wed, Aug 12, 2020 at 09:11:39AM +0100, Lee Jones wrote:
> > > On Wed, 12 Aug 2020, Uwe Kleine-König wrote:
> > >
> > > > pwmchip_add() doesn't emit an error message, so add one in the driver.
> > >
> > > Maybe placing one there would be a good idea.
> > >
> > > It would certainly cut down on a lot of superfluous strings.
> >
> > Hmm, I'm not convinced. Do you want to work on that? If not I suggest to
> > still apply the patch as currently it is justified.
>
> I haven't looked at implementing it. Does it look difficult/
Probably it isn't, needs just some endurance to actually do it. (And I
won't invest that in the near future, also because I'm not convinced
that the result is beneficial.)
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] pwm: ab8500: Add error message if pwmchip_add() fails
2020-11-03 8:00 ` Uwe Kleine-König
@ 2020-11-03 8:18 ` Lee Jones
0 siblings, 0 replies; 8+ messages in thread
From: Lee Jones @ 2020-11-03 8:18 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: linux-pwm, Linus Walleij, Thierry Reding, linux-arm-kernel
On Tue, 03 Nov 2020, Uwe Kleine-König wrote:
> On Mon, Oct 26, 2020 at 09:33:00AM +0000, Lee Jones wrote:
> > On Thu, 22 Oct 2020, Uwe Kleine-König wrote:
> >
> > > On Wed, Aug 12, 2020 at 09:11:39AM +0100, Lee Jones wrote:
> > > > On Wed, 12 Aug 2020, Uwe Kleine-König wrote:
> > > >
> > > > > pwmchip_add() doesn't emit an error message, so add one in the driver.
> > > >
> > > > Maybe placing one there would be a good idea.
> > > >
> > > > It would certainly cut down on a lot of superfluous strings.
> > >
> > > Hmm, I'm not convinced. Do you want to work on that? If not I suggest to
> > > still apply the patch as currently it is justified.
> >
> > I haven't looked at implementing it. Does it look difficult/
>
> Probably it isn't, needs just some endurance to actually do it. (And I
> won't invest that in the near future, also because I'm not convinced
> that the result is beneficial.)
I'll add it to my TODO list.
In the mean time, don't let this halt the patch.
--
Lee Jones [李琼斯]
Senior Technical Lead - Developer Services
Linaro.org │ Open source software for Arm SoCs
Follow Linaro: Facebook | Twitter | Blog
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] pwm: ab8500: Add error message if pwmchip_add() fails
2020-08-12 7:52 [PATCH] pwm: ab8500: Add error message if pwmchip_add() fails Uwe Kleine-König
2020-08-12 8:11 ` Lee Jones
@ 2020-11-06 13:55 ` Linus Walleij
2020-11-11 18:07 ` Thierry Reding
2 siblings, 0 replies; 8+ messages in thread
From: Linus Walleij @ 2020-11-06 13:55 UTC (permalink / raw)
To: Uwe Kleine-König; +Cc: linux-pwm, Thierry Reding, Lee Jones, Linux ARM
On Wed, Aug 12, 2020 at 9:52 AM Uwe Kleine-König
<u.kleine-koenig@pengutronix.de> wrote:
> pwmchip_add() doesn't emit an error message, so add one in the driver.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Yours,
Linus Walleij
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [PATCH] pwm: ab8500: Add error message if pwmchip_add() fails
2020-08-12 7:52 [PATCH] pwm: ab8500: Add error message if pwmchip_add() fails Uwe Kleine-König
2020-08-12 8:11 ` Lee Jones
2020-11-06 13:55 ` Linus Walleij
@ 2020-11-11 18:07 ` Thierry Reding
2 siblings, 0 replies; 8+ messages in thread
From: Thierry Reding @ 2020-11-11 18:07 UTC (permalink / raw)
To: Uwe Kleine-König
Cc: linux-pwm, Linus Walleij, Lee Jones, linux-arm-kernel
[-- Attachment #1.1: Type: text/plain, Size: 339 bytes --]
On Wed, Aug 12, 2020 at 09:52:14AM +0200, Uwe Kleine-König wrote:
> pwmchip_add() doesn't emit an error message, so add one in the driver.
>
> Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> ---
> drivers/pwm/pwm-ab8500.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Thierry
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2020-11-11 18:08 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-12 7:52 [PATCH] pwm: ab8500: Add error message if pwmchip_add() fails Uwe Kleine-König
2020-08-12 8:11 ` Lee Jones
2020-10-22 19:22 ` Uwe Kleine-König
2020-10-26 9:33 ` Lee Jones
2020-11-03 8:00 ` Uwe Kleine-König
2020-11-03 8:18 ` Lee Jones
2020-11-06 13:55 ` Linus Walleij
2020-11-11 18:07 ` Thierry Reding
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).