ARM: pxafb: rework pxafb overlay memory management
authorVasily Khoruzhick <anarsoul@gmail.com>
Fri, 11 Mar 2011 09:20:47 +0000 (11:20 +0200)
committerEric Miao <eric.y.miao@gmail.com>
Wed, 16 Mar 2011 09:37:03 +0000 (17:37 +0800)
PXAFB overlay memory management is something messy:
- it allocates memory dynamically on open/release, and it results
  in memory allocation failure after ~1h of uptime (system does not have
  115k of physically contiguous memory)
- in release callback it tries to free memory even if it was not
  allocated.

Also driver touches FDADR1 on main plane reconfiguration, and it can cause
problems if overlay1 is enabled.

This patch attempts to fix those issues.

Patch is based on Russell King's work.

Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Signed-off-by: Eric Miao <eric.y.miao@gmail.com>

No differences found