OMAPDSS: Return right error during connector probe
PATCH 1/1 OMAPDSS: Return right error during connector probe
While using HDMI connector driver with sil9022 encoder came across issue where connector driver is probed first. This resulted in error. A deffered probe solved this. Most connector drivers need a encoder driver as their video source. This patch ensures we do a probe defferal if video source is not present for connector drivers.
--- .../video/omap2/displays-new/connector-analog-tv.c | 2 +- drivers/video/omap2/displays-new/connector-dvi.c | 2 +- drivers/video/omap2/displays-new/connector-hdmi.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/video/omap2/displays-new/connector-analog-tv.c +1 -1
@@ -177,7 +177,7 @@ static int tvc_probe_pdata(struct platform_device *pdev) in =omap_dss_find_output (pdata->source);if (in ==NULL ) {dev_err (&pdev->dev,"Failed to find video source\n" ); -return -ENODEV ; +return -EPROBE_DEFER ; } ddata->in = in;
drivers/video/omap2/displays-new/connector-dvi.c +1 -1
@@ -263,7 +263,7 @@ static int dvic_probe_pdata(struct platform_device *pdev) in =omap_dss_find_output (pdata->source);if (in ==NULL ) {dev_err (&pdev->dev,"Failed to find video source\n" ); -return -ENODEV ; +return -EPROBE_DEFER ; } ddata->in = in;
drivers/video/omap2/displays-new/connector-hdmi.c +1 -1
@@ -290,7 +290,7 @@ static int hdmic_probe_pdata(struct platform_device *pdev) in =omap_dss_find_output (pdata->source);if (in ==NULL ) {dev_err (&pdev->dev,"Failed to find video source\n" ); -return -ENODEV ; +return -EPROBE_DEFER ; } ddata->in = in;
Signature · 1 line
1.7.9.5
Quoted 8 lines · Sathya Prakash M R
While using HDMI connector driver with sil9022 encoder came across issue where connector driver is probed first. This resulted in error. A deffered probe solved this. Most connector drivers need a encoder driver as their video source. This patch ensures we do a probe defferal if video source is not present for connector drivers.
Signed-off-by Sathya Prakash M R <[email protected]>
Thanks, applying to 3.12 fixes.
Tomi