Commit graph

572426 commits

Author SHA1 Message Date
Osvaldo Banuelos
9992623763 regulator: cprh-kbss-regulator: add support for APM crossover corner
Add support for a corner whose open-loop voltage corresponds to the
VDD supply voltage required during an APM switch transition. This
corner is requested by OSM hardware to the CPRh controller when
the VDD supply must be set to a specific voltage to ensure a stable
APM switch procedure. Define a crossover corner of 880 mV for both
VDD_APC CPR devices.

CRs-Fixed: 1021656
Change-Id: Icf4b640ec2c330b0d9721d3494297e2d8445c9b6
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
2016-07-26 18:35:52 -07:00
Siddartha Mohanadoss
b1b5d0af46 thermal: qpnp-adc-tm: Update reverse threshold and notification
Add support to scale reverse thresholds on VADC_TM refresh
peripheral for voltage measurements such as vbatt, vph_pwr,
thermistor channels, PMIC die temperature.

VADC_TM refresh uses one interrupt for high and low threshold
notification. Update the sequence to check the respective
sensors status for high/low threshold crossing for the VADC_TM
refresh and notify the clients on a threshold crossing.

Change-Id: I070b537e14b505bc247f2f5e6a0e125f1d0fbb81
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2016-07-26 18:18:07 -07:00
Amit Shekhar
ce8006a221 msm: vidc: Fix limit for LTR mode control
Currently, maximum value for VIDC_VIDEO_LTRMODE contrl is set to
LTR_MODE_PERIODIC which is not supported. By limiting it to
LTR_MODE_MANUAL, the control value will stay with in supported range.

CRs-Fixed: 1046755
Change-Id: I85b8ac6dc847343d42cb2f6466137bf43fc1b7c1
Signed-off-by: Amit Shekhar <ashekhar@codeaurora.org>
2016-07-26 17:37:54 -07:00
Skylar Chang
072a88c698 msm: ipa3: add support for SMMU to USB
Add support to IPA USB when IPA SMMU is enabled.
IPA USB will create a mapping for USB registers and
USB data structures for GSI.

CRs-Fixed: 1046497
Change-Id: Ib177606acdfa9b3826c929578d1c8094242f90cd
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-07-26 17:30:32 -07:00
Devdutt Patnaik
8b42db2259 usb: f_gsi: Update connection parameters for GSI channels
Stage 1 SMMU enablement on IPA requires that the USB
driver pass physical and virtual addresses to IPA for
addresses that GSI hardware will write to. Update the
connection params for GSI channels to pass this info
to IPA driver.

Change-Id: Ibeedeef900b069b3a113b2daabf461797f28287b
Signed-off-by: Devdutt Patnaik <dpatnaik@codeaurora.org>
2016-07-26 17:27:43 -07:00
Skylar Chang
a5dd060414 msm: ipa3: changes to IPA USB APIs to support SMMU
Add support to IPA USB APIs for SMMU.

CRs-Fixed: 1046497
Change-Id: Ifca675f308b59913743baf2e59dc3ed515a5b974
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-07-26 17:17:22 -07:00
Skylar Chang
ef0049eefd ARM: dts: msm: put ipa3 in smmu s1-bypass on msmcobalt
Enable SMMU on IPA3 and put in stage1-bypass mode to
not do the memory mapping.

Change-Id: Id2811c67a423c82201993b3119647a3d4caf4517
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-07-26 15:28:54 -07:00
Linux Build Service Account
d1313a37fe Merge "clk: msm: osm: support PLL droop detector workaround" into msm-4.4 2016-07-26 15:08:56 -07:00
Runmin Wang
26a6ee3dd7 defconfig: arm64: msm: enable CP15 barrier and SETEND simulation
Enable CP15 barrier and SETEND simulation on msmcobalt.

CRs-Fixed: 1046478
Change-Id: Ia0271caef25d3fdc1295962b21e0cbdf67190498
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-07-26 14:18:02 -07:00
Ben Romberger
d0424df41e ASoC: msm: qdsp6v2: Add size check in audio cal ioctl
For the audio get calibration ioctl compare the allocated
buffer size to the size of the header and cal type header
to ensure the buffer is big enough.

Change-Id: I851b4454e8420706ad3263d67e892720d46e5718
Signed-off-by: Ben Romberger <bromberg@codeaurora.org>
2016-07-26 12:16:09 -07:00
Subbaraman Narayanamurthy
cda98b947c ARM: dts: msm: add FG GEN3 device on pmicobalt
FG GEN3 peripheral is present on pmicobalt and it provides the
battery parameters like current, voltage, resistance and
temperature for the clients that depend on them. Add FG GEN3
device on pmicobalt to support that.

