Commit graph

577812 commits

Author SHA1 Message Date
Abinaya P
d9a48a7cd2 Revert "input: touchscreen: Add synaptics v1 driver"
This reverts  'commit d13776d16a ("input: touchscreen: Add synaptics
v1 driver")'

Change-Id: I1c0c57de3319c59c094b9e8d9192995312192354
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
2016-11-10 00:42:14 -08:00
Gaurav Kohli
d46e24b1fb ARM: dts: msm: Add IMEM pil entry for msmtriton
Add IMEM PIL entry to save relocatable address of images
loaded by PIL.

Change-Id: Ie09c8ae431cc7da4c8cd745d9c6d018e6a256158
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2016-11-10 00:25:33 -08:00
Gaurav Kohli
04d3e804c6 ARM: dts: msm: Add IMEM pil entry for msmfalcon
Add IMEM PIL entry to save relocatable address of images
loaded by PIL.

Change-Id: I79acd047c7e414ed19a2f992f8ff801b63c8a2ad
Signed-off-by: Gaurav Kohli <gkohli@codeaurora.org>
2016-11-10 00:25:06 -08:00
Abinaya P
04e7c994ca Revert "input: touchscreen: synaptics v1.1"
This reverts 'commit 7112993181 ("input: touchscreen: synaptics v1.1")'
This change is not needed in 4.4 kernel.

Change-Id: I89ab8f353bc04bc0a04d5f5a6993e8e8e5ebbd2e
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-11-10 12:40:32 +05:30
Harry Yang
87bdf22ad7 qcom-charger: smblib: lower delay in OTG soft-start check
Currently, there is a delay of 20msec before raising OTG
current limit, which may be too long for some OTG devices and
cause unexpected issues.

Change it to 1ms or 2ms per HW timing.

Change-Id: Ie09a65e7974e2412af4add3b6f1e0aa20ee4a34b
Signed-off-by: Harry Yang <harryy@codeaurora.org>
2016-11-09 23:01:53 -08:00
Amit Nischal
6278f25f01 clk: qcom: Add support to initialize & handle dynamic update for alpha plls
Add support to do initial configuration for alpha plls and votable
alpha PLLs need to have the fsm mode enabled as part of the
initialization using flag 'SUPPORTS_FSM_MODE'.

Alpha PLLs can support two kinds of input signals, normal and latched.
The normal input is directly passed to the core, while the latched input
requires a latch and acknowledge sequence to be performed for the
changed input to propagate.

Alpha PLLs can support dynamic update with both kind of input signals.
The ones which support this using a latched interface however need to
follow the latch/wait-for-ack sequence to be performed when the rate
changes. Mark these with a new flag 'SUPPORTS_DYNAMIC_UPDATE' to handle
this as part of clk_alpha_pll_set_rate().

PLLs could require post div to be set at runtime, add a vco_data which
could be used for these settings.

Change-Id: Ia0b9a2a52a3b33b7b68409c19c460d717eb5c1e2
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
2016-11-10 10:06:47 +05:30
Subbaraman Narayanamurthy
08cbd79f44 regulator: qpnp-labibb: add support to configure PFM for LAB regulator
As per the hardware documentation, PFM needs to be disabled for
LAB regulator during slow start. When the display is turned off,
PFM needs to be disabled with the default current limit. When the
display is turned on, after VREG_OK interrupt fires, PFM needs to
be enabled after overriding the current limit. Add support for
it. Currently this is required only for pmicobalt.

While at it, fix the current limit configuration for LAB
regulator.

CRs-Fixed: 1024407
Change-Id: Icb3781ca31dd8474cfca077c52593dc69d011127
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-09 20:03:44 -08:00
Subbaraman Narayanamurthy
83dd0b0ca0 ARM: dts: msm: Change LAB precharge time to 500us in pmicobalt
Set LAB's precharge time to max 500us to optimize the precharge
behavior as suggested in the hardware documentation.

CRs-Fixed: 1084297
Change-Id: I118f4254686caf498087847916b7710662ab31e7
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-09 20:03:44 -08:00
Subbaraman Narayanamurthy
bcac9ef54a regulator: qpnp-labibb: Rename properties to reflect the vendor
Currently, some properties in LABIBB regulator driver are having
prefix "qpnp" which is not reflecting the vendor. Change it to
"qcom" to reflect the vendor name correctly and also match with
other DT properties.

CRs-Fixed: 1071971
Change-Id: I182dddc29f3d7c7b449b56ac7fb84e74061cf3a4
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-09 20:03:44 -08:00
Subbaraman Narayanamurthy
06a15ee5c4 regulator: labibb: configure LCD/AMOLED mode and SWIRE control selectively
For LABIBB peripherals in pmicobalt, bootloader configures
LCD/AMOLED mode and SWIRE control based on a GPIO selector.
Hence, add support to configure them selectively.

