From 9d8c1ea545ec81b1fb1f8a53aa9fb4106565520b Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Wed, 14 Sep 2011 15:54:52 +0300 Subject: [PATCH] DSS2: omapfb: accept memory shrink requests while in use .. but do nothing. Not the best solution but should keep things working with TV-out. --- drivers/video/omap2/omapfb/omapfb-ioctl.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/video/omap2/omapfb/omapfb-ioctl.c b/drivers/video/omap2/omapfb/omapfb-ioctl.c index f1bfd5fa9497..13a267498ac0 100644 --- a/drivers/video/omap2/omapfb/omapfb-ioctl.c +++ b/drivers/video/omap2/omapfb/omapfb-ioctl.c @@ -143,7 +143,13 @@ static int omapfb_setup_mem(struct fb_info *fbi, struct omapfb_mem_info *mi) for (i = 0; i < ofbi->num_overlays; i++) { if (ofbi->overlays[i]->info.enabled) { - r = -EBUSY; + if (size != 0 && rg->size >= size) { + dev_warn(fbdev->dev, + "mem change %lu to %zu while busy, faking success\n", + rg->size, size); + r = 0; + } else + r = -EBUSY; goto out; } } -- 2.39.2