[PATCH v3 05/81] drm/fbdev-dma: Support struct drm_driver.fbdev_probe
Javier Martinez Canillas
javierm at redhat.com
Tue Sep 3 11:08:55 UTC 2024
Thomas Zimmermann <tzimmermann at suse.de> writes:
> Rework fbdev probing to support fbdev_probe in struct drm_driver
> and reimplement the old fb_probe callback on top of it. Provide an
> initializer macro for struct drm_driver that sets the callback
> according to the kernel configuration.
>
> This change allows the common fbdev client to run on top of DMA-
> based DRM drivers.
>
> Signed-off-by: Thomas Zimmermann <tzimmermann at suse.de>
> ---
> drivers/gpu/drm/drm_fbdev_dma.c | 60 ++++++++++++++++++++-------------
> include/drm/drm_fbdev_dma.h | 12 +++++++
> 2 files changed, 48 insertions(+), 24 deletions(-)
>
> diff --git a/drivers/gpu/drm/drm_fbdev_dma.c b/drivers/gpu/drm/drm_fbdev_dma.c
> index 7ef5a48c8029..aeccf7f7a522 100644
> --- a/drivers/gpu/drm/drm_fbdev_dma.c
> +++ b/drivers/gpu/drm/drm_fbdev_dma.c
> @@ -86,6 +86,40 @@ static const struct fb_ops drm_fbdev_dma_fb_ops = {
>
> static int drm_fbdev_dma_helper_fb_probe(struct drm_fb_helper *fb_helper,
> struct drm_fb_helper_surface_size *sizes)
> +{
static inline for this wrapper maybe ?
> + return drm_fbdev_dma_driver_fbdev_probe(fb_helper, sizes);
> +}
> +
Reviewed-by: Javier Martinez Canillas <javierm at redhat.com>
--
Best regards,
Javier Martinez Canillas
Core Platforms
Red Hat
More information about the Intel-gfx
mailing list