While at it, fix the variable name used in read/write APIs to
reflect the address rather than base. Also use the pmic subtype
macros from qpnp-revid.h directly.

CRs-Fixed: 1071971
Change-Id: Ibbf3d432709eadf0808e062726804be6b2a065ee
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-09 20:03:43 -08:00
Hareesh Gundu
87cdd9228c ARM: dts: msm: Add GPU mempools properties for all msm
Add initial set of configuration for GPU mempools
to reserve page pools at init time of kgsl driver.

CRs-Fixed: 1064046
Change-Id: Ie6789e13be7316a0de43538b9e477920fa64c6bb
Signed-off-by: Hareesh Gundu <hareeshg@codeaurora.org>
2016-11-09 19:46:04 -08:00
Dhanalakshmi Siddani
e27a72cc03 ASoC: wcd9335: Add 24bit record support
Update tasha DAI for 24bit record support.

CRs-Fixed: 1084375
Change-Id: I6d04b6343713a91d97ff18631141772f92f4ed00
Signed-off-by: Dhanalakshmi Siddani <dsiddani@codeaurora.org>
2016-11-09 18:10:22 -08:00
Linux Build Service Account
e95375540c Merge "crypto: msm: qce50: Prevent deadlock during timeout" 2016-11-09 16:25:10 -08:00
Linux Build Service Account
05a0fa2b20 Merge "dma-mapping: use iommu_unmap for unmapping address" 2016-11-09 16:25:09 -08:00
Linux Build Service Account
d9a9a205a9 Merge "ARM: dts: msm: switch to RPM control for regulators on MSMFALCON" 2016-11-09 16:25:09 -08:00
Linux Build Service Account
dd4dc008b8 Merge "fg-memif: update IMA error handling and clear sequence" 2016-11-09 16:25:07 -08:00
Linux Build Service Account
c05ea068d8 Merge "spmi: pmic-arb: support show_resume_irq" 2016-11-09 16:25:04 -08:00
Linux Build Service Account
0352bfd3f3 Merge "ASoC: wcd934x: Change SIDO reference to internal" 2016-11-09 16:25:03 -08:00
Linux Build Service Account
31ce266c3f Merge "msm: kgsl: Enable retention for gpu core clock" 2016-11-09 16:25:01 -08:00
Linux Build Service Account
67dc1ae411 Merge "msm: kgsl: Ignore EAGAIN when programming perfcounter" 2016-11-09 16:24:58 -08:00
Linux Build Service Account
2d01b7daf1 Merge "msm: kgsl: Increase fault detection threshold value" 2016-11-09 16:24:57 -08:00
Linux Build Service Account
af730b8728 Merge "wil6210: validate wil_pmc_alloc parameters" 2016-11-09 16:24:56 -08:00
Linux Build Service Account
71e6cbe0b0 Merge "mdss: sde: Add register read/write debugfs for SDE rotator" 2016-11-09 16:24:55 -08:00
Linux Build Service Account
cc699c3f57 Merge "msm: kgsl: Declare iomem addresses as void" 2016-11-09 16:24:54 -08:00
Linux Build Service Account
04fa73f4a4 Merge "msm: kgsl: Correct the merciu size for a540" 2016-11-09 16:24:53 -08:00
Vikram Mulukutla
4142e30898 timer: Don't wait for running timers when migrating during isolation
A CPU that is isolated needs to have its timers migrated off to
another CPU. If while migrating timers, there is a running
timer, acquiring the timer base lock after marking a CPU as
isolated will ensure that:

1) No more timers can be queued on to the isolated CPU, and
2) A running timer will finish execution on the to-be-isolated
   CPU, and so will any just expired timers since they're all
   taken off of the CPU's tvec1 in one go while the base lock
   is held.

Therefore there is no apparent reason to wait for the expired
timers to finish execution, and isolation can proceed to migrate
non-expired timers even when the expired ones are running
concurrently.

While we're here, also add a delay to the wait-loop inside
migrate_hrtimer_list to allow for store-exclusive fairness
when run_hrtimer is attempting to grab the hrtimer base
lock.

Change-Id: Ib697476c93c60e3d213aaa8fff0a2bcc2985bfce
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
2016-11-09 15:57:24 -08:00
David Keitel
9dd0547cf5 ARM: dts: msm: add new mapping table for memlat
Modify the code-dev mapping table for memlat to
further improve power and performance on msmcobalt v2.

Change-Id: Ida2c99d7fd56b5b277653c42808f08f4f23ed790
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
2016-11-09 12:49:36 -08:00
Saravana Kannan
5d1169198d PM / devfreq: Restart previous governor if new governor fails to start
If the new governor fails to start, switch back to old governor so that the
devfreq state is not left in some weird limbo.

