]> git.baikalelectronics.ru Git - 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)
commitf01a64b13cdb88261d79c05c6a0444cc6fb81e06
tree532472a1a7af03c588dcfe38e7ba15b0955a227f
parentbcd970c630d58e4e60484d669d30061e554dc423
drm/omap: fix crash if there's no video PLL

Commit 81c5715fdb2b5d70bc0f9931b630df7f801425df ("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: 81c5715fdb2b ("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