MLK-13859: video: mxc: mipi dsi: don't print errors on EPROBE_DEFER
authorOctavian Purdila <octavian.purdila@nxp.com>
Fri, 3 Feb 2017 13:41:08 +0000 (15:41 +0200)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:58:09 +0000 (14:58 -0500)
The device may fail to reset with EPROBE_DEFER because of the
initialization order between the mipi and the mipi gpio reset
drivers. This is not an error, since the probe will be later retried
and eventually will succeed.

Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
drivers/video/fbdev/mxc/mipi_dsi.c

index 3e78a53..d17d19a 100644 (file)
@@ -872,7 +872,8 @@ static int mipi_dsi_probe(struct platform_device *pdev)
 
        ret = device_reset(&pdev->dev);
        if (ret) {
-               dev_err(&pdev->dev, "failed to reset: %d\n", ret);
+               if (ret != -EPROBE_DEFER)
+                       dev_err(&pdev->dev, "failed to reset: %d\n", ret);
                goto dev_reset_fail;
        }