Commit graph

572507 commits

Author SHA1 Message Date
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
Dhoat Harpal
e77a507e6e ARM: dts: msm: Add glink_pkt devices for MSMFALCON
Glink_pkt devices expose access to certain SMD resources to userspace.

CRs-Fixed: 1043377
Change-Id: I0dc5dd822424096522d3b0b5c26da424d3c2e006
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-07-22 15:53:36 +05:30
Bruce Ding
3979272bbd input: touchpanel: Add Mstar msg21xx touchpanel driver
This is the reference driver source code for the msg21xx series.

Signed-off-by: Bruce Ding <bruce.ding@mstarsemi.com>
Signed-off-by: mstar-touch <bruce.ding@mstarsemi.com>
Git-commit: c4cdbf1ae326b8745f5e50f044d23aa8e3d3e131
Git-repo: https://github.com/mstar-touch/msg21xx

Change-Id: Ia9cbfac5dc6e1b74f47bf13dbafaacc2624ee4fd
[maol@codeaurora.org: keep the mstar original code without any
change in this commit]
Signed-off-by: Mao Li <maol@codeaurora.org>
(cherry picked from commit 2ce52642057a25fca6337826533d4fbfddede290)
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
2016-07-22 14:24:39 +05:30
Sudhakar Manapati
1bb8dffb61 input: touchscreen: remove dead code in it7258 driver
IT7258 touchscreen driver creates a character device which is
not used by anyone. Remove this dead code

Change-Id: Ied8a0048d8af17fa593c1970cabb572aac338786
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-07-22 01:33:44 -07:00
Andrew Huang
cb440b458f input: touchpanel: Add GT9xx touchpanel driver for skuf
This is the reference driver source code V1.8 for the GT9XX series.For
this first commit just copy binary, the second commit decompress the
binary and the third commit upgrade the version. We just need the newest
version, so Squashed the following commits:

	commit 31915760747230826fa474fbb5b06a70b103c7e7
	Author: Andrew Huang <andrew@goodix.com>
	Date:   Thu Jun 27 10:06:56 2013 +0000

	    This is the official reference driver source code V1.8 for the GT9XX series CTP controller,release for CIENET.

	    Signed-off-by: Andrew Huang <andrew@goodix.com>

	    git-svn-id: http://gtp-drivers-for-android.googlecode.com/svn//drivers@15 4d552555-e8e2-8f43-36d7-85641c3b7a2e

	commit 82f70eaf58b0996e9f488b170f81a107642d4df8
	Author: unknowtree@gmail.com <unknowtree@gmail.com>
	Date:   Thu Jun 6 02:58:58 2013 +0000

	    git-svn-id: http://gtp-drivers-for-android.googlecode.com/svn//drivers@7 4d552555-e8e2-8f43-36d7-85641c3b7a2e

	commit 5c42b80f40a9731ac45d4e04a7a7528367f713e7
	Author: unknowtree@gmail.com <unknowtree@gmail.com>
	Date:   Tue Jun 4 08:53:01 2013 +0000

	    git-svn-id: http://gtp-drivers-for-android.googlecode.com/svn//drivers@5 4d552555-e8e2-8f43-36d7-85641c3b7a2e

Change-Id: I30420fc51fe1bb153c36342e607539e5cd74de61
Signed-off-by: Pan Fang <fangpan@codeaurora.org>
(cherry picked from commit ab45aab306d8b8d16619bc02f35465fb8d6ff066)
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
2016-07-22 13:36:09 +05:30
Alfred.Deng
2e21c93ee9 input: touchscreen: Add Touch screen driver for IC it7258
This is the reference driver source code of it7258 touchscreen driver.
Signed-off-by: Alfred Deng <Alfred.Deng@ite.com.tw>
Git-commit: 3852a7ccce89c17ec3c4165acf9c81753c940104
Git-repo: git://github.com/ite-touch/touchscreen-driver

Change-Id: Ic1eab3ba79b8e8e5c259bb92f2692fd0db5fc8d3
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
(cherry picked from commit c25c3f1a0f29d7989b7d7058da74e465665bf279)
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
2016-07-22 12:21:01 +05:30
Mohan Pallaka
96a21fd1f8 input: ft5x06_ts: Add driver for ft5x06 series
Ft5x06 controllers are single chip capacitive
touch panel controller ICs with a built-in 8 bit
Micro Controller Unit. It supports multi-touch
capability and can detect up to five touches.

