From: Philippe CORNU - foss <philippe.cornu@foss.st.com>
To: Yannick FERTRE - foss <yannick.fertre@foss.st.com>,
"Raphael GALLAIS-POU - foss" <raphael.gallais-pou@foss.st.com>,
Yannick FERTRE <yannick.fertre@st.com>,
Philippe CORNU <philippe.cornu@st.com>,
"Benjamin Gaignard" <benjamin.gaignard@linaro.org>,
Vincent ABRIOU <vincent.abriou@st.com>,
Sam Ravnborg <sam@ravnborg.org>, Joe Perches <joe@perches.com>
Cc: Raphael GALLAIS-POU <raphael.gallais-pou@st.com>,
David Airlie <airlied@linux.ie>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"dri-devel@lists.freedesktop.org"
<dri-devel@lists.freedesktop.org>,
Alexandre TORGUE - foss <alexandre.torgue@foss.st.com>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
"linux-stm32@st-md-mailman.stormreply.com"
<linux-stm32@st-md-mailman.stormreply.com>,
"linux-arm-kernel@lists.infradead.org"
<linux-arm-kernel@lists.infradead.org>,
Alexandre TORGUE <alexandre.torgue@st.com>
Subject: RE: [PATCH 1/2] drm/stm: dsi: Avoid printing errors for -EPROBE_DEFER
Date: Mon, 8 Mar 2021 14:22:29 +0000 [thread overview]
Message-ID: <1615213345469.50782@foss.st.com> (raw)
In-Reply-To: <7db3bebd-2cfa-d8d8-40e5-81702295e151@foss.st.com>
[-- Attachment #1.1: Type: text/plain, Size: 2940 bytes --]
Applied on drm-misc-next.
Many thanks Raphaël & Yannick for your patch.
Note: I have updated the "From:" field to yannick.fertre@foss.st.com for more consistency.
Philippe :-)
________________________________
De : Yannick FERTRE - foss
Envoyé : lundi 8 mars 2021 10:10
À : Raphael GALLAIS-POU - foss; Yannick FERTRE; Philippe CORNU; Benjamin Gaignard; Vincent ABRIOU; Sam Ravnborg; Joe Perches
Cc : David Airlie; Daniel Vetter; Maxime Coquelin; Alexandre TORGUE; dri-devel@lists.freedesktop.org; linux-stm32@st-md-mailman.stormreply.com; linux-arm-kernel@lists.infradead.org; linux-kernel@vger.kernel.org; Philippe CORNU - foss; Raphael GALLAIS-POU; Alexandre TORGUE - foss
Objet : Re: [PATCH 1/2] drm/stm: dsi: Avoid printing errors for -EPROBE_DEFER
Tested-by: Yannick Fertre <yannick.fertre@foss.st.com>
On 2/22/21 10:22 AM, Raphael GALLAIS-POU - foss wrote:
> From: Yannick Fertre <yannick.fertre@st.com>
>
> Don't print error when probe deferred error is returned.
>
> Signed-off-by: Raphael Gallais-Pou <raphael.gallais-pou@foss.st.com>
> Signed-off-by: Yannick Fertre <yannick.fertre@foss.st.com>
> ---
> drivers/gpu/drm/stm/dw_mipi_dsi-stm.c | 9 +++------
> 1 file changed, 3 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c
> index 2e1f2664495d..8399d337589d 100644
> --- a/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c
> +++ b/drivers/gpu/drm/stm/dw_mipi_dsi-stm.c
> @@ -363,8 +363,7 @@ static int dw_mipi_dsi_stm_probe(struct platform_device *pdev)
> dsi->vdd_supply = devm_regulator_get(dev, "phy-dsi");
> if (IS_ERR(dsi->vdd_supply)) {
> ret = PTR_ERR(dsi->vdd_supply);
> - if (ret != -EPROBE_DEFER)
> - DRM_ERROR("Failed to request regulator: %d\n", ret);
> + dev_err_probe(dev, ret, "Failed to request regulator\n");
> return ret;
> }
>
> @@ -377,9 +376,7 @@ static int dw_mipi_dsi_stm_probe(struct platform_device *pdev)
> dsi->pllref_clk = devm_clk_get(dev, "ref");
> if (IS_ERR(dsi->pllref_clk)) {
> ret = PTR_ERR(dsi->pllref_clk);
> - if (ret != -EPROBE_DEFER)
> - DRM_ERROR("Unable to get pll reference clock: %d\n",
> - ret);
> + dev_err_probe(dev, ret, "Unable to get pll reference clock\n");
> goto err_clk_get;
> }
>
> @@ -419,7 +416,7 @@ static int dw_mipi_dsi_stm_probe(struct platform_device *pdev)
> dsi->dsi = dw_mipi_dsi_probe(pdev, &dw_mipi_dsi_stm_plat_data);
> if (IS_ERR(dsi->dsi)) {
> ret = PTR_ERR(dsi->dsi);
> - DRM_ERROR("Failed to initialize mipi dsi host: %d\n", ret);
> + dev_err_probe(dev, ret, "Failed to initialize mipi dsi host\n");
> goto err_dsi_probe;
> }
>
>
[-- Attachment #1.2: Type: text/html, Size: 5968 bytes --]
[-- Attachment #2: Type: text/plain, Size: 160 bytes --]
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2021-03-08 14:22 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-22 9:22 [PATCH 0/2] Standardize DSI driver logging system Raphael GALLAIS-POU - foss
2021-02-22 9:22 ` Raphael GALLAIS-POU - foss
2021-02-22 9:22 ` Raphael GALLAIS-POU - foss
2021-02-22 9:22 ` [PATCH 1/2] drm/stm: dsi: Avoid printing errors for -EPROBE_DEFER Raphael GALLAIS-POU - foss
2021-02-22 9:22 ` Raphael GALLAIS-POU - foss
2021-02-22 9:22 ` Raphael GALLAIS-POU - foss
2021-03-08 9:10 ` yannick Fertre
2021-03-08 9:10 ` yannick Fertre
2021-03-08 9:10 ` yannick Fertre
2021-03-08 14:22 ` Philippe CORNU - foss [this message]
2021-02-22 9:23 ` [PATCH 2/2] drm/stm: dsi: Use dev_ based logging Raphael GALLAIS-POU - foss
2021-02-22 9:23 ` Raphael GALLAIS-POU - foss
2021-02-22 9:23 ` Raphael GALLAIS-POU - foss
2021-03-08 9:10 ` yannick Fertre
2021-03-08 9:10 ` yannick Fertre
2021-03-08 9:10 ` yannick Fertre
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=1615213345469.50782@foss.st.com \
--to=philippe.cornu@foss.st.com \
--cc=airlied@linux.ie \
--cc=alexandre.torgue@foss.st.com \
--cc=alexandre.torgue@st.com \
--cc=benjamin.gaignard@linaro.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=joe@perches.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=philippe.cornu@st.com \
--cc=raphael.gallais-pou@foss.st.com \
--cc=raphael.gallais-pou@st.com \
--cc=sam@ravnborg.org \
--cc=vincent.abriou@st.com \
--cc=yannick.fertre@foss.st.com \
--cc=yannick.fertre@st.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.