Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a7f54ea authored by Tomi Valkeinen's avatar Tomi Valkeinen
Browse files

drm/omap: fix bus_flags for panel-dpi



panel-dpi used to convey the bus-flags via the videomode, but recent
changes changed the use of videomode to DRM's drm_display_mode which
does not contain bus-flags. This broke panel-dpi, which didn't
explicitly store the bus-flags into dssdev->bus_flags.

Fix this by setting dssdev->bus_flags. Also change the bus_flags type to
u32, as that is the type used in the DRM framework, and we would get a
warning with drm_bus_flags_from_videomode() otherwise.

Fixes: 3fbda31e ("drm/omap: Split mode fixup and mode set from encoder enable")
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Reported-by: default avatarH. Nikolaus Schaller <hns@goldelico.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181126092447.11864-1-tomi.valkeinen@ti.com


Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
parent 4265b0fe
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -177,6 +177,7 @@ static int panel_dpi_probe(struct platform_device *pdev)
	dssdev->type = OMAP_DISPLAY_TYPE_DPI;
	dssdev->owner = THIS_MODULE;
	dssdev->of_ports = BIT(0);
	drm_bus_flags_from_videomode(&ddata->vm, &dssdev->bus_flags);

	omapdss_display_init(dssdev);
	omapdss_device_register(dssdev);
+1 −1
Original line number Diff line number Diff line
@@ -432,7 +432,7 @@ struct omap_dss_device {
	const struct omap_dss_driver *driver;
	const struct omap_dss_device_ops *ops;
	unsigned long ops_flags;
	unsigned long bus_flags;
	u32 bus_flags;

	/* helper variable for driver suspend/resume */
	bool activate_after_resume;