Change-Id: I39eb1175d473d1f2c463e1c4a0a1606307da9dc0
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
(cherry picked from commit a2595074a6528a1a2d28470c11ed14c21081068c)
2016-07-22 11:48:01 +05:30
Taniya Das
d81650468e clk: msm: Fix MDSS compilation issue
The MDSS clock drivers were not getting compiled due to an extra 'y', fix
the same.

CRs-Fixed: 1041122
Change-Id: I21e62361f40eb654c369048d01e158d4b96dd551
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-07-22 10:14:33 +05:30
Hemant Kumar
c24e9fe614 usb: dwc3: Fix NULL ptr dereference in ep disable ops
In RNDIS composition when windows PC is suspended RNDIS
driver sends flow control enable which frees the trb pool
of the RNDIS endpoints and trb pool pointer is set to NULL.
When bus suspend happens RNDIS gsi driver performs endpoint
disable operation because remote wake up is disabled. Endpoint
disable perform memset 0 on trb pool which is already set to
NULL causing the NULL pointer dereference. Fix this by adding
NULL check for trb pool before doing memset 0.

CRs-Fixed: 1044799
Change-Id: I2a233e85139be0612314e6fa3dfa1d1c0fa04547
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-07-21 14:09:51 -07:00
Subbaraman Narayanamurthy
f56fc4b5af of_batterydata: Pass battery id directly to find battery profile
Currently power supply name is passed to get the battery profile
in of_batterydata_get_best_profile(). This creates a dependency
of waiting for the driver that has the power supply class device.

Improve this by passing the battery id directly to the API. This
way, getting battery id will be the responsibility of caller.

CRs-Fixed: 1043798
Change-Id: I7a8c2b2fcc9b43e2e858114f7312fccf96dc3f78
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2016-07-21 12:23:07 -07:00
Shubhraprakash Das
2826659913 msm: camera: isp: Vote bandwidth with clock enabled
Vote for bandwidth after clocks are enabled. For bandwidth
voting clocks need to be on.

CRs-Fixed: 1044777
Change-Id: I9be1ee26419c082cda6351ef6d5aeedc6e17de55
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
2016-07-21 11:41:09 -07:00
Tatenda Chipeperekwa
1022ba2b95 clk: msm: hdmi: fix value of constant for minimum VCO rate
Fix the value of the constant for the minimum VCO rate by
setting it to 250MHz. This fix will allow valid clock rates
such as 252MHz to be configured for the HDMI PHY and enable
certain HDMI modes to work correctly instead of failing the
validation checks when setting the VCO rate.

CRs-Fixed: 1039464
Change-Id: I0e90de49d295563aba87af39169bd3dea1f8ade7
Signed-off-by: Tatenda Chipeperekwa <tatendac@codeaurora.org>
2016-07-21 11:19:03 -07:00
Chandan Uddaraju
ab2606e098 defconfig: msmcortex: Enable DisplayPort driver
Add support to displayport driver for msmcortex
platform.

Change-Id: I90d82873381cb1e9b86ed339d755365cccded537
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-07-21 11:11:41 -07:00
Chandan Uddaraju
5e4e4dc4ec msm: mdss: dp: rename EDP files to DP
EDP is a add-on support for DP driver. Rename the
EDP [.ch] files and the AUX channel driver file to DP.

Change-Id: Ifeadae2f58eb4fbf398a682beb9180c4f7419041
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-07-21 11:11:30 -07:00
Chandan Uddaraju
cd6d9f1131 mdss: Update EDP driver to support DisplayPort
Create new "util" files to support IO operations.
Use default resolution to register DP driver with FB.
Update regulator and clock changes to support generic
implementation.

Change-Id: I896ab17afce77faf3dcf64fd75b15eaec9d5a00e
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-07-21 11:11:18 -07:00
Ping Li
d1e486c5fa msm: mdss: Update backlight filter for AD
A new post-processing ioctl is added to pass AD backlight threshold
and AD backlight low limit to driver. AD backlight low limit is used
to prevent very small backlight value been sent to AD core, which
will cause over-sensitivity for AD core.

