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.
Merge remote-tracking branch 'sunxi/stage/sunxi-3.0' into work-3.0
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>

Conflicts:
	block/partition-generic.c
	block/partitions/check.h
Merge remote-tracking branch 'sunxi/stage/sunxi-3.0' into work-3.0
mali: fix invalid message

[   19.300000] Mali: mali clock set completed, clock is  180000000 Mhz

must be in Hz
sunxi: unify sun4i and sun5i platform devices to single

100% same except i2c naming

v2 rebasing
Merge remote-tracking branch 'sunxi/stage/sunxi-3.0' into work-3.0
mmc: Change behavior when fex have not valid sdio section

Fix oops when I tryed load bcm4330.ko wich not present in my hw
configuration:

    [  428.020000] [mmc_pm]: No sdio card, please check your config !!
    [  428.020000] Config Error: not for huawei mw269x sdio wifi module
    [  428.020000] [mmc_pm]: No sdio card, please check your config !!
    [  428.030000] kernel BUG at drivers/mmc/sunxi-host/host_op.c:585!
    [  428.050000] Unable to handle kernel NULL pointer dereference at virtual address 00000000
    [  428.060000] pgd = d7a4c000
    [  428.070000] [00000000] *pgd=52d15831, *pte=00000000, *ppte=00000000
    [  428.080000] Internal error: Oops: 817 [#1] PREEMPT
    [  428.080000] Modules linked in: bcm4330(+) mali ump
    [  428.080000] CPU: 0    Not tainted  (3.0.62+ #2)
    [  428.080000] PC is at __bug+0x24/0x30
    [  428.080000] LR is at __schedule+0x2f4/0x58c
    [  428.080000] pc : [<c00393ec>]    lr : [<c04f5bd4>]    psr: 400f0013
    [  428.080000] sp : d2d03e48  ip : d2d03cd8  fp : d2d03e54
    [  428.080000] r10: bf06a000  r9 : c0089864  r8 : bf05b074
    [  428.080000] r7 : d2d02000  r6 : c0739b80  r5 : bf05b150  r4 : 00000002
    [  428.080000] r3 : 00000000  r2 : d2d02000  r1 : 00000002  r0 : 00000049
mmc: Change error behavior on invalid function parameters

sdxc_prepare_pio handle invalid parameners in unusual way - it crash
even when only one caller have error handling.
ft5x_ts:Implement power port hardware feature

On some devices like (DNS Airpad M82) ts controller's power controled via
MOSFET for powersaving. This patch enable power control with GPIO
pin ctp_power_port in ctp_para, make touchscreen work on simular hardware
configurations.
led-triggers: create a trigger for CPU activity

Attempting to consolidate the ARM LED code, this removes the
custom RealView LED trigger code to turn LEDs on and off in
response to CPU activity and replace it with a standard trigger.

(bryan.wu@canonical.com:
It introduces several syscore stubs into this trigger.
It also provides ledtrig_cpu trigger event stub in <linux/leds.h>.
Although it was inspired by ARM work, it can be used in other arch.)

Cc: Richard Purdie <rpurdie@rpsys.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bryan Wu <bryan.wu@canonical.com>
Reviewed-by: Jamie Iles <jamie@jamieiles.com>
Tested-by: Jochen Friedrich <jochen@scram.de>
ledtrig-cpu: kill useless mutex to fix sleep in atomic context

Seeing the following every time the CPU enters or leaves idle on a
Beagleboard:

BUG: sleeping function called from invalid context at kernel/mutex.c:269
in_atomic(): 1, irqs_disabled(): 0, pid: 0, name: swapper/0
no locks held by swapper/0/0.
[<c001659c>] (unwind_backtrace+0x0/0xf8) from [<c05aaa7c>] (mutex_lock_nested+0x24/0x380)
[<c05aaa7c>] (mutex_lock_nested+0x24/0x380) from [<c043bd1c>] (ledtrig_cpu+0x38/0x88)
[<c043bd1c>] (ledtrig_cpu+0x38/0x88) from [<c000f4b0>] (cpu_idle+0xf4/0x120)
[<c000f4b0>] (cpu_idle+0xf4/0x120) from [<c07e47c8>] (start_kernel+0x2bc/0x30c)

Miles Lane has reported seeing similar splats during system suspend.

The mutex in struct led_trigger_cpu appears to have no function: it
resides in a per-cpu data structure which never changes after the
trigger is registered.  So just remove it.

Reported-by: Miles Lane <miles.lane@gmail.com>
Signed-off-by: Nathan Lynch <ntl@pobox.com>
Signed-off-by: Bryan Wu <roc@roc-samos.(none)>
Integrate ledtrig-cpu.

Backport of fa8bbb13 from Linus master.

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

Conflicts:
	arch/arm/kernel/process.c
sunxi-nand: Get disk size from block device in nand partition driver.

Signed-off-by: Michal Suchanek <hramrach@gmail.com>
sunxi-nand: Use in-kernel crc32 function for nand partition check.

Signed-off-by: Michal Suchanek <hramrach@gmail.com>
sunxi-nand: Remove private header reference from nand mbr.h

Signed-off-by: Michal Suchanek <hramrach@gmail.com>
sunxi-nand: Remove private data reference from nand mbr.h

Remove same declaration from nand_blk.c

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