drm/st7735r: Avoid spamming logs if probe is deferred
Subsystems (6)
PATCH 1/7 drm/st7735r: Avoid spamming logs if probe is deferred
The GPIO request can fail and probe may be deferred. Thus, the error message may be printed again and again. Avoid this by replacing DRM_DEV_ERROR() by dev_err_probe().
--- drivers/gpu/drm/tiny/st7735r.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)
drivers/gpu/drm/tiny/st7735r.c +4 -8
@@ -207,16 +207,12 @@ static int st7735r_probe(struct spi_device *spi) drm = &dbidev->drm; dbi->reset =devm_gpiod_get (dev,"reset" ,GPIOD_OUT_HIGH ); -if (IS_ERR (dbi->reset)) { -DRM_DEV_ERROR (dev,"Failed to get gpio 'reset'\n" ); -return PTR_ERR (dbi->reset); - } +if (IS_ERR (dbi->reset)) +return dev_err_probe (dev,PTR_ERR (dbi->reset),"Failed to get GPIO 'reset'\n" ); dc =devm_gpiod_get (dev,"dc" ,GPIOD_OUT_LOW ); -if (IS_ERR (dc)) { -DRM_DEV_ERROR (dev,"Failed to get gpio 'dc'\n" ); -return PTR_ERR (dc); - } +if (IS_ERR (dc)) +return dev_err_probe (dev,PTR_ERR (dc),"Failed to get GPIO 'dc'\n" ); dbidev->backlight =devm_of_find_backlight (dev);if (IS_ERR (dbidev->backlight))
Signature · 1 line
2.30.2
PATCH 2/7 drm/st7586: Avoid spamming logs if probe is deferred
The GPIO request can fail and probe may be deferred. Thus, the error message may be printed again and again. Avoid this by replacing DRM_DEV_ERROR() by dev_err_probe().
--- drivers/gpu/drm/tiny/st7586.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)
drivers/gpu/drm/tiny/st7586.c +4 -8
@@ -323,16 +323,12 @@ static int st7586_probe(struct spi_device *spi) bufsize = (st7586_mode.vdisplay +2 ) /3 * st7586_mode.hdisplay; dbi->reset =devm_gpiod_get (dev,"reset" ,GPIOD_OUT_HIGH ); -if (IS_ERR (dbi->reset)) { -DRM_DEV_ERROR (dev,"Failed to get gpio 'reset'\n" ); -return PTR_ERR (dbi->reset); - } +if (IS_ERR (dbi->reset)) +return dev_err_probe (dev,PTR_ERR (dbi->reset),"Failed to get GPIO 'reset'\n" ); a0 =devm_gpiod_get (dev,"a0" ,GPIOD_OUT_LOW ); -if (IS_ERR (a0)) { -DRM_DEV_ERROR (dev,"Failed to get gpio 'a0'\n" ); -return PTR_ERR (a0); - } +if (IS_ERR (a0)) +return dev_err_probe (dev,PTR_ERR (a0),"Failed to get GPIO 'a0'\n" );device_property_read_u32 (dev,"rotation" , &rotation);
Signature · 6 lines
2.30.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 3/7 drm/mi0283qt: Avoid spamming logs if probe is deferred
In reply to Andy ShevchenkoThe GPIO request can fail and probe may be deferred. Thus, the error message may be printed again and again. Avoid this by replacing DRM_DEV_ERROR() by dev_err_probe().
--- drivers/gpu/drm/tiny/mi0283qt.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)
drivers/gpu/drm/tiny/mi0283qt.c +4 -8
@@ -196,16 +196,12 @@ static int mi0283qt_probe(struct spi_device *spi) drm = &dbidev->drm; dbi->reset =devm_gpiod_get_optional (dev,"reset" ,GPIOD_OUT_HIGH ); -if (IS_ERR (dbi->reset)) { -DRM_DEV_ERROR (dev,"Failed to get gpio 'reset'\n" ); -return PTR_ERR (dbi->reset); - } +if (IS_ERR (dbi->reset)) +return dev_err_probe (dev,PTR_ERR (dbi->reset),"Failed to get GPIO 'reset'\n" ); dc =devm_gpiod_get_optional (dev,"dc" ,GPIOD_OUT_LOW ); -if (IS_ERR (dc)) { -DRM_DEV_ERROR (dev,"Failed to get gpio 'dc'\n" ); -return PTR_ERR (dc); - } +if (IS_ERR (dc)) +return dev_err_probe (dev,PTR_ERR (dc),"Failed to get GPIO 'dc'\n" ); dbidev->regulator =devm_regulator_get (dev,"power" );if (IS_ERR (dbidev->regulator))
Signature · 6 lines
2.30.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 4/7 drm/ili9486: Avoid spamming logs if probe is deferred
In reply to Andy ShevchenkoThe GPIO request can fail and probe may be deferred. Thus, the error message may be printed again and again. Avoid this by replacing DRM_DEV_ERROR() by dev_err_probe().
--- drivers/gpu/drm/tiny/ili9486.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)
drivers/gpu/drm/tiny/ili9486.c +4 -8
@@ -206,16 +206,12 @@ static int ili9486_probe(struct spi_device *spi) drm = &dbidev->drm; dbi->reset =devm_gpiod_get (dev,"reset" ,GPIOD_OUT_HIGH ); -if (IS_ERR (dbi->reset)) { -DRM_DEV_ERROR (dev,"Failed to get gpio 'reset'\n" ); -return PTR_ERR (dbi->reset); - } +if (IS_ERR (dbi->reset)) +return dev_err_probe (dev,PTR_ERR (dbi->reset),"Failed to get GPIO 'reset'\n" ); dc =devm_gpiod_get (dev,"dc" ,GPIOD_OUT_LOW ); -if (IS_ERR (dc)) { -DRM_DEV_ERROR (dev,"Failed to get gpio 'dc'\n" ); -return PTR_ERR (dc); - } +if (IS_ERR (dc)) +return dev_err_probe (dev,PTR_ERR (dc),"Failed to get GPIO 'dc'\n" ); dbidev->backlight =devm_of_find_backlight (dev);if (IS_ERR (dbidev->backlight))
Signature · 1 line
2.30.2
PATCH 5/7 drm/ili9341: Avoid spamming logs if probe is deferred
In reply to Andy ShevchenkoThe GPIO request can fail and probe may be deferred. Thus, the error message may be printed again and again. Avoid this by replacing DRM_DEV_ERROR() by dev_err_probe().
--- drivers/gpu/drm/tiny/ili9341.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)
drivers/gpu/drm/tiny/ili9341.c +4 -8
@@ -192,16 +192,12 @@ static int ili9341_probe(struct spi_device *spi) drm = &dbidev->drm; dbi->reset =devm_gpiod_get_optional (dev,"reset" ,GPIOD_OUT_HIGH ); -if (IS_ERR (dbi->reset)) { -DRM_DEV_ERROR (dev,"Failed to get gpio 'reset'\n" ); -return PTR_ERR (dbi->reset); - } +if (IS_ERR (dbi->reset)) +return dev_err_probe (dev,PTR_ERR (dbi->reset),"Failed to get GPIO 'reset'\n" ); dc =devm_gpiod_get_optional (dev,"dc" ,GPIOD_OUT_LOW ); -if (IS_ERR (dc)) { -DRM_DEV_ERROR (dev,"Failed to get gpio 'dc'\n" ); -return PTR_ERR (dc); - } +if (IS_ERR (dc)) +return dev_err_probe (dev,PTR_ERR (dc),"Failed to get GPIO 'dc'\n" ); dbidev->backlight =devm_of_find_backlight (dev);if (IS_ERR (dbidev->backlight))
Signature · 6 lines
2.30.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 6/7 drm/ili9225: Avoid spamming logs if probe is deferred
In reply to Andy ShevchenkoThe GPIO request can fail and probe may be deferred. Thus, the error message may be printed again and again. Avoid this by replacing DRM_DEV_ERROR() by dev_err_probe().
--- drivers/gpu/drm/tiny/ili9225.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-)
drivers/gpu/drm/tiny/ili9225.c +4 -8
@@ -379,16 +379,12 @@ static int ili9225_probe(struct spi_device *spi) drm = &dbidev->drm; dbi->reset =devm_gpiod_get (dev,"reset" ,GPIOD_OUT_HIGH ); -if (IS_ERR (dbi->reset)) { -DRM_DEV_ERROR (dev,"Failed to get gpio 'reset'\n" ); -return PTR_ERR (dbi->reset); - } +if (IS_ERR (dbi->reset)) +return dev_err_probe (dev,PTR_ERR (dbi->reset),"Failed to get GPIO 'reset'\n" ); rs =devm_gpiod_get (dev,"rs" ,GPIOD_OUT_LOW ); -if (IS_ERR (rs)) { -DRM_DEV_ERROR (dev,"Failed to get gpio 'rs'\n" ); -return PTR_ERR (rs); - } +if (IS_ERR (rs)) +return dev_err_probe (dev,PTR_ERR (rs),"Failed to get GPIO 'rs'\n" );device_property_read_u32 (dev,"rotation" , &rotation);
Signature · 6 lines
2.30.2 _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 7/7 drm/hx8357d: Avoid spamming logs if probe is deferred
In reply to Andy ShevchenkoThe GPIO request can fail and probe may be deferred. Thus, the error message may be printed again and again. Avoid this by replacing DRM_DEV_ERROR() by dev_err_probe().
--- drivers/gpu/drm/tiny/hx8357d.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/tiny/hx8357d.c +2 -4
@@ -234,10 +234,8 @@ static int hx8357d_probe(struct spi_device *spi) drm = &dbidev->drm; dc =devm_gpiod_get (dev,"dc" ,GPIOD_OUT_LOW ); -if (IS_ERR (dc)) { -DRM_DEV_ERROR (dev,"Failed to get gpio 'dc'\n" ); -return PTR_ERR (dc); - } +if (IS_ERR (dc)) +return dev_err_probe (dev,PTR_ERR (dc),"Failed to get GPIO 'dc'\n" ); dbidev->backlight =devm_of_find_backlight (dev);if (IS_ERR (dbidev->backlight))
Signature · 1 line
2.30.2
Den 21.04.2021 18.31, skrev Andy Shevchenko:
Quoted 6 lines
The GPIO request can fail and probe may be deferred. Thus, the error message may be printed again and again. Avoid this by replacing
DRM_DEV_ERROR()bydev_err_probe().Signed-off-by Andy Shevchenko <[email protected]>---
Series is applied to drm-misc-next.
Thanks,
Noralf.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel