]> git.baikalelectronics.ru Git - kernel.git/commit
imx-drm: imx-drm-core: skip components whose parent device is disabled
authorShawn Guo <shawn.guo@freescale.com>
Mon, 14 Apr 2014 02:02:26 +0000 (10:02 +0800)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 19 Apr 2014 08:50:57 +0000 (09:50 +0100)
commitaf9ea5a4bf2d5b74a971a79a5dace25e1737a419
treec354c74402f59cf4feb7b7d4ab7cde1cb26b66d6
parent14c856f81b61aca25e962b4236e36060c63de0a9
imx-drm: imx-drm-core: skip components whose parent device is disabled

In a board setup which disables LDB device node completely by changing
status to 'disabled', and only enables HDMI device, we're running into
the problem that imx-drm master never succeeds in binding, and hence
HDMI does not come up either.

&ldb {
status = "disabled";

lvds-channel@1 {
...
status = "okay";
};
};

The imx-drm-core should really skip the LVDS channels no matter what
lvds-channel's status is, if LDB device is disabled.  Let's consider
such setup a misconfiguration, give a warning in there and not add the
component.

Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/staging/imx-drm/imx-drm-core.c