]> git.baikalelectronics.ru Git - uboot.git/commit
video: sunxi: de2: fix SimpleFB node creation when DE2 not probed
authorIcenowy Zheng <icenowy@aosc.io>
Fri, 27 Jul 2018 15:50:53 +0000 (23:50 +0800)
committerJagan Teki <jagan@amarulasolutions.com>
Tue, 31 Jul 2018 06:09:47 +0000 (11:39 +0530)
commit88b8fc6a97e75660d75cb1915904ca9df30724db
tree6f1f7f3c916e8a85adb57c3e8180f68a1d62eb44
parentfd1653a4c64a1572a9f9a1a4a1c3c73625225f0f
video: sunxi: de2: fix SimpleFB node creation when DE2 not probed

Sometimes when a monitor without EDID information is plugged, the DE2
won't be probed (because of lack of timing information), but the HDMI
node is probed, thus a SimpleFB node with invalid information will be
populated.

Also detect whether DE2 is probed when creating SimpleFB node.

Fixes: 8bee68ff33e5 ("sunxi: setup simplefb for Allwinner DE2")
Signed-off-by: Icenowy Zheng <icenowy@aosc.io>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Acked-by: Jagan Teki <jagan@openedev.com>
drivers/video/sunxi/sunxi_de2.c