Commit graph

575880 commits

Author SHA1 Message Date
Taniya Das
5f86ca3e75 clk: qcom: Add support for GPU clocks for MSMFalcon
Add support for the graphics clock controller found on MSMFalcon based
devices. This should allow graphics clocks for GFX clients to be able to do
clock functionality.

Change-Id: I753b40d574a4afc2104a5c2bfe64b4831fbce8a0
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-10-07 11:35:12 +05:30
Hardik Kantilal Patel
0cc08805eb icnss: Provide API to check QMI support
Provide API to check QMI support present or not to WLAN
host driver. Based on this information driver can pass the
DMA physical address info via shadow register to WLAN FW.

CRs-Fixed: 1073647
Change-Id: Iec9d3a3b468ddf6607e4a942bb3cf9133e9f0c34
Signed-off-by: Hardik Kantilal Patel <hkpatel@codeaurora.org>
2016-10-06 23:00:51 -07:00
Amit Nischal
14ec7e8172 ARM: dts: msm: Add and update the dummy clocks for MSMfalcon/MSMtriton
For MSMfalcon and MSMtriton, clock consumers requires dummy
rpmcc, gcc, mmss and gfx clocks for their operation so add
the support for registering dummy clocks as follows:
  - Add clock-output-names property for the rpmcc, gcc, mmss
    and gfx clock controller nodes.
  - Add reset-cells property for clock controller nodes.
  - Add two fixed clock nodes named as xo_board and sleep_clk.
  - Remove RPM clock IDs from qcom,gcc-msmfalcon.h.
  - Modify RPM clock names as per qcom,rpmcc.h file.

Change-Id: I06262fe271ab6ba81d4fa5f67315fd1b54edee8c
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2016-10-07 10:44:20 +05:30
Manoj Prabhu B
702e512b92 diag: dci: Fix possible out of bound access
This patch fixes the possible out of bound access by accessing
only dci supported peripheral feature.

Bug: 31864832
CRs-Fixed: 1074901
Change-Id: I99b7feb4b9af8480912a0a3b3e9834f0ecd92189
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
2016-10-06 21:33:47 -07:00
Linux Build Service Account
b1dbfd04c7 Merge "regulator: cprh-kbss-regulator: add CPR aging adjustment support" 2016-10-06 19:45:57 -07:00
Linux Build Service Account
787b63ec55 Merge "regulator: cpr3-regulator: add support for CPRh aging adjustment" 2016-10-06 19:45:57 -07:00
Linux Build Service Account
813c4b3c46 Merge "clk: msm: mdss: update PLL configuration to clear precalibrated values" 2016-10-06 19:45:56 -07:00
Linux Build Service Account
f827f291f0 Merge "usb: gadget: f_mtp: Handle mtp os desc properly" 2016-10-06 19:45:55 -07:00
Linux Build Service Account
55eaab8b21 Merge "clk: msm: clock-osm: Use read back instead of memory barrier on MSMCOBALT" 2016-10-06 19:45:54 -07:00
Linux Build Service Account
4d08e69b3c Merge "defconfig: msm: enable display related configs for 32-bit msmfalcon" 2016-10-06 19:45:53 -07:00
Linux Build Service Account
0f6638bbe4 Merge "dwc3-msm: Acquire lock for USB GSI endpoint related operations" 2016-10-06 19:45:51 -07:00
Linux Build Service Account
203cf98893 Merge "usb: gadget: f_gsi: Enable auto detect RNDIS device on windows OS" 2016-10-06 19:45:51 -07:00
Linux Build Service Account
9a87b7449d Merge "sched/tune: add sysctl interface to define a boost value" 2016-10-06 19:45:49 -07:00
Linux Build Service Account
da994453a2 Merge "ARM: dts: msm: Add a dtsi file for msmcobalt QRD device" 2016-10-06 19:45:49 -07:00
Linux Build Service Account
58f6531c5b Merge "thermal: lmh_lite: Page align all the buffers to TZ" 2016-10-06 19:45:48 -07:00
Linux Build Service Account
b02e3335dd Merge "ASoC: msmcobalt: Update machine driver to support 32 bit format" 2016-10-06 19:45:47 -07:00
Linux Build Service Account
e0f034f4c0 Merge "ASoc: msm: Enable support for 32 bit format and 384Khz" 2016-10-06 19:45:46 -07:00
Linux Build Service Account
6a97dc2b55 Merge "ASoC: msm: qdsp6v2: add support for latest version of media format command" 2016-10-06 19:45:46 -07:00
Linux Build Service Account
32993a9f74 Merge "msm: kgsl: Disable workaround on A540v2" 2016-10-06 19:45:45 -07:00
Linux Build Service Account
7108049392 Merge "msm: kgsl: Add A540v2 to adreno gpulist" 2016-10-06 19:45:44 -07:00
Linux Build Service Account
e25f9bc935 Merge "drivers: soc: qcom: system_stats: Use arch_counter_get_cntvct()" 2016-10-06 19:45:44 -07:00
Linux Build Service Account
aba0b2846d Merge "icnss: Remove unused suspend/resume functions" 2016-10-06 19:45:43 -07:00
Linux Build Service Account
ff565b4410 Merge "cpuidle: lpm-levels: Consider history during LPM selection" 2016-10-06 19:45:41 -07:00
Linux Build Service Account
516ef30ee6 Merge "ARM: dts: msm: Specify the temperature sensor name for msmcobalt" 2016-10-06 19:45:40 -07:00
Linux Build Service Account
bc52b72052 Merge "msm: kgsl: Add and link gpu sysfs nodes" 2016-10-06 19:45:40 -07:00
Linux Build Service Account
8833b3623b Merge "ARM: dts: msm: Correct csiphy clocks and clock rates on msmcobalt" 2016-10-06 19:45:39 -07:00
Linux Build Service Account
772c3bf05d Merge "ARM: dts: msm: Enable partial update for JDI panel for msmcobalt" 2016-10-06 19:45:38 -07:00
Linux Build Service Account
6c1f1861b7 Merge "msm: sensor: Avoid potential stack overflow" 2016-10-06 19:45:37 -07:00
Linux Build Service Account
5bca027a17 Merge "msm: vidc: Add support for TP10 color format" 2016-10-06 19:45:37 -07:00
Deepak Katragadda
3e50f9e8ca clk: msm: clock-osm: Update OSM timers and enable PLL droop override
Disable PLL droop detection and update the OSM timer settings
on MSMCOBALT.

