]> git.baikalelectronics.ru Git - kernel.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)
commit69a46be20d187aedb56f99fe3c477edafb72b9a6
tree43768e5596ce47cbae1bb7f8facd31d21ffbeb93
parent4aa85e96bb699ed6ebdfe700ffd4c6f67bd0c1b5
Revert "drm/sun4i: Handle DRM_BUS_FLAG_PIXDATA_*EDGE"

This reverts commit 73c4822e4c7dc5fe450c913c40ef43d6419064fb.

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