ARM: dts: msm: Free touchscreen gpios in suspend for msm8226

On all 8226 targets, free gpios in sleep to save power.
Also change pull on reset gpio from 6mA to 2mA in suspend.

Change-Id: I4ee0cffb72e4df530197763da900910b059392b2
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
input: synaptics_i2c_rmi4: Enable turning off regulators in suspend

In order to save maximum power, turn regulators completely off
in suspend instead of just putting into low power mode.

Change-Id: Ib325c7acf4c03a63124ed8d4f15b446ac8ad5ecb
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
input: synaptics_i2c_rmi4: Allow GPIOs to suspend during sleep

In order to save power, enable GPIOs to go into suspened mode
during sleep by freeing them, and re-requesting on wake.

Change-Id: I5b1839f5a15fff0bad13b636be35079a8687fa6a
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
ARM: dts: msm: 8926: update the number of GPIOs

8926 has more GPIOs than 8226. Update the number to 120 to support
these new GPIOs.

Change-Id: Ib6d6e7b301febac8b71441619c826f3f40575801
Signed-off-by: Syed Rameez Mustafa <rameezmustafa@codeaurora.org>
Merge "ARM: dts: msm: 8926: update the number of GPIOs"
ARM: dts: msm: Update device tree with memory map information

Split the memory hole, as the size of the modem image has
been updating resulting in more HLOS memory

The modem image is no longer relocatable and thus the pil heap
for the same is no longer present

Change-Id: I564a7ad19e409d8f87a33bc1b3389983f762a15b
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
Signed-off-by: Shruthi Krishna <skrish@codeaurora.org>
ARM: dts: msm: Add memory hole for msm8926

Add the start address and size of the memory regions
reserved for other images. As the device tree for msm8926
is derived from the device tree for msm8226 add a tag to
the memory hole node to support the different memory map
configurations

Conflicts:

	arch/arm/boot/dts/msm8926.dtsi

Change-Id: I5ce93bb16cca825e18bc34e68c4db05b2580a987
Signed-off-by: Neeti Desai <neetid@codeaurora.org>
Signed-off-by: Shruthi Krishna <skrish@codeaurora.org>
Merge "ARM: dts: msm: Update device tree with memory map information"
Merge "ARM: dts: msm: Add memory hole for msm8926"
arm/dt: camera: Add LED torch support for camera

For 8226 fluid, pm8226 torch is attached to OV8825 sensor.
Add LED torch source in device node. Sensor device nodes parse
torch source properties in sensor driver.

Change-Id: Ibbe52b34788888855b48c7cd4f6851ffc1df7a06
Signed-off-by: Evgeniy Borisov <eborisov@codeaurora.org>
camera_v1/v2: Fix multiple JPEG integer overflow issues

Fixes multiple issues in the gemini and jpeg 1.0 cores when parsing
hw commands:

1. Fixes integer overflow issue when calculating the length of the
command buffer.
2. Fixes signedness issue with the command count.

CRs-fixed: 504640
Signed-off-by: Kamen Kirov <kkirov@codeaurora.org>
Change-Id: I0a701c67b93cc97af119b31639db699e5ae58489
msm: camera: Fix potential memory overflow errors

Fix potential memory overflow errors in msm_isp_util.c which happen
under certain rare conditions.

CRs-fixed: 514717
Change-Id: I8c70e089df9bf1e7a364c5c8264b782c9c23bf0b
Signed-off-by: Seemanta Dutta <seemanta@codeaurora.org>
power: qpnp-charger: add disable adc disable work.

The ADC channel disable API may sleep when it is called. Move
the call to a work to avoid a kernel bug.

Change-Id: I75771c6b8219c0e8226083d5dce66c51c4a7624b
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
Signed-off-by: Shashank Babu Chinta Venkata <sbchin@codeaurora.org>
power: qpnp-charger: init adc_disable work correctly

Initialize adc_disable work correctly.

Change-Id: I7789d683b0b8b34ed28e573ff76c353fd2e90f80
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
ARM: smp: Save CPU registers before IPI_CPU_STOP processing

When a kernel panic occurs on one CPU, other CPUs are instructed to stop
execution via the IPI_CPU_STOP message. These other CPUs dump their stack,
which may not be good enough to reconstruct their context to perform
post-mortem analysis. Dump each CPU's context
(before it started procesing the IPI) into a globally accessible structure
to allow for easier post-mortem debugging.

Change-Id: I68ac75f73d7ddaebaff9122b23e341bcb00e8fb9
Signed-off-by: Tingting Yang <tingting@codeaurora.org>
Merge "input: synaptics_i2c_rmi4: Enable turning off regulators in suspend"
Merge "input: synaptics_i2c_rmi4: Allow GPIOs to suspend during sleep"
Merge "ARM: dts: msm: Free touchscreen gpios in suspend for msm8226"
Revert "ARM: dts: msm: Add memory hole for msm8926"

This reverts commit 09ceed12a4914cb806e580bea5644f881a4e7671

Change-Id: I31bf2c583e7b85a7c0b466619f75c7269fe309ce
Revert "ARM: dts: msm: Update device tree with memory map information"

This reverts commit db46ebc1457592159d7a4eadbaa01590bf9dbbbe

Change-Id: Id18eb8f7207866e32613c667f9e81f9ca4688924