Change-Id: I7ebb6a50564abc8e607f688d59690c55c10e2dc9
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-07-26 12:08:56 -07:00
Subbaraman Narayanamurthy
b08d3a6891 power: qcom-charger: add driver for GEN3 fuel gauge
GEN3 FG (fuel gauge) is a new hardware peripheral which cannot
be supported along with existing GEN1/GEN2 FG supported under
qpnp-fg.c. Some of the differences are listed below.

- No conventional memory access for accessing SRAM
- No OTP region for battery profile
- FTRIM registers will be loaded to SRAM
- SRAM partitioning and address format got changed completely
- Battery id detection done by RR_ADC
- Encoding/Decoding changes for battery parameters

Hence add a new driver to support this GEN3 FG. This driver
reads the battery parameters like voltage, current, temperature,
resistance etc. acquired by the FG hardware and expose to the
userspace through a power supply class device.

Change-Id: Ibcd6e49c7dc7c3520527bcf9553296e846fb7458
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-07-26 12:08:49 -07:00
Venkat Gopalakrishnan
0b6b69d591 scsi: ufs: Crash the system on unrecoverable state
If we have hit fatal errors and are not able to recover using
a reset, crash the system instead of proceeding and causing
further system failures.

Change-Id: I01820e4e8d3d3b603f16b615ae475095c3a417dd
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
2016-07-26 11:36:59 -07:00
Yuanyuan Liu
d8fabbe1ff icnss: Update event workqueue flags
There are events doing probe/remove operations that
shouldn't be swapped. Strict the order by setting
max_active to 1 and adding the WQ_UNBOUND flag.

Change-Id: If65c952622bbaa3f71de6d02c81dbbba5ccead4e
CRs-Fixed: 1046131
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-07-26 11:20:05 -07:00
Sudhakar Manapati
0a7c11aa67 input: it7258_ts_i2c: clean up the it7258_ts_i2c driver
Clean it7258_ts_i2c touchscreen driver from checkpatch errors.

This patch is a propagated patch from 3.18 kernel
'commit 6b0cae0c59dc ("input: it7258_ts_i2c: clean
checkpatch errors")'

Change-Id: I7eac4a04a19beebe8c89b5328a2cf921fa78bb69
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
2016-07-26 14:56:01 +05:30
Deepak Kushwah
e423dde817 msm: vidc: add h264 8x8 transform mode support
Add h264 8x8 transform mode support for Client to
enable or disable it when required.

CRs-Fixed: 1045849
Change-Id: I365a3acd2b3375f093da39e68a98a2a4d35c2287
Signed-off-by: Deepak Kushwah <dkushwah@codeaurora.org>
2016-07-26 14:34:52 +05:30
Jack Pham
34d404c419 usb: pd: Add vendor defined message handling
Add APIs to send and receive vendor defined messages (VDM) over
USB PD. A handler for a standard or vendor ID (SVID) can register
callbacks to be notified of reception of VDM messages. One
use case is for another kernel driver, such as DisplayPort, to be
able to be notified when an Alternate Mode adapter is connected
to the Type-C port in order to enter modal operation. SVID
handlers should maintain their own state and timer resources
in order to comply with the Power Delivery Specification.

Change-Id: Ibe26e6deeca587f21f8121f6f32cf7cc0a5c3e23
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2016-07-25 16:18:11 -07:00
Hemant Kumar
6373b35536 sound: usb: Enable autosuspend for usb audio device
This allows runtime suspend to kick in upon all the
children of usb device are suspended. It saves power
when usb audio device is connected but not data transfer
is taking place.

CRs-Fixed: 1003807
Change-Id: I227a74c029f10ffda9ceccc10322ad71e7fd0435
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-07-25 16:16:44 -07:00
Satyajit Desai
cbc222bdba ARM: dts: msm: add default trace sink for MSMCOBALT
Enable TMC-ETF as the default sink for CoreSight logging.

Change-Id: Ifc867e83746f51abc8d990a334d3f5642efc9c33
Signed-off-by: Satyajit Desai <sadesai@codeaurora.org>
2016-07-25 11:42:16 -07:00
Deepak Katragadda
dbdef886dd ARM: dts: msm: Add the timeout property to BIMC SMMU GDSC on MSMCOBALT
The gdsc_bimc_smmu might take longer than the default time of
100usecs to enable. Add the qcom,gds-timeout property to it
to make this time configurable.