Change-Id: I7cf1e6ceb63d27ce08b2d17b97a9844d257464ce
Signed-off-by: Saravana Kannan <skannan@codeaurora.org>
2016-11-09 09:55:27 -08:00
Yasir Malik
8ae62993fc crypto: msm: qce50: Prevent deadlock during timeout
Lock out interrupts during issuing dummy request in timeout to prevent from
a potential deadlock happening.

Change-Id: I986d8c36c839a1dee23761465ad331ffc31dd6ac
CRs-Fixed: 1008319
Acked-by: Che-Min Hsieh <cheminh@qti.qualcomm.com>
Signed-off-by: Yasir Malik <ymalik@codeaurora.org>
2016-11-09 09:43:31 -08:00
Alan Kwong
54b03424a7 msm: sde: add buf_finish callback to clear last fd
Fd is tunneled using userptr memory type to v4l2 rotator
driver. Fd can assume the same value between multiple qbuf but
with the underlying mapping modified. However, v4l2 assumes that
if userptr of the same value are passed in, the underlying buffer
is the same and will bypass memory mapping callback. This will
cause problem for fd tunneling because the obsolete mapping is
used.

To ensure buffer mapping, add buf_finish callback to clear last
fd value before dequeuing buffer back to user client. This will
force the next queue buffer command to invoke memory mapping callback
since the incoming fd value is different from the reset value.

CRs-Fixed: 1084634
Change-Id: I932a58fc633918b151959fcbe320668a87dbc49c
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
2016-11-09 08:22:13 -08:00
Santhosh Punugu
4dbfc38081 msm: kgsl: add egl_surface/egl_image usage count in debugfs
Add more information to the debugfs kgsl/proc/<pid>/mem which
will allow memtrack to correctly assign allocated ion buffer
memory to a process. The additional columns show the number of
kgsl_mem_entries which have a usage of egl_image (or) egl_surface.

When attaching a dma_buf to kgsl, use the dma_buf_attachment's
(void*)priv to point back to the kgsl_mem_entry. This makes it
possible to iterate through all attachments on a dma_buf and
gather statistics from each kgsl_mem_entry associated with the
dma_buf.

CRs-Fixed: 1073673
Change-Id: I1ef3bd0da3f74fa41074021699b2226c48bde9c3
Signed-off-by: Santhosh Punugu <spunug@codeaurora.org>
2016-11-09 21:37:54 +05:30
Venkatesh Yadav Abbarapu
12b2a543d3 pinctrl: qcom: Add all the gpios to pingroups for msmfalcon
Any driver can use gpio as function, so adding all the gpios
to pingroups.

Change-Id: I4949954c7b546030a4a94c74bb68c2eb4f6d4718
Signed-off-by: Venkatesh Yadav Abbarapu <vabbar@codeaurora.org>
2016-11-09 16:58:50 +05:30
Ashay Jaiswal
110f023c2c ARM: dts: msm: switch to RPM control for regulators on MSMFALCON
Convert most of the pmfalcon stub-regulator devices to a
rpm-smd-regulator devices. This ensures that requests made for
these regulators are aggregated by the RPM processor along with
the requests from other processors.
Also, add a dummy gfx_vreg_corner regulator until the CPR node
is added.

While at it, rename all regulators names and add pm/pm2 prefix
to differentiate between regulators on multiple supported PMICs.
Also update all clients with new regulator phandles.

CRs-Fixed: 1077493
Change-Id: I95b17de5bf17b62096d2c9d60633b6b30768752a
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2016-11-09 13:06:57 +05:30
Ajay Singh Parmar
c707334396 msm: mdss: dp: select pin assignment D for multi-functionality
If a protocol converter or HUB or a dongle supports multi-function
to support both displayport and USB simultaneously and exposes
pin assignment D as supported one, prefer pin assignment D to be
configured on the ports.

Change-Id: Ia69987c0e15ec5f15a07ca3a0e44174ab6e5feb9
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2016-11-08 17:31:14 -08:00
Chandan Uddaraju
720d736d5b mdss: display-port: fix link rate calculation
The current generated link rate in software doesn't
consider fractional values. As a result, for few of
the boundary cases, the calculated link rate is not
correct. Fix this by checking for any fractional values.

Change-Id: I3366b70c7e5bfa2a240aa24f1e0c70b54d686721
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-11-08 17:01:40 -08:00
Chandan Uddaraju
fa8b3ea588 clk: msm: mdss: fix divider configuration for 5.4 Ghz link rate
Update the FRAC_START3 register settings for 5.4 GHz link
rate in Display-Port PLL driver. This is needed for accurate
link and pixel clock values.

