]> asedeno.scripts.mit.edu Git - linux.git/commit
Revert "drm/sun4i: Handle DRM_BUS_FLAG_PIXDATA_*EDGE"
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Wed, 13 Jun 2018 08:16:47 +0000 (10:16 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Mon, 18 Jun 2018 08:02:11 +0000 (10:02 +0200)
commit58b3d02f066e5b1480d80bd308c545526eea3250
tree43768e5596ce47cbae1bb7f8facd31d21ffbeb93
parent9fcf2b3c1c0276650fea537c71b513d27d929b05
Revert "drm/sun4i: Handle DRM_BUS_FLAG_PIXDATA_*EDGE"

This reverts commit 2c17a4368aad2b88b68e4390c819e226cf320f70.

The offending commit triggers a run-time fault when accessing the panel
element of the sun4i_tcon structure when no such panel is attached.

It was apparently assumed in said commit that a panel is always used with
the TCON. Although it is often the case, this is not always true.
For instance a bridge might be used instead of a panel.

This issue was discovered using an A13-OLinuXino, that uses the TCON
in RGB mode for a simple DAC-based VGA bridge.

Cc: stable@vger.kernel.org
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180613081647.31183-1-paul.kocialkowski@bootlin.com
drivers/gpu/drm/sun4i/sun4i_tcon.c