aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2015-06-30 05:23:45 -0400
committerTomi Valkeinen <tomi.valkeinen@ti.com>2015-07-02 08:20:10 -0400
commit0438ec90b17963662ef619b71c77c5c135b07014 (patch)
tree5405f9245acf42fc864b026e9631fb37e4b81343
parentf778dad38a54ca5207d024b5ebe0e6d71b8bad83 (diff)
OMAPDSS: fix probing if rfbi device is enabled
After the commit 736e60ddc215b85e73bbf7da26e1cde84cc9500f ("OMAPDSS: componentize omapdss") the dss core device will wait until all the subdevices have been successfully probed. However, we don't have a working driver for RFBI, so if RFBI device exists, omapdss will never get probed. All the .dtsi files set RFBI as disabled, except am4372.dtsi. This causes omapdss probe to not finish on AM4 devices. This patch makes omapdss driver skip adding rfbi device as a subcomponent, solving the issue. This should be reverted when we have a working RFBI driver. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Reported-by: Felipe Balbi <balbi@ti.com>
-rw-r--r--drivers/video/fbdev/omap2/dss/dss.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/video/fbdev/omap2/dss/dss.c b/drivers/video/fbdev/omap2/dss/dss.c
index 612b093831d5..9200a8668b49 100644
--- a/drivers/video/fbdev/omap2/dss/dss.c
+++ b/drivers/video/fbdev/omap2/dss/dss.c
@@ -1225,6 +1225,15 @@ static int dss_add_child_component(struct device *dev, void *data)
1225{ 1225{
1226 struct component_match **match = data; 1226 struct component_match **match = data;
1227 1227
1228 /*
1229 * HACK
1230 * We don't have a working driver for rfbi, so skip it here always.
1231 * Otherwise dss will never get probed successfully, as it will wait
1232 * for rfbi to get probed.
1233 */
1234 if (strstr(dev_name(dev), "rfbi"))
1235 return 0;
1236
1228 component_match_add(dev->parent, match, dss_component_compare, dev); 1237 component_match_add(dev->parent, match, dss_component_compare, dev);
1229 1238
1230 return 0; 1239 return 0;