CRs-Fixed: 1045876
Change-Id: I94411718f6715860358b4e8eff9262c4034a5e17
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
2016-07-25 11:07:27 -07:00
Benjamin Chan
188d4b02b9 msm: mdss: Update LM parameters during dest scaler transition
When there is a transition between on/off of destination scaling, the
layer mixer and control path width/height parameters need to be updated
accordingly from the user space. Scaling coefficients and detail
enhancer parameters update should not affect the LM width/height.

CRs-Fixed: 1035873
Change-Id: Ieb6668a1cedd53a17d2cbc13f40a8463c0280769
Signed-off-by: Benjamin Chan <bkchan@codeaurora.org>
2016-07-25 10:18:32 -07:00
Alexandra Chin
d13776d16a input: touchscreen: Add synaptics v1 driver
This is the initial commit from thirt party project.
Git-commit: bedea8a0819fc95acd0222e21e61203c8a08bb16
Git-repo: https://github.com/synaptics-touch/synaptics-dsx-i2c/

Change-Id: I892bc03122b096b43fc7f6b757b1161470597ddb
Signed-off-by: Alexandra Chin <alexandra.chin@tw.synaptics.com>
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
(cherry picked from commit 7d4470e29ce77e62acc14a21210e88207e4692b5)
2016-07-25 11:23:29 +05:30
Linux Build Service Account
cc915a3931 Merge "clk: qcom: clk-dummy: Add a dummy clock provider" 2016-07-24 09:55:39 -07:00
Linux Build Service Account
5e3b522e77 Merge "ARM: dts: msm: Add GDSC data for mnoc fab for msmcobalt" 2016-07-24 02:02:45 -07:00
Linux Build Service Account
5f77b228da Merge "msm: mdss: mdp: fix handling of GDSC off notifier" 2016-07-24 02:02:44 -07:00
Linux Build Service Account
4b20cd07d7 Merge "ASoC: wcd: add wcd934x gpio controller device" 2016-07-23 16:05:25 -07:00
Gautham Mayyuri
d3f75c4677 msm: jpegdma: set minimum acceptable dimension as 8x8
Reduce minimum acceptable dimension from 32x32 to 8x8.

CRs-Fixed: 1044353
Change-Id: Iebf23be99482e97a4a94b700067964a84830180d
Signed-off-by: Gautham Mayyuri <gmayyuri@codeaurora.org>
2016-07-22 14:37:52 -07:00
Avaneesh Kumar Dwivedi
077bf167f0 soc: qcom: Make service locator call asynchronous
Make get_service_location() asynchronous, which was a blocking call
before. This also means every client will have it's own thread and
doesn't need to create thread on their end.

CRs-Fixed: 1045353
Change-Id: Ibcccf56d41779b808d1835f62969e3c9365939e8
Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
2016-07-22 14:32:23 -07:00
Zhen Kong
aa57cd6dbc crypto: msm: crypto driver performance improvement
To minimize spinlock, the qce50 client is assumed that it can only issue
request to qce50 driver one at a time. After a request is issued to
qce50 from qcrypto. Without waiting for completion, other requests can
still be issued until the maximum limit of outstanding requests
in qce50 reaches.

To cut down the chance of udp socket receive buffer overflow the following
schemes are provided -
The number of bunched requests in qce50 is based on the data length of
the current request to cut down delay for smaller packets. In turn,
with smaller delay, the number of completed requests to process in
seq_response() completion function is less.

The scheduling of qcrypto requests are changed from least use to
round robin. This way, the distribution of requests to each engine
is more even. As the result, reordering of completed requests will
be less. Completed requests to handle in completion callback is less
at a time.

Change-Id: I723bac2f9427cddb5248101c9ac3f2b595ad0379
Acked-by: Che-Min Hsieh <cheminh@qti.qualcomm.com>
Signed-off-by: Sivanesan Rajapupathi <srajap@codeaurora.org>
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2016-07-22 12:18:30 -07:00
Skylar Chang
2f2f9519e3 msm: ipa3: fix packet handling for multiple buffers
Enable EOB event notification from GSI in order to receive completion
events on partial packets, which are split to multiple buffers.
This change is fixing few bugs in the handling of such a scenario.

CRs-Fixed: 1043511
Change-Id: I830dba8f4e47e3383b09639416fc704caa94cdf2
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-07-22 10:57:58 -07:00
Chandan Uddaraju
2d313b43d2 ARM: dts: msm: add pinctrl settings for DP GPIOs for msmcobalt
Add active and sleep sets for the DP Aux input lanes, HPD and
the USB-type-C orientation detection GPIO.
These GPIOs are needed to enable display on the DP interface.

