aries | p1: config: add synchronization framework support

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I825ba2d7ed65523225c25b138867071359797bde
lz4: fix another possible overrun

There is one other possible overrun in the lz4 code as implemented by
Linux at this point in time (which differs from the upstream lz4
codebase, but will get synced at in a future kernel release.)  As
pointed out by Don, we also need to check the overflow in the data
itself.

While we are at it, replace the odd error return value with just a
"simple" -1 value as the return value is never used for anything other
than a basic "did this work or not" check.

Reported-by: "Don A. Bailey" <donb@securitymouse.com>
Reported-by: Willy Tarreau <w@1wt.eu>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Humberto Borba <humberos@gmail.com>

Change-Id: Ifaaae48b8c1fa3aec5280546edb7673830ed067b
aries | p1: implements ion memory alloc for s5pv210

fix ion memory alloc for s5pv210 arm arch
on 3.0.y kernel level

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I280697bc6ca3ee9a401c08943b3e2c3f605888a6
Merge "aries | p1: config: add synchronization framework support" into android-4.4
Merge "aries | p1: implements ion memory alloc for s5pv210" into android-4.4
aries | p1: config: enable ION and ION_S5PV210

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I47d780851539c7f3f04c14f53bd1e5c446d09cac
net: wireless: Increase scan entry expiration to fit new scan time

Signed-off-by: Dmitry Shmidt <dimitrysh@google.com>
Signed-off-by: Humberto Borba <humberos@gmail.com>

Change-Id: I0e23ce45d78d7c17633670973f49943a5ed6032d
usb: gadget: f_accessory: Enabled Zero Length Packet (ZLP) for acc_write

Accessory connected to Android Device requires
Zero Length Packet (ZLP) to be written when data
transferred out from the Android device are multiples
of wMaxPacketSize (64bytes (Full-Speed) / 512bytes (High-Speed))
to end the transfer.

Signed-off-by: Anson Jacob <ansonkuzhumbil@gmail.com>
Signed-off-by: Humberto Borba <humberos@gmail.com>

Change-Id: Ib2c2c0ab98ef9afa10e74a720142deca5c0ed476
p1: config: respect sec_jack config

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: Ib1f1157ab292828f9289c5fea3d49c4f7da492ce
p1: drivers: power: write i2c regs directly to pmic

also, change kernel debug messages to kernel info

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I3b8b61782c54946472dcca55705e80e5bb905b3e
p1: drivers: power: force charging status if usb cable is connected

although the usb cable will be recognized during charging process
but it won't get power supply enought from computer if the tab screen
is on for at least 6 minutes.

the main reason of this patch is the system notification
for charging process from usb cable type.

the improper TA cable will not get charging status as
it is for default reason.

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I1ab0850cbfdfcdf81546e857528c385794fa8203
aries | p1: arm: arch: s5pc110: improved@oc

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I3dbdb2daa46e7a3f6a1aaa923a9c20b772f959ec
Merge "p1: drivers: power: force charging status if usb cable is connected" into android-4.4
aries | p1: drivers: mfc: fix gcc warnings

/android/omni/kernel/samsung/aries/drivers/media/video/samsung/mfc50/mfc.c: In function 'mfc_open':
/android/omni/kernel/samsung/aries/drivers/media/video/samsung/mfc50/mfc.c:94:21: warning: comparison between 'enum mfc_error_code' and 'enum <anonymous>' [-Wenum-compare]
/android/omni/kernel/samsung/aries/drivers/media/video/samsung/mfc50/mfc.c: In function 'mfc_probe':
/android/omni/kernel/samsung/aries/drivers/media/video/samsung/mfc50/mfc.c:692:2: warning: passing argument 2 of '__release_region' makes integer from pointer without a cast [enabled by default]
In file included from /android/omni/kernel/samsung/aries/include/linux/device.h:16:0,
                 from /android/omni/kernel/samsung/aries/include/linux/platform_device.h:14,
                 from /android/omni/kernel/samsung/aries/drivers/media/video/samsung/mfc50/mfc.c:35:
/android/omni/kernel/samsung/aries/include/linux/ioport.h:167:13: note: expected 'resource_size_t' but argument is of type 'struct resource *'

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: Ic02f3dd764a17cf36d747a7e797604bc2ce34b17
p1: drivers: power: bring back pmic regs updating process

it reverts partially: f84de6cf078276a8f71006f89e1c94b596313095

definitely it is not a good choice to write i2c directly.
the device was very slow after some time of use.

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I86575c48ca5114926ec4c0383d80d630ae486914
p1ln: config: disable nm6xx video driver

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I017739b40a0b4a3cad48384849a5f6d2b3fbe31f
p1ln: config: disable tsi video driver

Signed-off-by: Humberto Borba <humberos@gmail.com>
Change-Id: I5a5352864c9815c3bc486bb4384582c5e617ae7e
zram: avoid lockdep splat by revalidate_disk

Sasha reported lockdep warning [1] introduced by [2].

It could be fixed by doing disk revalidation out of the init_lock.  It's
okay because disk capacity change is protected by init_lock so that
revalidate_disk always sees up-to-date value so there is no race.

[1] https://lkml.org/lkml/2014/7/3/735
[2] zram: revalidate disk after capacity change

Fixes 2e32baea46ce ("zram: revalidate disk after capacity change").

Signed-off-by: Minchan Kim <minchan@kernel.org>
Reported-by: Sasha Levin <sasha.levin@oracle.com>
Cc: "Alexander E. Patrakov" <patrakov@gmail.com>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: Jerome Marchand <jmarchan@redhat.com>
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
CC: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Humberto Borba <humberos@gmail.com>

Change-Id: Ie0f3f3046b6256e3239344dc84721850b25079e2
aries | p1 : backport cpuidle driver from 3.5

Change-Id: If5b066c26c8491268fe98f2ab6f06be504e7236b
aries | p1: arm/crypto: add optimized AES and SHA1 routines

Add assembler versions of AES and SHA1 for ARM platforms.  This has provided
up to a 50% improvement in IPsec/TCP throughout for tunnels using AES128/SHA1.

Signed-off-by: David McCullough <ucdevel@gmail.com>
Change-Id: I54d3d076be557d9293f99f3bb78db2c9cff43c16