]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: remove simplefb at probe
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Wed, 11 May 2016 14:52:50 +0000 (16:52 +0200)
committerMaxime Ripard <maxime.ripard@free-electrons.com>
Mon, 30 May 2016 06:28:33 +0000 (08:28 +0200)
commit281a7ba97ec9013b5c559ec9af85015adbd9c210
tree0d39cf983139987da13d087926410fe437cf4480
parent465eefcf68605a774d71266a146684c89507b454
drm/sun4i: remove simplefb at probe

If simplefb was setup by our bootloader and enabled in the DT, we will have
a first framebuffer loaded in our system.

However, as soon as our DRM driver will load, it will reset the controller,
initialise it and, if the framebuffer emulation is enabled, register a
second framebuffer device.

This is obviously pretty bad, since the first framebuffer will be some kind
of a black hole, with memory still reserved that we can write to safely,
but not displayed anywhere.

Make sure we remove that framebuffer when we probe so we don't end up in
that situation.

Fixes: 19f0a1ddb467 ("drm: Add Allwinner A10 Display Engine support")
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
drivers/gpu/drm/sun4i/sun4i_drv.c