Skip to content

Commit 9724ecb

Browse files
committed
drm/simpledrm: Use panel-dimensions property as alternative to panel
Commit fbf0ea2 ("of: property: fw_devlink: Add a devlink for panel followers") added a probe ordering hint on "panel" properties. This is not appropriate for simpledrm as it is expected to be in an useable state. Use "panel-dimensions" as alternative property to parse the physical panel dimensions from. Signed-off-by: Janne Grunau <[email protected]>
1 parent 94526c6 commit 9724ecb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/gpu/drm/tiny/simpledrm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,8 @@ static struct simpledrm_device *simpledrm_device_create(struct drm_driver *drv,
843843
if (IS_ERR(mem))
844844
return ERR_CAST(mem);
845845
panel_node = of_parse_phandle(of_node, "panel", 0);
846+
if (!panel_node)
847+
panel_node = of_parse_phandle(of_node, "panel-dimensions", 0);
846848
if (panel_node) {
847849
simplefb_read_u32_of(dev, panel_node, "width-mm", &width_mm);
848850
simplefb_read_u32_of(dev, panel_node, "height-mm", &height_mm);

0 commit comments

Comments
 (0)