* [PATCH 0/2 v2] drm: rcar-du: EPROBE_DEFER case doesn't need error message
@ 2016-05-25 0:38 ` Kuninori Morimoto
0 siblings, 0 replies; 15+ messages in thread
From: Kuninori Morimoto @ 2016-05-25 0:38 UTC (permalink / raw)
To: Laurent Pinchart, David Airlie
Cc: dri-devel, linux-renesas-soc, linux-kernel, koji.matsuoka.xm,
yoshihiro.shimoda.uh, naoya.shiiba.nx, ryo.kodama.vz,
hiroyuki.yokoyama.vx, yoshifumi.hosoya.wj, takeshi.kihara.df,
toshiaki.komatsu.ud, harunobu.kurokawa.dn, ryusuke.sakato.bx,
tomoharu.fukawa.eb, kouei.abe.cp, khiem.nguyen.xt, hien.dang.eb
Hi David, Laurent
These removes unneeded error message from Renesas DU driver.
Current this unneeded error message makes user confuse.
Kuninori Morimoto (2):
drm: rcar-du: error message is not needed for drm_vblank_init()
drm: rcar-du: error message is not needed for EPROBE_DEFER
drivers/gpu/drm/rcar-du/rcar_du_drv.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
^ permalink raw reply [flat|nested] 15+ messages in thread* [PATCH 1/2 v2] drm: rcar-du: error message is not needed for drm_vblank_init()
2016-05-25 0:38 ` Kuninori Morimoto
@ 2016-05-25 0:40 ` Kuninori Morimoto
-1 siblings, 0 replies; 15+ messages in thread
From: Kuninori Morimoto @ 2016-05-25 0:40 UTC (permalink / raw)
To: Laurent Pinchart, David Airlie
Cc: dri-devel, linux-renesas-soc, linux-kernel, koji.matsuoka.xm,
yoshihiro.shimoda.uh, naoya.shiiba.nx, ryo.kodama.vz,
hiroyuki.yokoyama.vx, yoshifumi.hosoya.wj, takeshi.kihara.df,
toshiaki.komatsu.ud, harunobu.kurokawa.dn, ryusuke.sakato.bx,
tomoharu.fukawa.eb, kouei.abe.cp, khiem.nguyen.xt, hien.dang.eb
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
The only reason drm_vblank_init() could return an error at the
moment is a kcalloc() failure.
So we can remove current error message completely.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
v1 -> v2
- just removed error message
drivers/gpu/drm/rcar-du/rcar_du_drv.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.c b/drivers/gpu/drm/rcar-du/rcar_du_drv.c
index 26fd3ba..786f5d6 100644
--- a/drivers/gpu/drm/rcar-du/rcar_du_drv.c
+++ b/drivers/gpu/drm/rcar-du/rcar_du_drv.c
@@ -353,10 +353,8 @@ static int rcar_du_probe(struct platform_device *pdev)
* disabled for all CRTCs.
*/
ret = drm_vblank_init(ddev, (1 << rcdu->info->num_crtcs) - 1);
- if (ret < 0) {
- dev_err(&pdev->dev, "failed to initialize vblank\n");
+ if (ret < 0)
goto error;
- }
/* DRM/KMS objects */
ret = rcar_du_modeset_init(rcdu);
--
1.9.1
^ permalink raw reply related [flat|nested] 15+ messages in thread* [PATCH 1/2 v2] drm: rcar-du: error message is not needed for drm_vblank_init()
@ 2016-05-25 0:40 ` Kuninori Morimoto
0 siblings, 0 replies; 15+ messages in thread
From: Kuninori Morimoto @ 2016-05-25 0:40 UTC (permalink / raw)
To: Laurent Pinchart, David Airlie
Cc: dri-devel, linux-renesas-soc, linux-kernel, koji.matsuoka.xm,
yoshihiro.shimoda.uh, naoya.shiiba.nx, ryo.kodama.vz,
hiroyuki.yokoyama.vx, yoshifumi.hosoya.wj, takeshi.kihara.df,
toshiaki.komatsu.ud, harunobu.kurokawa.dn, ryusuke.sakato.bx,
tomoharu.fukawa.eb, kouei.abe.cp, khiem.nguyen.xt, hien.dang.eb
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
The only reason drm_vblank_init() could return an error at the
moment is a kcalloc() failure.
So we can remove current error message completely.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
v1 -> v2
- just removed error message
drivers/gpu/drm/rcar-du/rcar_du_drv.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.c b/drivers/gpu/drm/rcar-du/rcar_du_drv.c
index 26fd3ba..786f5d6 100644
--- a/drivers/gpu/drm/rcar-du/rcar_du_drv.c
+++ b/drivers/gpu/drm/rcar-du/rcar_du_drv.c
@@ -353,10 +353,8 @@ static int rcar_du_probe(struct platform_device *pdev)
* disabled for all CRTCs.
*/
ret = drm_vblank_init(ddev, (1 << rcdu->info->num_crtcs) - 1);
- if (ret < 0) {
- dev_err(&pdev->dev, "failed to initialize vblank\n");
+ if (ret < 0)
goto error;
- }
/* DRM/KMS objects */
ret = rcar_du_modeset_init(rcdu);
--
1.9.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 2/2 v2] drm: rcar-du: error message is not needed for EPROBE_DEFER
2016-05-25 0:38 ` Kuninori Morimoto
@ 2016-05-25 0:41 ` Kuninori Morimoto
-1 siblings, 0 replies; 15+ messages in thread
From: Kuninori Morimoto @ 2016-05-25 0:41 UTC (permalink / raw)
To: Laurent Pinchart, David Airlie
Cc: dri-devel, linux-renesas-soc, linux-kernel, koji.matsuoka.xm,
yoshihiro.shimoda.uh, naoya.shiiba.nx, ryo.kodama.vz,
hiroyuki.yokoyama.vx, yoshifumi.hosoya.wj, takeshi.kihara.df,
toshiaki.komatsu.ud, harunobu.kurokawa.dn, ryusuke.sakato.bx,
tomoharu.fukawa.eb, kouei.abe.cp, khiem.nguyen.xt, hien.dang.eb
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
EPROBE_DEFER is not error, thus, error message on kernel log on this
case is confusable. Print it only error cases
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
v1 -> v2
- only for rcar_du_modeset_init()
drivers/gpu/drm/rcar-du/rcar_du_drv.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.c b/drivers/gpu/drm/rcar-du/rcar_du_drv.c
index 786f5d6..cf2698e 100644
--- a/drivers/gpu/drm/rcar-du/rcar_du_drv.c
+++ b/drivers/gpu/drm/rcar-du/rcar_du_drv.c
@@ -359,7 +359,8 @@ static int rcar_du_probe(struct platform_device *pdev)
/* DRM/KMS objects */
ret = rcar_du_modeset_init(rcdu);
if (ret < 0) {
- dev_err(&pdev->dev, "failed to initialize DRM/KMS (%d)\n", ret);
+ if (ret != -EPROBE_DEFER)
+ dev_err(&pdev->dev, "failed to initialize DRM/KMS (%d)\n", ret);
goto error;
}
--
1.9.1
^ permalink raw reply related [flat|nested] 15+ messages in thread* [PATCH 2/2 v2] drm: rcar-du: error message is not needed for EPROBE_DEFER
@ 2016-05-25 0:41 ` Kuninori Morimoto
0 siblings, 0 replies; 15+ messages in thread
From: Kuninori Morimoto @ 2016-05-25 0:41 UTC (permalink / raw)
To: Laurent Pinchart, David Airlie
Cc: dri-devel, linux-renesas-soc, linux-kernel, koji.matsuoka.xm,
yoshihiro.shimoda.uh, naoya.shiiba.nx, ryo.kodama.vz,
hiroyuki.yokoyama.vx, yoshifumi.hosoya.wj, takeshi.kihara.df,
toshiaki.komatsu.ud, harunobu.kurokawa.dn, ryusuke.sakato.bx,
tomoharu.fukawa.eb, kouei.abe.cp, khiem.nguyen.xt, hien.dang.eb
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
EPROBE_DEFER is not error, thus, error message on kernel log on this
case is confusable. Print it only error cases
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
v1 -> v2
- only for rcar_du_modeset_init()
drivers/gpu/drm/rcar-du/rcar_du_drv.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/rcar-du/rcar_du_drv.c b/drivers/gpu/drm/rcar-du/rcar_du_drv.c
index 786f5d6..cf2698e 100644
--- a/drivers/gpu/drm/rcar-du/rcar_du_drv.c
+++ b/drivers/gpu/drm/rcar-du/rcar_du_drv.c
@@ -359,7 +359,8 @@ static int rcar_du_probe(struct platform_device *pdev)
/* DRM/KMS objects */
ret = rcar_du_modeset_init(rcdu);
if (ret < 0) {
- dev_err(&pdev->dev, "failed to initialize DRM/KMS (%d)\n", ret);
+ if (ret != -EPROBE_DEFER)
+ dev_err(&pdev->dev, "failed to initialize DRM/KMS (%d)\n", ret);
goto error;
}
--
1.9.1
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH 0/2 v2] drm: rcar-du: EPROBE_DEFER case doesn't need error message
2016-05-25 0:38 ` Kuninori Morimoto
@ 2016-06-09 3:03 ` Kuninori Morimoto
-1 siblings, 0 replies; 15+ messages in thread
From: Kuninori Morimoto @ 2016-06-09 3:03 UTC (permalink / raw)
To: Kuninori Morimoto
Cc: Laurent Pinchart, David Airlie, dri-devel, linux-renesas-soc,
linux-kernel, koji.matsuoka.xm, yoshihiro.shimoda.uh,
naoya.shiiba.nx, ryo.kodama.vz, hiroyuki.yokoyama.vx,
yoshifumi.hosoya.wj, takeshi.kihara.df, toshiaki.komatsu.ud,
harunobu.kurokawa.dn, ryusuke.sakato.bx, tomoharu.fukawa.eb,
kouei.abe.cp, khiem.nguyen.xt, hien.dang.eb
Hi David
ping ?
> These removes unneeded error message from Renesas DU driver.
> Current this unneeded error message makes user confuse.
>
> Kuninori Morimoto (2):
> drm: rcar-du: error message is not needed for drm_vblank_init()
> drm: rcar-du: error message is not needed for EPROBE_DEFER
>
> drivers/gpu/drm/rcar-du/rcar_du_drv.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 0/2 v2] drm: rcar-du: EPROBE_DEFER case doesn't need error message
@ 2016-06-09 3:03 ` Kuninori Morimoto
0 siblings, 0 replies; 15+ messages in thread
From: Kuninori Morimoto @ 2016-06-09 3:03 UTC (permalink / raw)
To: Kuninori Morimoto
Cc: Laurent Pinchart, David Airlie, dri-devel, linux-renesas-soc,
linux-kernel, koji.matsuoka.xm, yoshihiro.shimoda.uh,
naoya.shiiba.nx, ryo.kodama.vz, hiroyuki.yokoyama.vx,
yoshifumi.hosoya.wj, takeshi.kihara.df, toshiaki.komatsu.ud,
harunobu.kurokawa.dn, ryusuke.sakato.bx, tomoharu.fukawa.eb,
kouei.abe.cp, khiem.nguyen.xt, hien.dang.eb
Hi David
ping ?
> These removes unneeded error message from Renesas DU driver.
> Current this unneeded error message makes user confuse.
>
> Kuninori Morimoto (2):
> drm: rcar-du: error message is not needed for drm_vblank_init()
> drm: rcar-du: error message is not needed for EPROBE_DEFER
>
> drivers/gpu/drm/rcar-du/rcar_du_drv.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
>
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 0/2 v2] drm: rcar-du: EPROBE_DEFER case doesn't need error message
2016-05-25 0:38 ` Kuninori Morimoto
@ 2016-06-10 21:07 ` Laurent Pinchart
-1 siblings, 0 replies; 15+ messages in thread
From: Laurent Pinchart @ 2016-06-10 21:07 UTC (permalink / raw)
To: Kuninori Morimoto
Cc: David Airlie, dri-devel, linux-renesas-soc, linux-kernel,
koji.matsuoka.xm, yoshihiro.shimoda.uh, naoya.shiiba.nx,
ryo.kodama.vz, hiroyuki.yokoyama.vx, yoshifumi.hosoya.wj,
takeshi.kihara.df, toshiaki.komatsu.ud, harunobu.kurokawa.dn,
ryusuke.sakato.bx, tomoharu.fukawa.eb, kouei.abe.cp,
khiem.nguyen.xt, hien.dang.eb
Hi Morimoto-san,
On Wednesday 25 May 2016 00:38:48 Kuninori Morimoto wrote:
> Hi David, Laurent
>
> These removes unneeded error message from Renesas DU driver.
> Current this unneeded error message makes user confuse.
Thank you for the patches. For both of them,
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
I've applied them to my tree and include them in my next pull request.
> Kuninori Morimoto (2):
> drm: rcar-du: error message is not needed for drm_vblank_init()
> drm: rcar-du: error message is not needed for EPROBE_DEFER
>
> drivers/gpu/drm/rcar-du/rcar_du_drv.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: [PATCH 0/2 v2] drm: rcar-du: EPROBE_DEFER case doesn't need error message
@ 2016-06-10 21:07 ` Laurent Pinchart
0 siblings, 0 replies; 15+ messages in thread
From: Laurent Pinchart @ 2016-06-10 21:07 UTC (permalink / raw)
To: Kuninori Morimoto
Cc: tomoharu.fukawa.eb, takeshi.kihara.df, naoya.shiiba.nx,
yoshihiro.shimoda.uh, ryusuke.sakato.bx, linux-kernel, dri-devel,
koji.matsuoka.xm, linux-renesas-soc, yoshifumi.hosoya.wj,
hiroyuki.yokoyama.vx, toshiaki.komatsu.ud, khiem.nguyen.xt,
hien.dang.eb, harunobu.kurokawa.dn, kouei.abe.cp, ryo.kodama.vz
Hi Morimoto-san,
On Wednesday 25 May 2016 00:38:48 Kuninori Morimoto wrote:
> Hi David, Laurent
>
> These removes unneeded error message from Renesas DU driver.
> Current this unneeded error message makes user confuse.
Thank you for the patches. For both of them,
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
I've applied them to my tree and include them in my next pull request.
> Kuninori Morimoto (2):
> drm: rcar-du: error message is not needed for drm_vblank_init()
> drm: rcar-du: error message is not needed for EPROBE_DEFER
>
> drivers/gpu/drm/rcar-du/rcar_du_drv.c | 7 +++----
> 1 file changed, 3 insertions(+), 4 deletions(-)
--
Regards,
Laurent Pinchart
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
^ permalink raw reply [flat|nested] 15+ messages in thread