]> 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)
commit8b66339a21b60c9ab64df3ba8e879f1bb884df5a
tree43768e5596ce47cbae1bb7f8facd31d21ffbeb93
parentcacd2d471f74b0bd506d541502e4298e351bd594
Revert "drm/sun4i: Handle DRM_BUS_FLAG_PIXDATA_*EDGE"

This reverts commit f84f11f5dec239cbc1a1bbf41cd8251cfffae2b9.

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