Message ID | 52A2A3EF.1030306@collabora.co.uk (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 2013-12-07 06:28, Javier Martinez Canillas wrote: > Actually, I looked at drivers/video/omap2/connector-dvi.c and it does the right > thing for legacy platform data probing but no for DT probing: > > static int dvic_probe_pdata(struct platform_device *pdev) > { > .. > adapter = i2c_get_adapter(i2c_bus_num); > if (!adapter) { > dev_err(&pdev->dev, > "Failed to get I2C adapter, bus %d\n", > i2c_bus_num); > return -EPROBE_DEFER; > } > .. > } > > static int dvic_probe_of(struct platform_device *pdev) > { > .. > adapter = of_find_i2c_adapter_by_node(adapter_node); > if (adapter == NULL) { > dev_err(&pdev->dev, "failed to parse i2c-bus\n"); > omap_dss_put_device(ddata->in); > return -EINVAL; > } > .. > } > > The following patch solves the issue if you want to include in your patch-set: Thanks, I'll add this and the omap3-igep0020 support to my DT branch. Tomi
On Mon, Dec 9, 2013 at 1:01 PM, Tomi Valkeinen <tomi.valkeinen@ti.com> wrote: > On 2013-12-07 06:28, Javier Martinez Canillas wrote: > >> Actually, I looked at drivers/video/omap2/connector-dvi.c and it does the right >> thing for legacy platform data probing but no for DT probing: >> >> static int dvic_probe_pdata(struct platform_device *pdev) >> { >> .. >> adapter = i2c_get_adapter(i2c_bus_num); >> if (!adapter) { >> dev_err(&pdev->dev, >> "Failed to get I2C adapter, bus %d\n", >> i2c_bus_num); >> return -EPROBE_DEFER; >> } >> .. >> } >> >> static int dvic_probe_of(struct platform_device *pdev) >> { >> .. >> adapter = of_find_i2c_adapter_by_node(adapter_node); >> if (adapter == NULL) { >> dev_err(&pdev->dev, "failed to parse i2c-bus\n"); >> omap_dss_put_device(ddata->in); >> return -EINVAL; >> } >> .. >> } >> >> The following patch solves the issue if you want to include in your patch-set: > > Thanks, I'll add this and the omap3-igep0020 support to my DT branch. > Great, thanks a lot for working on this! I'm very happy that we will have proper display support for IGEPv2 on v3.14 without any DT hacks or pdata-quirks :-) > Tomi Best regards, Javier > > -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/video/omap2/displays-new/connector-dvi.c b/drivers/video/omap2/displays-new/connector-dvi.c index 8f7e576..f94344a 100644 --- a/drivers/video/omap2/displays-new/connector-dvi.c +++ b/drivers/video/omap2/displays-new/connector-dvi.c @@ -299,7 +299,7 @@ static int dvic_probe_of(struct platform_device *pdev) if (adapter == NULL) { dev_err(&pdev->dev, "failed to parse i2c-bus\n"); omap_dss_put_device(ddata->in); - return -EINVAL; + return -EPROBE_DEFER; } ddata->i2c_adapter = adapter;