From: Ladislav Michl <ladis@linux-mips.org>
To: David Rivshin <drivshin@awxrd.com>
Cc: linux-pwm@vger.kernel.org,
Neil Armstrong <narmstrong@baylibre.com>,
Tony Lindgren <tony@atomide.com>, Keerthy <j-keerthy@ti.com>,
Thierry Reding <thierry.reding@gmail.com>,
Pavel Machek <pavel@ucw.cz>, Thomas Gleixner <tglx@linutronix.de>,
linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH v2] pwm: pwm-omap-dmtimer: return -EPROBE_DEFER if no dmtimer platform data
Date: Thu, 26 Jul 2018 20:54:26 +0200 [thread overview]
Message-ID: <20180726185426.GA3546@lenoch> (raw)
In-Reply-To: <20180726133658.23902-1-drivshin@awxrd.com>
On Thu, Jul 26, 2018 at 09:36:58AM -0400, David Rivshin wrote:
> From: David Rivshin <DRivshin@allworx.com>
>
> If a pwm-omap-dmtimer is probed before the dmtimer it uses, the platform
> data won't be set yet.
>
> Fixes: ac30751df953 ("ARM: OMAP: pdata-quirks: Remove unused timer pdata")
> Cc: <stable@vger.kernel.org> # 4.17+
> Signed-off-by: David Rivshin <drivshin@allworx.com>
> Acked-by: Pavel Machek <pavel@ucw.cz>
> Tested-by: Pavel Machek <pavel@ucw.cz>
> ---
> Changes in v2:
> * Added Pavel's Acked-by/Tested-by [1]
>
> [1] https://lkml.org/lkml/2018/7/16/346
>
> drivers/pwm/pwm-omap-dmtimer.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/pwm/pwm-omap-dmtimer.c b/drivers/pwm/pwm-omap-dmtimer.c
> index 665da3c8fbceb..d3d7ea7a53146 100644
> --- a/drivers/pwm/pwm-omap-dmtimer.c
> +++ b/drivers/pwm/pwm-omap-dmtimer.c
> @@ -264,8 +264,9 @@ static int pwm_omap_dmtimer_probe(struct platform_device *pdev)
>
> timer_pdata = dev_get_platdata(&timer_pdev->dev);
> if (!timer_pdata) {
> - dev_err(&pdev->dev, "dmtimer pdata structure NULL\n");
> - ret = -EINVAL;
> + dev_info(&pdev->dev,
> + "dmtimer pdata structure NULL, deferring probe\n");
This seems to be a bit verbose for EPROBE_DEFER case. Could we either remove
it as it is done later in pdata->request_by_node(timer) failure case or at
least make it dev_dbg? Otherwise thank you and with mentioned change
Acked-by: Ladislav Michl <ladis@linux-mips.org>
> + ret = -EPROBE_DEFER;
> goto put;
> }
>
>
> base-commit: d72e90f33aa4709ebecc5005562f52335e106a60
> --
> 2.17.1
WARNING: multiple messages have this Message-ID (diff)
From: ladis@linux-mips.org (Ladislav Michl)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2] pwm: pwm-omap-dmtimer: return -EPROBE_DEFER if no dmtimer platform data
Date: Thu, 26 Jul 2018 20:54:26 +0200 [thread overview]
Message-ID: <20180726185426.GA3546@lenoch> (raw)
In-Reply-To: <20180726133658.23902-1-drivshin@awxrd.com>
On Thu, Jul 26, 2018 at 09:36:58AM -0400, David Rivshin wrote:
> From: David Rivshin <DRivshin@allworx.com>
>
> If a pwm-omap-dmtimer is probed before the dmtimer it uses, the platform
> data won't be set yet.
>
> Fixes: ac30751df953 ("ARM: OMAP: pdata-quirks: Remove unused timer pdata")
> Cc: <stable@vger.kernel.org> # 4.17+
> Signed-off-by: David Rivshin <drivshin@allworx.com>
> Acked-by: Pavel Machek <pavel@ucw.cz>
> Tested-by: Pavel Machek <pavel@ucw.cz>
> ---
> Changes in v2:
> * Added Pavel's Acked-by/Tested-by [1]
>
> [1] https://lkml.org/lkml/2018/7/16/346
>
> drivers/pwm/pwm-omap-dmtimer.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/pwm/pwm-omap-dmtimer.c b/drivers/pwm/pwm-omap-dmtimer.c
> index 665da3c8fbceb..d3d7ea7a53146 100644
> --- a/drivers/pwm/pwm-omap-dmtimer.c
> +++ b/drivers/pwm/pwm-omap-dmtimer.c
> @@ -264,8 +264,9 @@ static int pwm_omap_dmtimer_probe(struct platform_device *pdev)
>
> timer_pdata = dev_get_platdata(&timer_pdev->dev);
> if (!timer_pdata) {
> - dev_err(&pdev->dev, "dmtimer pdata structure NULL\n");
> - ret = -EINVAL;
> + dev_info(&pdev->dev,
> + "dmtimer pdata structure NULL, deferring probe\n");
This seems to be a bit verbose for EPROBE_DEFER case. Could we either remove
it as it is done later in pdata->request_by_node(timer) failure case or at
least make it dev_dbg? Otherwise thank you and with mentioned change
Acked-by: Ladislav Michl <ladis@linux-mips.org>
> + ret = -EPROBE_DEFER;
> goto put;
> }
>
>
> base-commit: d72e90f33aa4709ebecc5005562f52335e106a60
> --
> 2.17.1
next prev parent reply other threads:[~2018-07-26 18:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-26 13:36 [PATCH v2] pwm: pwm-omap-dmtimer: return -EPROBE_DEFER if no dmtimer platform data David Rivshin
2018-07-26 13:36 ` David Rivshin
2018-07-26 18:54 ` Ladislav Michl [this message]
2018-07-26 18:54 ` Ladislav Michl
2018-07-26 20:37 ` David Rivshin
2018-07-26 20:37 ` David Rivshin
2018-07-27 7:19 ` Ladislav Michl
2018-07-27 7:19 ` Ladislav Michl
2018-07-27 11:00 ` Pavel Machek
2018-07-27 11:00 ` Pavel Machek
2018-07-27 13:42 ` David Rivshin
2018-07-27 13:42 ` David Rivshin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180726185426.GA3546@lenoch \
--to=ladis@linux-mips.org \
--cc=drivshin@awxrd.com \
--cc=j-keerthy@ti.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=linux-pwm@vger.kernel.org \
--cc=narmstrong@baylibre.com \
--cc=pavel@ucw.cz \
--cc=tglx@linutronix.de \
--cc=thierry.reding@gmail.com \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.