CRs-Fixed: 1072855
Change-Id: I1f769f9ff5a0bab594593c3deaec264a9060c28f
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-10-06 17:38:13 -07:00
Umesh Pandey
00f2e3e6dc msm: vidc: Selectively handle SYS_ERROR as FATAL
User SSR triggers a SYS_ERROR from the hardware.
However the driver cannot detect if the error is
due to user SSR or other reasons. Handle SYS_ERROR
due to user SSR as non-fatal

CRs-Fixed: 1054921
Change-Id: I4151b6bfb24e55c1f1a38bfdca012f7b7af86603
Signed-off-by: Umesh Pandey <umeshp@codeaurora.org>
2016-10-06 17:14:28 -07:00
Deepak Katragadda
2fc007196f clk: qcom: clk-rcg2: Declare the rcg struct in clk_gfx3d_src_determine_rate
Declare the rcg structure before referencing it in the
function.

Change-Id: Ife9fdabf20b242a93635532b9a0c4cacc8b88210
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-10-06 17:10:44 -07:00
Harry Yang
a288404dd9 qcom-charger: software fix for OTG soft-start
OTG devices with high capacitance could cause a system UVLO
due to a large amount of in-rush current drawn from battery.
Fix this by regulating the OTG boost start and altering PFM
threshold in software.

CRs-Fixed: 1048244
Change-Id: I08838d81eb99a424a3fd396582c56b120cbb46cb
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2016-10-06 16:30:27 -07:00
Harry Yang
4ed92c2c00 qcom-charger: update qc charger detection for PMICv2
PMICv2 added irq support to tell if DCP is not QC charger.
Update charger driver for this HW change.

Change-Id: Ic75e2f1d528e6bbb3cf14c842b803bf4ebca8ad8
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2016-10-06 16:30:26 -07:00
Harry Yang
7cb260336d qcom-charger: Add USBIN proxy votable for parallel charging
USB charger voltage votes indenpently, along with ICL through
intermediate USBIN votable.

This change can correctly capture strong chargers by
monitoring input voltage or charger type.

CRs-Fixed: 1069575
Change-Id: I36843279fdac909966b3f01b5a6716d191fab903
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2016-10-06 16:30:26 -07:00
Harry Yang
6e3a5f53c7 qcom-charger: Fix voting issues on parallel charging
The current driver simply skips checking for other events in the
typec change interrupt if an vbus error is seen. This could cause
parallel charging to never get enabled among other issues.

Fix is by simply printing a debug messages for vbus-error and
handling other events.

CRs-Fixed: 1069575
Change-Id: Ic2df178430b80ade1dea9aff7dbf8e08bb9c2310
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2016-10-06 16:30:25 -07:00
Harry Yang
81aa304c8d qcom-charger: Fix a possible null ptr access of pl psy
The issue results from a earlier wrong assumption that parallel
psy is available when master side is ready. The happens on boot
with a strong charger attached, when FCC callback is about to
redistribute charging currents while parallel charger has not
yet probed, hence pl psy is invalid when accessed.

This issue is fixed by introducing parallel charger as a parallel
charging voter, which is also convenient for debugging purpose.

