MLK-11765 video: mxsfb: change the fb buffer managment
authorFancy Fang <chen.fang@freescale.com>
Wed, 28 Oct 2015 09:16:01 +0000 (17:16 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:13 +0000 (14:49 -0500)
commit993ff8d0e9be02d3c41ce8dc6ac2ce3ddd30c031
treeb15ff7f8fd24a5774d74ba6a286cec5499d1b1f2
parentafe2fed523feceb75e523acb87f4d07f7b309181
MLK-11765 video: mxsfb: change the fb buffer managment

The previous fb buffer management has two problems:

1. After reallocate a bigger buffer and free the old buffer,
   user space app doesn't know this and may continue accessing
   the old buffer.
2. The freed buffer contents will be lost.

So, this patch allocates a big enough fb buffer(32MB) from the
beginning and never reallocates it.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
(cherry picked from commit c76a37e342369675aa9ef2efde6373d288c2f013)

Conflicts:
drivers/video/mxsfb.c
drivers/video/fbdev/mxsfb.c