From 6ed9fac60d8c66f91d980f8bd904ff3e55bee13e Mon Sep 17 00:00:00 2001 From: zador-blood-stained Date: Sun, 30 Oct 2016 23:03:26 +0300 Subject: [PATCH] Use soft cursor with disp2 --- .../pine64-default/disp2-fb-force-soft-cursor.patch | 13 +++++++++++++ .../sun8i-default/disp2-fb-force-soft-cursor.patch | 13 +++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 patch/kernel/pine64-default/disp2-fb-force-soft-cursor.patch create mode 100644 patch/kernel/sun8i-default/disp2-fb-force-soft-cursor.patch diff --git a/patch/kernel/pine64-default/disp2-fb-force-soft-cursor.patch b/patch/kernel/pine64-default/disp2-fb-force-soft-cursor.patch new file mode 100644 index 0000000000..aa4f382142 --- /dev/null +++ b/patch/kernel/pine64-default/disp2-fb-force-soft-cursor.patch @@ -0,0 +1,13 @@ +diff --git a/drivers/video/sunxi/disp2/disp/dev_fb.c b/drivers/video/sunxi/disp2/disp/dev_fb.c +index cc297aa..b57fa0c 100755 +--- a/drivers/video/sunxi/disp2/disp/dev_fb.c ++++ b/drivers/video/sunxi/disp2/disp/dev_fb.c +@@ -682,7 +682,7 @@ static int sunxi_fb_cursor(struct fb_info *info, struct fb_cursor *cursor) + { + __inf("sunxi_fb_cursor\n"); + +- return 0; ++ return -EINVAL; /* just to force soft_cursor() call */ + } + + s32 drv_disp_vsync_event(u32 sel) diff --git a/patch/kernel/sun8i-default/disp2-fb-force-soft-cursor.patch b/patch/kernel/sun8i-default/disp2-fb-force-soft-cursor.patch new file mode 100644 index 0000000000..aa4f382142 --- /dev/null +++ b/patch/kernel/sun8i-default/disp2-fb-force-soft-cursor.patch @@ -0,0 +1,13 @@ +diff --git a/drivers/video/sunxi/disp2/disp/dev_fb.c b/drivers/video/sunxi/disp2/disp/dev_fb.c +index cc297aa..b57fa0c 100755 +--- a/drivers/video/sunxi/disp2/disp/dev_fb.c ++++ b/drivers/video/sunxi/disp2/disp/dev_fb.c +@@ -682,7 +682,7 @@ static int sunxi_fb_cursor(struct fb_info *info, struct fb_cursor *cursor) + { + __inf("sunxi_fb_cursor\n"); + +- return 0; ++ return -EINVAL; /* just to force soft_cursor() call */ + } + + s32 drv_disp_vsync_event(u32 sel)