drm/rockchip: dw_hdmi: filter regulator -EPROBE_DEFER error messages
Subsystems (4)
PATCH 1/1 drm/rockchip: dw_hdmi: filter regulator -EPROBE_DEFER error messages
When the avdd-0v9 or avdd-1v8 supply are not yet available, EPROBE_DEFER is returned by rockchip_hdmi_parse_dt(). This causes the following error message to be printed multiple times:
dwhdmi-rockchip fe0a0000.hdmi: [drm:dw_hdmi_rockchip_bind [rockchipdrm]] *ERROR* Unable to parse OF data
Fix that by not printing the message when rockchip_hdmi_parse_dt() returns -EPROBE_DEFER.
--- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c +2 -1
@@ -565,7 +565,8 @@ static int dw_hdmi_rockchip_bind(struct device *dev, struct device *master, ret =rockchip_hdmi_parse_dt (hdmi);if (ret) { -DRM_DEV_ERROR (hdmi->dev,"Unable to parse OF data\n" ); +if (ret != -EPROBE_DEFER ) +DRM_DEV_ERROR (hdmi->dev,"Unable to parse OF data\n" );return ret; }
Signature · 7 lines
2.35.1 _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip
Ping?
Quoted 38 lines · Aurelien Jarno
When the avdd-0v9 or avdd-1v8 supply are not yet available,
EPROBE_DEFERis returned byrockchip_hdmi_parse_dt(). This causes the following error message to be printed multiple times:dwhdmi-rockchip fe0a0000.hdmi: [drm:dw_hdmi_rockchip_bind [rockchipdrm]] *ERROR* Unable to parse OF data
Fix that by not printing the message when
rockchip_hdmi_parse_dt()returns -EPROBE_DEFER.Fixes ca80c4eb4b01 ("drm/rockchip: dw_hdmi: add regulator support")Signed-off-by Aurelien Jarno <[email protected]>--- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c +2
-1@@ -565,7 +565,8 @@ static int dw_hdmi_rockchip_bind(struct device *dev, struct device *master, ret =rockchip_hdmi_parse_dt (hdmi);if (ret) { -DRM_DEV_ERROR (hdmi->dev,"Unable to parse OF data\n" ); +if (ret != -EPROBE_DEFER ) +DRM_DEV_ERROR (hdmi->dev,"Unable to parse OF data\n" );return ret; }Signature · 7 lines
2.35.1 _______________________________________________ Linux-rockchip mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-rockchip
Signature · 2 lines
Aurelien Jarno GPG: 4096R/1DDD8C9B [email protected] http://www.aurel32.net
Quoted 20 lines · Aurelien Jarno
When the avdd-0v9 or avdd-1v8 supply are not yet available,
EPROBE_DEFERis returned byrockchip_hdmi_parse_dt(). This causes the following error message to be printed multiple times:dwhdmi-rockchip fe0a0000.hdmi: [drm:dw_hdmi_rockchip_bind [rockchipdrm]] *ERROR* Unable to parse OF data
Fix that by not printing the message when
rockchip_hdmi_parse_dt()returns -EPROBE_DEFER.Fixes ca80c4eb4b01 ("drm/rockchip: dw_hdmi: add regulator support")Signed-off-by Aurelien Jarno <[email protected]>--- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c +0
-0
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c static int dw_hdmi_rockchip_bind(struct device *dev, struct device *master, · line 572
Quoted 9 lines
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c +2
-1@@ -565,7 +565,8 @@ static int dw_hdmi_rockchip_bind(struct device *dev, struct device *master, ret =rockchip_hdmi_parse_dt (hdmi);if (ret) { -DRM_DEV_ERROR (hdmi->dev,"Unable to parse OF data\n" ); +if (ret != -EPROBE_DEFER ) +DRM_DEV_ERROR (hdmi->dev,"Unable to parse OF data\n" );return ret; }
Nit: all the DRM_DEV_ERROR() usage in this function is inappropriate to me. These errors should be converted to dev_err_probe(), IMO.
Signature · 2 lines
Best regards, Dmitry
Quoted 20 lines · Aurelien Jarno
When the avdd-0v9 or avdd-1v8 supply are not yet available,
EPROBE_DEFERis returned byrockchip_hdmi_parse_dt(). This causes the following error message to be printed multiple times:dwhdmi-rockchip fe0a0000.hdmi: [drm:dw_hdmi_rockchip_bind [rockchipdrm]] *ERROR* Unable to parse OF data
Fix that by not printing the message when
rockchip_hdmi_parse_dt()returns -EPROBE_DEFER.Fixes ca80c4eb4b01 ("drm/rockchip: dw_hdmi: add regulator support")Signed-off-by Aurelien Jarno <[email protected]>--- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c +0
-0
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c static int dw_hdmi_rockchip_bind(struct device *dev, struct device *master, · line 569
Quoted 6 lines
drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c +2
-1@@ -565,7 +565,8 @@ static int dw_hdmi_rockchip_bind(struct device *dev, struct device *master, ret =rockchip_hdmi_parse_dt (hdmi);if (ret) { -DRM_DEV_ERROR (hdmi->dev,"Unable to parse OF data\n" ); +if (ret != -EPROBE_DEFER ) +DRM_DEV_ERROR (hdmi->dev,"Unable to parse OF data\n" );
Can we use dev_err_probe() here?
There's no DRM-specific variant, but that is already widely used across the DRM subsystem.
Quoted 10 lines · Aurelien Jarno
When the avdd-0v9 or avdd-1v8 supply are not yet available,
EPROBE_DEFERis returned byrockchip_hdmi_parse_dt(). This causes the following error message to be printed multiple times:dwhdmi-rockchip fe0a0000.hdmi: [drm:dw_hdmi_rockchip_bind [rockchipdrm]] *ERROR* Unable to parse OF data
Fix that by not printing the message when
rockchip_hdmi_parse_dt()returns -EPROBE_DEFER.[...]
Applied, thanks!
[1/1] drm/rockchip: dw_hdmi: filter regulator -EPROBE_DEFER error messages
commit: bfab00b94bd8569cdb84a6511d6615e6a8104e9c
Best regards,
Signature · 1 line
Heiko Stuebner <[email protected]>