[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20211101114622.813536-1-john@metanate.com>
Date: Mon, 1 Nov 2021 11:46:22 +0000
From: John Keeping <john@...anate.com>
To: dri-devel@...ts.freedesktop.org
Cc: John Keeping <john@...anate.com>,
Thomas Zimmermann <tzimmermann@...e.de>,
Sandy Huang <hjc@...k-chips.com>,
Heiko Stübner <heiko@...ech.de>,
David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
linux-arm-kernel@...ts.infradead.org,
linux-rockchip@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: [PATCH] drm/rockchip: pass 0 to drm_fbdev_generic_setup()
Allow drm_fbdev_generic_setup() to pick the default bpp value for the
framebuffer.
This has no functional impact because the default is 32, given that
mode_config.preferred_depth is not set for Rockchip.
Suggested-by: Thomas Zimmermann <tzimmermann@...e.de>
Signed-off-by: John Keeping <john@...anate.com>
---
This needs [1] to be applied first.
[1] https://lore.kernel.org/all/20211029115014.264084-1-john@metanate.com
drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
index 1481181445fd..e37e74998fa9 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
@@ -165,7 +165,7 @@ static int rockchip_drm_bind(struct device *dev)
if (ret)
goto err_kms_helper_poll_fini;
- drm_fbdev_generic_setup(drm_dev, 32);
+ drm_fbdev_generic_setup(drm_dev, 0);
return 0;
err_kms_helper_poll_fini:
--
2.33.1
Powered by blists - more mailing lists