mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 12:26:45 +07:00
2f690fad23
The CMA helper is already using the drm_fb_helper_generic_probe part of the generic fbdev emulation. This patch makes full use of the generic fbdev emulation by using its drm_client callbacks. This means that drm_mode_config_funcs->output_poll_changed and drm_driver->lastclose are now handled by the emulation code. Additionally fbdev unregister happens automatically on drm_dev_unregister(). The drm_fbdev_generic_setup() call is put after drm_dev_register() in the driver. This is done to highlight the fact that fbdev emulation is an internal client that makes use of the driver, it is not part of the driver as such. If fbdev setup fails, an error is printed, but the driver succeeds probing. drm_fbdev_generic_setup() handles mode_config.num_connector being zero. In that case it retries fbdev setup on the next .output_poll_changed. Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Noralf Trønnes <noralf@tronnes.org> Acked-by: Sam Ravnborg <sam@ravnborg.org> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Link: https://patchwork.freedesktop.org/patch/msgid/20181128212713.43500-4-noralf@tronnes.org |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
rcar_du_crtc.c | ||
rcar_du_crtc.h | ||
rcar_du_drv.c | ||
rcar_du_drv.h | ||
rcar_du_encoder.c | ||
rcar_du_encoder.h | ||
rcar_du_group.c | ||
rcar_du_group.h | ||
rcar_du_kms.c | ||
rcar_du_kms.h | ||
rcar_du_of_lvds_r8a7790.dts | ||
rcar_du_of_lvds_r8a7791.dts | ||
rcar_du_of_lvds_r8a7793.dts | ||
rcar_du_of_lvds_r8a7795.dts | ||
rcar_du_of_lvds_r8a7796.dts | ||
rcar_du_of.c | ||
rcar_du_of.h | ||
rcar_du_plane.c | ||
rcar_du_plane.h | ||
rcar_du_regs.h | ||
rcar_du_vsp.c | ||
rcar_du_vsp.h | ||
rcar_dw_hdmi.c | ||
rcar_lvds_regs.h | ||
rcar_lvds.c |