CRs-Fixed: 1059499
Change-Id: Ic96d30a02c966704d98e047602e4292f576fe448
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2016-10-06 16:30:24 -07:00
Sandeep Panda
8a27dbc430 clk: msm: mdss: update PLL configuration to clear precalibrated values
Before going for full PLL enable sequence, we need to clear out the
override bit and precalibrated values of VCO_TUNE and KVCO_CODE, as
these registers might be storing values for old VCO rate. This will
cause the DSI PLL to be in a bad state and hence PLL unlock errors
might occur during use case like resolution switch. So always clear
the precalibrated values first in PLL configuration sequence.

Change-Id: I407920d63b4600b610794141e5b7ceb5a33980c1
Signed-off-by: Sandeep Panda <spanda@codeaurora.org>
2016-10-06 16:02:21 -07:00
Subbaraman Narayanamurthy
166e851cfd qpnp-smb2: smb-lib: add charge_done property
Currently, charging status is shown as full for both the charge
termination and inhibit cases. However, there is a need to know
when the charge termination really happens.

Add charge_done property to qpnp-smb2 driver so that the clients
can read that property to distinguish termination and inhibit.

Change-Id: If2bd750af412adf1eea7b913caed9a3eb3b763db
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-06 14:55:15 -07:00
Nicholas Troast
40af50ac19 smb-lib: report not charging when battery is missing
When the battery is missing from the device the battery power supply
will still report that it is charging. Fix this by reporting the charge
status as "not charging" when the battery is missing.

Change-Id: I1150ccaa722109f3ea6a4a10e026709d3686e28b
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-10-06 14:55:14 -07:00
Subbaraman Narayanamurthy
477a7554f3 qpnp-smb2: do not configure BATT_OV to end charging cycle
Currently, we configure charger to end the charging cycle when
battery overvoltage is detected. This ends up the charging cycle
prematurely sometimes when charging phase transitions from fast
to taper. Disable this.

Change-Id: I8ac486fcb10e823671a8e8b438b7fc76a8969b7c
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-10-06 14:55:13 -07:00
Hemant Kumar
79cd395434 usb: gadget: f_mtp: Handle mtp os desc properly
Currently mtp function driver is skipping function
setup call back by not populating function pointer
in function instance. Also, is_ptp flag is set
incorrectly as true for mtp instance which would
pass wrong os descriptor for mtp and ptp instance.
Allow mtp driver to send os descriptor by populating
function pointer in function instance and correctly
set the is_ptp flag to pass valid os descriptors.

Change-Id: Iec05a2f9309aba7d9ff81eca4ce683eff1590699
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-10-06 14:04:53 -07:00
Srinivas Rao L
5d03498d93 cpuidle: lpm-levels: Consider cluster history for LPM selection
Consider recent history (residencies) of the cluster and core
low power modes while the cluster level low power mode to enter
is selected.

Change-Id: Ifdc847a71136f55aded8a758b92179bb9aebfdcb
Signed-off-by: Srinivas Rao L <lsrao@codeaurora.org>
2016-10-06 14:49:41 -06:00
Srinivas Rao L
09372fb316 cpuidle: lpm-levels: Consider history during LPM selection
Consider recent history (residencies) of the low power modes per
core while the next low power mode to enter is selected. If most
of the history says the pattern of residencies is repeating with
minimal deviation then use the average of these for predicting
the next mode to enter.

If the pattern is not repeating then if more than 50 percent of
the samples out of history have exited a low power mode earlier
than the minumim residency of that mode, restrict it and also low
power modes deeper than that.

In any of the above case, trigger a hrtimer to wakeup cpu with
timeout as predicted+delta or max residency of the mode selected
if a deeper state can be selected after waking up incase if
prediction goes wrong.

Change-Id: I902a06939e19ac51dfd8c2db6b727b203ebfda14
Signed-off-by: Srinivas Rao L <lsrao@codeaurora.org>
2016-10-06 14:49:34 -06:00
Linux Build Service Account
e9a7b48418 Merge "ARM: dts: msm: add a new panel driver for MSMCOBALT QRD SKUK board" 2016-10-06 12:26:19 -07:00
Linux Build Service Account
8667d85b72 Merge "msm: mdss: add sysfs node to disable panel" 2016-10-06 12:26:18 -07:00
Linux Build Service Account
d9c43f585e Merge "ion: use %pK instead of %p which respects kptr_restrict sysctl" 2016-10-06 12:26:17 -07:00
Linux Build Service Account
35b02c5e6a Merge "ASoC: soc: change audio drivers to use %pK" 2016-10-06 12:26:10 -07:00
Linux Build Service Account
aaedc17924 Merge "usb: pd: Return different errors in devm_usbpd_get_by_phandle()" 2016-10-06 12:26:09 -07:00
Linux Build Service Account
b62fac3210 Merge "msm: kgsl: Add facility to BUG_ON for a gpu fault" 2016-10-06 12:26:08 -07:00