Message ID | 20190726101849.27322-1-thierry.reding@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | video: Demote panel timing not found error message | expand |
Hi Thierry. On Fri, Jul 26, 2019 at 12:18:49PM +0200, Thierry Reding wrote: > From: Thierry Reding <treding@nvidia.com> > > Failing to find a panel-timing node is not an error in all cases, so do > not output an error message in that case. Instead turn it into a debug > message and make the drivers that care about it output an error message > of their own. This is more or less the same as already implmented by Douglas here: https://patchwork.kernel.org/cover/11053243/ Doug's has an extra bug-fix that we shall not miss. I am waiting for feedback from Bartlomiej before proceeding. I guess he is on holiday somewhere and will return soon. Sam > > Signed-off-by: Thierry Reding <treding@nvidia.com> > --- > drivers/gpu/drm/panel/panel-lvds.c | 4 +++- > drivers/video/fbdev/amba-clcd.c | 4 +++- > drivers/video/of_display_timing.c | 2 +- > 3 files changed, 7 insertions(+), 3 deletions(-) > > diff --git a/drivers/gpu/drm/panel/panel-lvds.c b/drivers/gpu/drm/panel/panel-lvds.c > index 1ec57d0806a8..7fcb3527c788 100644 > --- a/drivers/gpu/drm/panel/panel-lvds.c > +++ b/drivers/gpu/drm/panel/panel-lvds.c > @@ -147,8 +147,10 @@ static int panel_lvds_parse_dt(struct panel_lvds *lvds) > int ret; > > ret = of_get_display_timing(np, "panel-timing", &timing); > - if (ret < 0) > + if (ret < 0) { > + dev_err(lvds->dev, "%pOF: could not find panel timing\n", np); > return ret; > + } > > videomode_from_timing(&timing, &lvds->video_mode); > > diff --git a/drivers/video/fbdev/amba-clcd.c b/drivers/video/fbdev/amba-clcd.c > index 89324e42a033..13df898a3481 100644 > --- a/drivers/video/fbdev/amba-clcd.c > +++ b/drivers/video/fbdev/amba-clcd.c > @@ -561,8 +561,10 @@ static int clcdfb_of_get_dpi_panel_mode(struct device_node *node, > struct videomode video; > > err = of_get_display_timing(node, "panel-timing", &timing); > - if (err) > + if (err) { > + pr_err("%pOF: could not find panel timing\n", node); > return err; > + } > > videomode_from_timing(&timing, &video); > > diff --git a/drivers/video/of_display_timing.c b/drivers/video/of_display_timing.c > index f5c1c469c0af..9385b518349f 100644 > --- a/drivers/video/of_display_timing.c > +++ b/drivers/video/of_display_timing.c > @@ -125,7 +125,7 @@ int of_get_display_timing(const struct device_node *np, const char *name, > > timing_np = of_get_child_by_name(np, name); > if (!timing_np) { > - pr_err("%pOF: could not find node '%s'\n", np, name); > + pr_debug("%pOF: could not find node '%s'\n", np, name); > return -ENOENT; > } > > -- > 2.22.0 > > _______________________________________________ > dri-devel mailing list > dri-devel@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/dri-devel
Hi Sam, On 7/26/19 1:36 PM, Sam Ravnborg wrote: > Hi Thierry. > > On Fri, Jul 26, 2019 at 12:18:49PM +0200, Thierry Reding wrote: >> From: Thierry Reding <treding@nvidia.com> >> >> Failing to find a panel-timing node is not an error in all cases, so do >> not output an error message in that case. Instead turn it into a debug >> message and make the drivers that care about it output an error message >> of their own. > > This is more or less the same as already implmented by Douglas here: > https://patchwork.kernel.org/cover/11053243/ > > Doug's has an extra bug-fix that we shall not miss. > > I am waiting for feedback from Bartlomiej before proceeding. The patchset is in drm-misc-next tree now. > I guess he is on holiday somewhere and will return soon. I wish it was the case. ;-) I've just been busy with other things (the patchset has been posted just few days ago and the issue addressed is not critical). PS When I go on holidays I set automatic out of office reply and also announce it on the mailing-list (for longer holidays). Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics > Sam > >> >> Signed-off-by: Thierry Reding <treding@nvidia.com> >> --- >> drivers/gpu/drm/panel/panel-lvds.c | 4 +++- >> drivers/video/fbdev/amba-clcd.c | 4 +++- >> drivers/video/of_display_timing.c | 2 +- >> 3 files changed, 7 insertions(+), 3 deletions(-) >> >> diff --git a/drivers/gpu/drm/panel/panel-lvds.c b/drivers/gpu/drm/panel/panel-lvds.c >> index 1ec57d0806a8..7fcb3527c788 100644 >> --- a/drivers/gpu/drm/panel/panel-lvds.c >> +++ b/drivers/gpu/drm/panel/panel-lvds.c >> @@ -147,8 +147,10 @@ static int panel_lvds_parse_dt(struct panel_lvds *lvds) >> int ret; >> >> ret = of_get_display_timing(np, "panel-timing", &timing); >> - if (ret < 0) >> + if (ret < 0) { >> + dev_err(lvds->dev, "%pOF: could not find panel timing\n", np); >> return ret; >> + } >> >> videomode_from_timing(&timing, &lvds->video_mode); >> >> diff --git a/drivers/video/fbdev/amba-clcd.c b/drivers/video/fbdev/amba-clcd.c >> index 89324e42a033..13df898a3481 100644 >> --- a/drivers/video/fbdev/amba-clcd.c >> +++ b/drivers/video/fbdev/amba-clcd.c >> @@ -561,8 +561,10 @@ static int clcdfb_of_get_dpi_panel_mode(struct device_node *node, >> struct videomode video; >> >> err = of_get_display_timing(node, "panel-timing", &timing); >> - if (err) >> + if (err) { >> + pr_err("%pOF: could not find panel timing\n", node); >> return err; >> + } >> >> videomode_from_timing(&timing, &video); >> >> diff --git a/drivers/video/of_display_timing.c b/drivers/video/of_display_timing.c >> index f5c1c469c0af..9385b518349f 100644 >> --- a/drivers/video/of_display_timing.c >> +++ b/drivers/video/of_display_timing.c >> @@ -125,7 +125,7 @@ int of_get_display_timing(const struct device_node *np, const char *name, >> >> timing_np = of_get_child_by_name(np, name); >> if (!timing_np) { >> - pr_err("%pOF: could not find node '%s'\n", np, name); >> + pr_debug("%pOF: could not find node '%s'\n", np, name); >> return -ENOENT; >> } >> >> -- >> 2.22.0
Hi Bartlomiej Zolnierkiewicz > > Hi Sam, > > On 7/26/19 1:36 PM, Sam Ravnborg wrote: > > Hi Thierry. > > > > On Fri, Jul 26, 2019 at 12:18:49PM +0200, Thierry Reding wrote: > >> From: Thierry Reding <treding@nvidia.com> > >> > >> Failing to find a panel-timing node is not an error in all cases, so do > >> not output an error message in that case. Instead turn it into a debug > >> message and make the drivers that care about it output an error message > >> of their own. > > > > This is more or less the same as already implmented by Douglas here: > > https://patchwork.kernel.org/cover/11053243/ > > > > Doug's has an extra bug-fix that we shall not miss. > > > > I am waiting for feedback from Bartlomiej before proceeding. > > The patchset is in drm-misc-next tree now. > > > I guess he is on holiday somewhere and will return soon. > > I wish it was the case. ;-) Well, too hot here for work atm. But the farmers are happy. Can you maybe find time to respond to this patch: https://lists.freedesktop.org/archives/dri-devel/2019-July/228051.html It already got ack from backligt people, but as it touches fbdev your feedback is required too. Thanks, Sam
On 7/26/19 5:32 PM, Sam Ravnborg wrote: > Hi Bartlomiej Zolnierkiewicz >> >> Hi Sam, >> >> On 7/26/19 1:36 PM, Sam Ravnborg wrote: >>> Hi Thierry. >>> >>> On Fri, Jul 26, 2019 at 12:18:49PM +0200, Thierry Reding wrote: >>>> From: Thierry Reding <treding@nvidia.com> >>>> >>>> Failing to find a panel-timing node is not an error in all cases, so do >>>> not output an error message in that case. Instead turn it into a debug >>>> message and make the drivers that care about it output an error message >>>> of their own. >>> >>> This is more or less the same as already implmented by Douglas here: >>> https://patchwork.kernel.org/cover/11053243/ >>> >>> Doug's has an extra bug-fix that we shall not miss. >>> >>> I am waiting for feedback from Bartlomiej before proceeding. >> >> The patchset is in drm-misc-next tree now. >> >>> I guess he is on holiday somewhere and will return soon. >> >> I wish it was the case. ;-) > Well, too hot here for work atm. But the farmers are happy. > > Can you maybe find time to respond to this patch: > https://lists.freedesktop.org/archives/dri-devel/2019-July/228051.html > > It already got ack from backligt people, but as it touches fbdev > your feedback is required too. LGTM. I've just posted my ACK in the reply to the patch. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics
diff --git a/drivers/gpu/drm/panel/panel-lvds.c b/drivers/gpu/drm/panel/panel-lvds.c index 1ec57d0806a8..7fcb3527c788 100644 --- a/drivers/gpu/drm/panel/panel-lvds.c +++ b/drivers/gpu/drm/panel/panel-lvds.c @@ -147,8 +147,10 @@ static int panel_lvds_parse_dt(struct panel_lvds *lvds) int ret; ret = of_get_display_timing(np, "panel-timing", &timing); - if (ret < 0) + if (ret < 0) { + dev_err(lvds->dev, "%pOF: could not find panel timing\n", np); return ret; + } videomode_from_timing(&timing, &lvds->video_mode); diff --git a/drivers/video/fbdev/amba-clcd.c b/drivers/video/fbdev/amba-clcd.c index 89324e42a033..13df898a3481 100644 --- a/drivers/video/fbdev/amba-clcd.c +++ b/drivers/video/fbdev/amba-clcd.c @@ -561,8 +561,10 @@ static int clcdfb_of_get_dpi_panel_mode(struct device_node *node, struct videomode video; err = of_get_display_timing(node, "panel-timing", &timing); - if (err) + if (err) { + pr_err("%pOF: could not find panel timing\n", node); return err; + } videomode_from_timing(&timing, &video); diff --git a/drivers/video/of_display_timing.c b/drivers/video/of_display_timing.c index f5c1c469c0af..9385b518349f 100644 --- a/drivers/video/of_display_timing.c +++ b/drivers/video/of_display_timing.c @@ -125,7 +125,7 @@ int of_get_display_timing(const struct device_node *np, const char *name, timing_np = of_get_child_by_name(np, name); if (!timing_np) { - pr_err("%pOF: could not find node '%s'\n", np, name); + pr_debug("%pOF: could not find node '%s'\n", np, name); return -ENOENT; }