block:sunxi-nand: Bump minorbits.

Since generic kernel partition code is used for nand partitions there
needs to be enough room.

Signed-off-by: Michal Suchanek <hramrach@gmail.com>
sunxi-g2d: Support overlapped copy for ARGB8888/XRGB8888/RGB565 formats

When scrolling or moving windows in the X server, source and destination
pixel buffers are typically overlapping. Overlapped blits need to be
supported in order to make G2D useful for accelelating such operations.

This patch moves handling of common ARGB8888/XRGB8888/RGB565 formats
into a separate function and also fixes a few other issues:
1) The code in the original mixer_blt() function from G2D driver
   unnecessarily configures DMA fetch from the destination buffer in
   all cases. This is a waste of memory bandwidth for simple copy. In
   the case of 32bpp copy we get the following performance improvement
   (the numbers are for blanked screen) by disabling destination fetch:
      before: G2D blit performance: 185.75 MPix/s (743.00 MB/s)
      after:  G2D blit performance: 228.61 MPix/s (914.44 MB/s)
2) Simple copy "RGB565 -> RGB565" was corrupting data because of
   the rounding on "ARGB888 -> RGB565" conversion step (the whole
   pipeline looks like "RGB565 -> ARGB8888 -> RGB565").

Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
sunxi-g2d: Fix mismatch between request_irq and free_irq

The dev_id argument must be the same for both, otherwise we run
into problems when unloading "g2d_23" module.

Signed-off-by: Siarhei Siamashka <siarhei.siamashka@gmail.com>
sun5i:usb: fix usb resume on a13 devices

Remove udc0 clock status check in suspend/resume functions.
In some cases, when module suspends before echi/ochi on resume
clocks are tuned on by echi/ochi and udc0 skip resume part
when suspend part done before.
axp_power: change battery type from LiFe to most common LiIon

LiFe not common for tablets, mobile devices, kernel have no way
to know what battary are using, so change it to be right in most
cases
sunxi:i2c: Don't print initial register state on boot

Initial register state at boot actulay useless.
ARM: fix warnings about atomic64_read

Fix:
net/netfilter/xt_connbytes.c: In function 'connbytes_mt':
net/netfilter/xt_connbytes.c:43: warning: passing argument 1 of 'atomic64_read' discards qualifiers from pointer target type
...

by adding the missing const.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
sunxi nand: make compat partition names bootable.

There are at least three functions that format partition names in the
kernel and at least two partioin enumerators.

In addition to add_partition() make name_to_dev_t(), disk_name() and
put_partition() sunxi compat name aware.

The check is hardcoded to strcmp(name,"nand") but since no other name
than nanda..nando is required for compat this should be good enough.

v2: move the nand check before trailing partno check

Thanks Jari Helaakoski <tekkuli@gmail.com> for testing

Signed-off-by: Michal Suchanek <hramrach@gmail.com>
Merge mach-sun[45]i/pm.

Signed-off-by: Michal Suchanek <hramrach@gmail.com>
Remove superfluous functions from pm.c and reindent.

Signed-off-by: Michal Suchanek <hramrach@gmail.com>
Implement pm suspend.

Currently there is no way to wake up from this state except for serial input
with no_console_suspend. Wakeup devices are no set up in cpu_do_idle().

Based on patch by Alexsey Shestacov <wingrime@gmail.com>