Change-Id: Ib6a0ee570fe2d5a1d43296e792a354ca25b1d82c
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-11-08 17:01:39 -08:00
Chandan Uddaraju
85700def84 mdss: display-port: add support to configure stream attributes
Update the MISC settings register according the color
depth and format. Update the MVID and NVID registers
using the M and N values used to configuring
the DP pixel clock.

Change-Id: I67e08d3491fbb7c0960c463cc8f979238b89d818
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-11-08 17:00:24 -08:00
Hemant Kumar
ab1ac1288b usb: host: xhci: Replace msleep with usleep_range
Since usleep_range provides better accuracy in
comparison to msleep. This helps in reducing the
latency of host bus resume.

Change-Id: Id22104b9e5b63153731df9eb55759de9a86128c6
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-11-08 15:47:53 -08:00
Harshdeep Dhatt
54162545a1 ARM: dts: msm: Enable gpu-quirk-disable-lmloadkill for msmcobalt
A540v1 and v2 both need to enable the LMLOADKILL quirk for the
GPU.

CRs-Fixed: 1036444
Change-Id: I84243578a1ef2f9948f0c9a8c1c00dc6a31eb579
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2016-11-08 15:15:31 -07:00
Harshdeep Dhatt
00e0494320 msm: kgsl: Add qcom,gpu-quirk-disable-lmloadkill
Add a quirk to set LMLOADKILLDIS bit in A5XX_VPC_DBG_ECO_CNTL
and clear LMLOADKILLDIS bit in A5XX_HLSQ_DBG_ECO_CNTL registers.
This is done to avoid a VPC corner case with local memory(LM)
which leads to corrupt internal state on A540 and its derivatives.

CRs-Fixed: 1036444
Change-Id: I31008433f19924bb35560d3e35fe0665e73751d5
Signed-off-by: Harshdeep Dhatt <hdhatt@codeaurora.org>
2016-11-08 15:15:25 -07:00
Sunil Paidimarri
41d38586f9 msm: ipa: Add support to configure WAN RX desc size
Embedded tputs depend on WAN RX desc size, but, every target
has its own limitations of memory and embedded tputs goals.
So, add parameter to configure WAN RX desc size through device tree.

Change-Id: I28c550058dd990c9c8cd368a2677097c7f057ccd
CRs-Fixed: 1081543
Signed-off-by: Sunil Paidimarri <hisunil@codeaurora.org>
2016-11-08 13:48:42 -08:00
Subbaraman Narayanamurthy
bc17be09da fg-memif: update IMA error handling and clear sequence
Based on the hardware documentation, update the IMA error
handling and clear sequence. In addition, check for DMA errors
and clear it before SRAM transactions begin. Also, check for IMA
hardware status to run the IMA clear sequence during ima_init and
not just based on IMA exception status alone. This is to help
with FG SRAM access to resume again properly in case of an error
encountered.

Change-Id: I583fa51599a1cbbd029cb45c075429730d2e071b
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-11-08 12:29:05 -08:00
Karthikeyan Periasamy
4a1e5a36de msm: vidc: increase timeout value for hw response and power collapse
When running concurrent video session, there are some possibilities
that CPU may take more than a second  to schedule hfi work handler.
In those cases, one of the threads which is waiting for the response
is timing-out.

Increase hw response timeout and power collapse timeout will give
more time for hfi work handler to be scheduled and process the response
messages.

CRs-Fixed: 1086284
Change-Id: I768ef6c941c791af5a45d846fa81d810b831efa5
Signed-off-by: Karthikeyan Periasamy <kperiasa@codeaurora.org>
2016-11-08 12:28:54 -08:00
Linux Build Service Account
4a91ea36cb Merge "ARM: dts: msm: Add stub regulator devices for msmtriton" 2016-11-08 11:19:15 -08:00
Linux Build Service Account
684c01af9a Merge "ARM64: config: Add VPN support" 2016-11-08 11:19:14 -08:00
Linux Build Service Account
f83f0cdbd0 Merge "ARM: dts: msm: Add QRD interposer dts file for msmcobalt" 2016-11-08 11:19:13 -08:00
Linux Build Service Account
bd04f6926f Merge "qpnp-fg-gen3: support configuring ESR FCC based on charging status" 2016-11-08 11:19:11 -08:00
Linux Build Service Account
27df8e4425 Merge "ASoC: wcd934x: Fix fake button press for headset insertion" 2016-11-08 11:19:09 -08:00
Linux Build Service Account
9d893fc136 Merge "ASoC: wcd9335: Fix AANC click and pop in voice call" 2016-11-08 11:19:09 -08:00
Linux Build Service Account
087bcf1fcf Merge "ASoC: wcd934x: Fix AANC click and pop in voice call" 2016-11-08 11:19:08 -08:00