]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
drm/omap: fix crash if there's no video PLL
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 5 Apr 2018 06:55:37 +0000 (09:55 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Thu, 5 Apr 2018 09:47:35 +0000 (12:47 +0300)
commit41613a1a7df27a0aa34bf77d51278bbe8e108a8f
tree532472a1a7af03c588dcfe38e7ba15b0955a227f
parent8cd1b5bd70cccda6854088825e725a513ec919c6
drm/omap: fix crash if there's no video PLL

Commit 8a7eda7686675b73d74c22c0d5b83059f9d783f6 ("drm: omapdrm: dispc:
Pass DISPC pointer to remaining dispc API functions") made dpi.c use
ctx->pll even when there's no PLL, causing a crash at modeset on AM4
EVM, and presumably all OMAP2/3 boards.

Fix this by having struct dpi_data pointer in the ctx instead, giving
access to dispc without going through the pll.

Fixes: 8a7eda768667 ("drm: omapdrm: dispc: Pass DISPC pointer to remaining dispc API functions")
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reported-by: Keerthy <j-keerthy@ti.com>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Tested-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180405065537.29818-1-tomi.valkeinen@ti.com
drivers/gpu/drm/omapdrm/dss/dpi.c