Change-Id: I4d743246dfe74a80ecce283b6056baf153e588f9
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-07-22 10:35:44 -07:00
Linux Build Service Account
3f4a2a724e Merge "input: touchscreen: remove dead code in it7258 driver" 2016-07-22 08:56:34 -07:00
Linux Build Service Account
68913b1d37 Merge "input: touchscreen: Add Touch screen driver for IC it7258" 2016-07-22 08:56:34 -07:00
Linux Build Service Account
10b41ef511 Merge "of_batterydata: Pass battery id directly to find battery profile" 2016-07-22 08:56:33 -07:00
Linux Build Service Account
ac21f49840 Merge "clk: msm: Fix MDSS compilation issue" 2016-07-22 08:56:32 -07:00
Linux Build Service Account
820e736182 Merge "dwc3: gadget: Add debug event for pull up operation" 2016-07-22 08:56:30 -07:00
Linux Build Service Account
8cc16db1d9 Merge "msm: camera: isp: Vote bandwidth with clock enabled" 2016-07-22 08:56:29 -07:00
Linux Build Service Account
a092b9d11e Merge "msm: camera isp: Control camif interrupts on camif enable/disable" 2016-07-22 08:56:28 -07:00
Linux Build Service Account
ccb831883f Merge "msm: mdss: fix mdss errors on 32-bit compilation" 2016-07-22 08:56:27 -07:00
Linux Build Service Account
a21b7b7eb3 Merge "soc: qcom: glink: Included sched.h to avoid build error" 2016-07-22 08:56:26 -07:00
Linux Build Service Account
54911af486 Merge "arm: dma-mapping: Export arch_setup_dma_ops symbol" 2016-07-22 08:56:24 -07:00
Linux Build Service Account
00f2ccdbf8 Merge "soc: qcom: smem_xprt: Add CDSP entry in smem xprt driver" 2016-07-22 08:56:22 -07:00
Linux Build Service Account
55a7d839d0 Merge "ARM: dts: msm: Add G-Link SSR entries for MSMFALCON" 2016-07-22 08:56:21 -07:00
Linux Build Service Account
c29dc4ae0a Merge "ARM: dts: msm: Add SMEM entry for MSMFALCON" 2016-07-22 08:56:20 -07:00
Linux Build Service Account
a75cdc332b Merge "Bluetooth: HID: Add support for building hid drivers" 2016-07-22 08:56:19 -07:00
Srinivas Ramana
6666355c67 soc: qcom: build kryo-l2-accessors only for msm8996
Build kryo-l2-accessors only for MSM8996. This will avoid
compilation errors while building for 32-bit.

Change-Id: I3433623797abbefc5f19991c215260d1df11e42a
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
2016-07-22 19:10:59 +05:30
Srinivas Ramana
86c26fd41d clk: msm8996: compile 8996 clock files only for ARCH_MSM8996
Currently on msm-4.4 kernel, MSM8996 clock files are built when
ARCH_QCOM is enabled. Compile 8996 clock files only when
ARCH_MSM8996 is enabled, to avoid any issue when compiling for
other targets.

Change-Id: I58440ae6cf7f02b7137312c38219efeaccf06b58
Signed-off-by: Srinivas Ramana <sramana@codeaurora.org>
2016-07-22 19:10:23 +05:30
Dhoat Harpal
fc9dc4a439 ARM: dts: msm: Add IPC Router devices for MSMFALCON
The IPC Router devices define the topology for high-level interprocessor
communication within the SoC.

CRs-Fixed: 1043377
Change-Id: I565c7c6323a129c4f29c8da5c3e8719121f1109d
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-07-22 17:15:57 +05:30
Preetam Singh Ranawat
8004ba2299 ASoC: open ASM session with 24 bit for 24 bit playback
For 24 bit playback decoder is opened with 16 bits per sample, So
decoder output is 16 bit only.
Set bits per sample to 24 if codec format is SNDRV_PCM_FORMAT_S24_3LE.
Set bits per sample to 16 as default value in capture prepare use case.

CRs-Fixed: 1035154
Change-Id: I14271b17441308f8ec6dfaea566c01887d1233f4
Signed-off-by: Preetam Singh Ranawat <apranawat@codeaurora.org>
2016-07-22 04:27:31 -07:00
Dhoat Harpal
63ef0b4134 ARM: dts: msm: Add G-Link SMEM Transport entries for MSMFALCON
These entries allow the G-Link SMEM Transport to function, which allows
G-Link to use shared memory as an underlying physical transport.

CRs-Fixed: 1043377
Change-Id: I879f2229b4ab74d760c03f2ce12a9ba3b1c9af8d
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-07-22 15:56:12 +05:30