Commit graph

575789 commits

Author SHA1 Message Date
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
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
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
Linux Build Service Account
2c11780bfa Merge "ion: ion_system_heap: SetPagePrivate when splitting secure pages" 2016-10-06 12:26:08 -07:00
Linux Build Service Account
b80c3a0a3a Merge "ASoC: msmcobalt: Add support for TDM" 2016-10-06 12:26:07 -07:00
Linux Build Service Account
a0e79f8e03 Merge "ASoC: wcd934x-dsp-cntl: add support for subsystem restart" 2016-10-06 12:26:02 -07:00
Linux Build Service Account
a06fab4885 Merge "ASoC: wcd-dsp-mgr: set status before broadcasting post events" 2016-10-06 12:26:02 -07:00
Linux Build Service Account
686ab41fed Merge "iommu: msm: add EXPORT_SYMBOL for msm_dma_unmap_all_for_dev" 2016-10-06 12:26:01 -07:00
Linux Build Service Account
a414c85df7 Merge "msm: ipa: Fix ipa ready cb return value" 2016-10-06 12:26:00 -07:00
Linux Build Service Account
2b421b1a28 Merge "scsi: ufs_test: fix use after free issue" 2016-10-06 12:25:59 -07:00
Linux Build Service Account
421e53ee00 Merge "msm: camera: Fix KW issues in sensor code" 2016-10-06 12:25:58 -07:00
Linux Build Service Account
f976eac548 Merge "msm: camera: isp: Fix for sleeping function call inside spinlock" 2016-10-06 12:25:56 -07:00
Linux Build Service Account
f95294f126 Merge "ARM: dts: msm: Fill FD clock rates array for msmcobalt" 2016-10-06 12:25:48 -07:00
Linux Build Service Account
4de50ebd05 Merge "ASoC: msm: qdsp6v2: Remove 48khz constraint" 2016-10-06 12:25:47 -07:00
Linux Build Service Account
b1c75b86c1 Merge "msm: sde: fix wrong chroma stride for h2v1/h1v2 formats" 2016-10-06 12:25:47 -07:00
Linux Build Service Account
61e4c072da Merge "ARM: dts: msm: connect MADINPUT with MCLK on msmcobalt" 2016-10-06 12:25:45 -07:00
Linux Build Service Account
1109a2ed58 Merge "ASoC: wcd-mbhc: increase hs_vref to 1.6v for wcd9335 codec" 2016-10-06 12:25:44 -07:00
Linux Build Service Account
eff5106bcb Merge "diag: Do not wait for the intent availability indefinetly" 2016-10-06 12:25:43 -07:00
Linux Build Service Account
5693815579 Merge "ARM: dts: msm: set clock rate before enabling in msmcobalt" 2016-10-06 12:25:42 -07:00
Linux Build Service Account
fa00c86c7a Merge "usb: xhci: clean up command queue on HC halt failure as well" 2016-10-06 12:25:42 -07:00
Linux Build Service Account
ec3cc3d97c Merge "iommu/io-pgtable-arm: Support SMMU coherent page tables" 2016-10-06 12:25:40 -07:00
Linux Build Service Account
dcf012e0f8 Merge "lib: spinlock: Change MSM_WATCHDOG_V2 to QCOM_WATCHDOG_V2" 2016-10-06 12:25:39 -07:00
Linux Build Service Account
c2e920922a Merge "defconfig: enable ext4 encryption for msm8996 and msmcobalt" 2016-10-06 12:25:38 -07:00
Linux Build Service Account
46865cfa2d Merge "fuse: Grab the fc->lock for inode updates in passthrough" 2016-10-06 12:25:37 -07:00
Linux Build Service Account
c484f1d883 Merge "iommu: Fix compilation error without CONFIG_IOMMU_API" 2016-10-06 12:25:37 -07:00
Linux Build Service Account
5b7e2b26d6 Merge "ARM: dts: msm: Update the max voltage for in msmcobalt" 2016-10-06 12:25:36 -07:00
Linux Build Service Account
f7ea3ec770 Merge "power: qcom: ea: Fix uninitialized temperature and cpu variable" 2016-10-06 12:25:35 -07:00
Linux Build Service Account
b4c777207b Merge "ARM: dts: msm: change PCIe2 to vote for nominal on msm8996" 2016-10-06 12:25:34 -07:00
Linux Build Service Account
5033fa3d34 Merge "ARM: dts: msm: change CX handle for all PCIe nodes on msm8996" 2016-10-06 12:25:33 -07:00
Chinmay Sawarkar
0791ac9cba ARM: dts: msm: Update DCVS table for msmcobalt v2
DCVS table update is required to take into account new voltage
corners and frequencies in msmcobalt v2.

CRs-Fixed: 1072756
Change-Id: I368778ae96191398333cc53d5700a9331f892236
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
2016-10-06 10:49:20 -07:00
Hemant Kumar
20caa4fd62 usb: host: Flush hub workqueue before stopping controller
when xhci platform driver is removed with a usb device
connected there is a possibility of race between xhci
platform driver remove context and device disconnect hub
event work context. This results into

use after free: xhci_mem_clean() called from xhci_plat_remove()
freeing the xhci virtual device when a structure member is
being accessed by xhci_alloc_virt_device() after virtual device
allocation as part of connect hub event.

deadlock: Upon device disconnect if stop endpoint command remains
pending xhci_mem_cleanup() frees xhci virtual device which also
frees up endpoint stop_cmd_timer. udev->dev lock is held until
cancelled urb is not given back to class driver. In a different
context xhci platform remove calls usb_disconnect() on children of
root hub which tries to acquire the same udev->dev lock this results
into a dead lock condition.

Fix issues by making sure hub events are flushed before xhci is
stopped.

Change-Id: I86d414bca17464d1dff3346ec668d8b3efec1652
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-10-06 10:47:24 -07:00