drm/simpledrm: Acquire memory aperture for framebuffer
authorThomas Zimmermann <tzimmermann@suse.de>
Fri, 30 Apr 2021 10:58:40 +0000 (12:58 +0200)
committerThomas Zimmermann <tzimmermann@suse.de>
Sat, 1 May 2021 10:45:04 +0000 (12:45 +0200)
commit4aae79f77e3a9c53b225a5b2c35951f568156eee
tree11accb3e85ea142e233b8b253d6ced7b1d2da75c
parent11e8f5fd223bd4d33fa10527bad3fe48469a15df
drm/simpledrm: Acquire memory aperture for framebuffer

We register the simplekms device with the DRM platform helpers. A
native driver for the graphics hardware will kick-out the simpledrm
driver before taking over the device.

The original generic platform device from the simple-framebuffer boot
code will be unregistered. The native driver will use whatever native
hardware device it received.

v4:
* convert to drm_aperture_acquire_from_firmware()
v3:
* use platform_device_unregister() and handle detachment
  like hot-unplug event (Daniel)
v2:
* adapt to aperture changes
* use drm_dev_unplug() and drm_dev_enter/exit()
* don't split error string

Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Acked-by: Maxime Ripard <maxime@cerno.tech>
Tested-by: nerdopolis <bluescreen_avenger@verizon.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20210430105840.30515-10-tzimmermann@suse.de
drivers/gpu/drm/tiny/simpledrm.c