Change-Id: I6e4222728d805d5b1d07cce4bf4648219cdaf587
Signed-off-by: Ping Li <pingli@codeaurora.org>
2016-07-21 10:36:44 -07:00
Subash Abhinov Kasiviswanathan
3d78e43011 net: Revert upstream changes which break routing in tunnel scenarios
This reverts the following -

commit f1900fb5ec ("net: Really fix vti6 with oif in dst
lookups")
'commit 4148987a51 ("net: Fix vti use case with oif in dst
lookups for IPv6")
commit 42a7b32b73 ("xfrm: Add oif to dst lookups")

Routing in tunneled scenarios are completely broken due to these
upstream commits. Revert these changes as a workaround till a
solution is determined internally and is accepted upstream.

CRs-Fixed: 1039009
Change-Id: I4e02573bc6dadf8d1a2ce50313e6d0c6e6a0e599
Acked-by: Abhinav Kannan <kannana@qti.qualcomm.com>
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
2016-07-21 10:58:54 -06:00
Yuanyuan Liu
e5c576964b icnss: Add state check before calling wlan suspend/resume
Check if wlan module is loaded before calling wlan
suspend/resume as wlan could be turned on before FW
ready. In this case, wlan driver operations are registered
to icnss platform but wlan driver is not loaded.

CRs-Fixed: 1044223
Change-Id: I134790377e15d4003ecfa686a9fa7ab720e08865
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2016-07-21 09:48:10 -07:00
Taniya Das
190ac0a1b8 clk: qcom: clk-dummy: Add a dummy clock provider
Add a dummy clock provider that registers a simple callback that
in turn always returns the dummy clock for any clk_get call. This is useful
for unimplemented clocks.

Change-Id: I08fcb174fd0e0c49f8069e106b48597bcdfe847d
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-07-21 22:04:06 +05:30
Ram Chandrasekar
f70b8219bb msm: thermal: Update the hotplug initialization
Hotplug initialization will trigger a hotplug if temperature stays above
the trip threshold and will try to online if temperature is below the
clear threshold. Since KTM does boot mitigation till thermal-engine is
running, hotplug init can be called twice. First from post init script
and second when the hotplug task is initialized. There is a possiblity
the first init call can set the hotplug local mask and the second init
call wont clear or update the mask with correct value if the temperature
is between the hotplug trip and clear threshold.

Update the hotplug init API to perform the check only if the hotplug
task is initialized. Also the hotplug check will clear the hotplug local
mask if the temperature is not above the trip threshold.

Change-Id: Ica1325f8aa65c338ea0e5b201f566607c3ddf904
Signed-off-by: Ram Chandrasekar <rkumbako@codeaurora.org>
2016-07-21 10:20:07 -06:00
Ashish Jain
e9276dfdcd ASoC: msm: qdsp6v2: DAP: Update check to validate data length
A big negative data length value can bypass the current check,
update the condition to ensure that only valid data length is used
to copy the params.

CRs-Fixed: 1041130
Change-Id: I6e1a58e901e4c042acfb0ab0a6223dec2949aefe
Signed-off-by: Ashish Jain <ashishj@codeaurora.org>
2016-07-21 07:46:43 -07:00
Dhoat Harpal
c2e4cfd2db ARM: dts: msm: Add G-Link SSR entries for MSMFALCON
SSR entries contain the list of subsystems to notify when an SSR for a
given subsystem occurs. This information enables G-Link to handle
closing and re-opening channels in the case of SSR.

CRs-Fixed: 1043377
Change-Id: Ibd8ceb8149b3041ce1f58ac4c3642d7391b89385
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-07-21 18:52:30 +05:30
Dhoat Harpal
d375ea2d63 ARM: dts: msm: Add SMEM entry for MSMFALCON
Add the SMEM entry to enable the use of shared memory by different
processors in the SoC.

CRs-Fixed: 1043377
Change-Id: Ic36a67c724d7f8a0e64affba92856160cce914bb
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-07-21 18:38:32 +05:30