hwmon: pm8xxx-adc: Vote for a PMIC clock buffer.:

Incorrect PMIC_THERM/XO_THERM readings are seen when
the XO clock is disabled.

The internal PMIC therm relies on the PMIC band gap
reference which in turn is enabled when any of the
PMIC clock buffers are enabled. The XO_THERM relies
on the VREF_XO as its reference source which gets
enabled when any of the PMIC clock buffers are
switched on. Therefore vote for a clock buffer when
a PMIC_THERM/XO_THERM is requested.

CRs-Fixed: 392602
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
(cherry picked from commit f9dfe1b7b70b634422fbbbf65756aa997536bd33)

Change-Id: I09e132dbc4e635b96cd08ece245a766d68ed27b4
Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>

Conflicts:

	drivers/hwmon/pm8xxx-adc.c

Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
Signed-off-by: Sivasri Kumar Vanka <sivasri@codeaurora.org>
(cherry picked from commit 8ab75c713cef66317f9507b35cc08a5d7b49ae44)

Conflicts:

	drivers/hwmon/pm8xxx-adc.c

Signed-off-by: Sridhar Gujje <sgujje@codeaurora.org>
msm: rq_stats: Fix missing initalization of cur_freq

Initialize cur_freq variable of each online cpu to the current
running cpu clock frequency. This avoids zeroing out the load
calculations until the first notification of the change in CPU
frequency comes in after CPUFREQ governors are intialized.

Also when a non boot cpu is up, update its cur_freq variable.

(cherry picked from commit 1633a48b16614e6b85c047a19ec93867c2ced3b3)

Change-Id: I950686deff02e2339eefae7d09392dda2174a545
CRs-fixed: 446017
Signed-off-by: Venkat Devarasetty <vdevaras@codeaurora.org>
diag: Bring diag up to date

Diag on the A-Family mainline has fallen out of date. Create a
commit to bring diag up to date.

This includes the HSIC race condition fix while in MEMORY_DEVICE_MODE

CRs-Fixed: 446711

Change-Id: Iceb2afb0bf6e52db45732b51b51777030df312ac
Signed-off-by: Dixon Peterson <dixonp@codeaurora.org>
msm: camera: Enable VFE Out of Order writes.

Enable and configure the AXI_CFG register. Enable the
Out of order writes by default.

Change-Id: Ia6b1ed161e2d6d1d6a0809b2464800ff4f5f1e9c
Signed-off-by: Kiran Kumar H N <hurlisal@codeaurora.org>
Merge "hwmon: pm8xxx-adc: Vote for a PMIC clock buffer.:"
Merge "msm: rq_stats: Fix missing initalization of cur_freq"
Merge "diag: Bring diag up to date"
Merge "msm: camera: Enable VFE Out of Order writes."
msm: Add null pointer checks

Add null pointer checks to ensure subsystem API calls
do not dereferences null pointers and cause system
crash.

Change-Id: I5d5efc21b346ac5b9f6ddb2e42354aaf40fb56a7
Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
Merge "msm: Add null pointer checks"