mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATH] drm/loongson: mode_config.cursor_width should use hw_cursor_w
@ 2026-05-19  7:40 yaolu
  2026-05-19  8:33 ` Markus Elfring
  0 siblings, 1 reply; 3+ messages in thread
From: yaolu @ 2026-05-19  7:40 UTC (permalink / raw)
  To: lvjianmin, wuqianhai
  Cc: chenhuacai, jeffbai, xry111, zhengxingda, dri-devel,
	linux-kernel, Lu Yao

From: Lu Yao <yaolu@kylinos.cn>

mode_config.cursor_width should use hw_cursor_w rather than hw_cursor_h.

Signed-off-by: Lu Yao <yaolu@kylinos.cn>
---
 drivers/gpu/drm/loongson/lsdc_drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/loongson/lsdc_drv.c b/drivers/gpu/drm/loongson/lsdc_drv.c
index 79bb61278aa7..02615fa6a1d5 100644
--- a/drivers/gpu/drm/loongson/lsdc_drv.c
+++ b/drivers/gpu/drm/loongson/lsdc_drv.c
@@ -139,7 +139,7 @@ static int lsdc_mode_config_init(struct drm_device *ddev,
 	ddev->mode_config.preferred_depth = 24;
 	ddev->mode_config.prefer_shadow = 1;
 
-	ddev->mode_config.cursor_width = descp->hw_cursor_h;
+	ddev->mode_config.cursor_width = descp->hw_cursor_w;
 	ddev->mode_config.cursor_height = descp->hw_cursor_h;
 
 	ddev->mode_config.helper_private = &lsdc_mode_config_helper_funcs;
-- 
2.25.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-20  1:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-05-19  7:40 [PATH] drm/loongson: mode_config.cursor_width should use hw_cursor_w yaolu
2026-05-19  8:33 ` Markus Elfring
2026-05-20  1:53   ` [PATCH v2] " yaolu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®