mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-28 23:51:33 +00:00
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: be5b96f0e4
("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>
This commit is contained in:
parent
a8407b5642
commit
b29712e941
1 changed files with 3 additions and 0 deletions
|
@ -347,6 +347,9 @@ int sunxi_simplefb_setup(void *blob)
|
|||
if (ret) {
|
||||
debug("DE2 not present\n");
|
||||
return 0;
|
||||
} else if (!device_active(de2)) {
|
||||
debug("DE2 present but not probed\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
ret = uclass_find_device_by_name(UCLASS_DISPLAY,
|
||||
|
|
Loading…
Reference in a new issue