Commit graph

572934 commits

Author SHA1 Message Date
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
Dhoat Harpal
7e1c3ad225 soc: qcom: smem_xprt: Add CDSP entry in smem xprt driver
CDSP processor entry in function add subsys_name_to_id to convert
string cdsp to corresponding id.

CRs-Fixed: 1043377
Change-Id: Iba226aa328906427593ecae35fab3396f34c19ae
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-07-21 18:28:56 +05:30
Dhoat Harpal
ed6db47f7e soc: qcom: glink: Included sched.h to avoid build error
32 bit Compilation is failed due to undeclared usage of
TASK_UNINTERRUPTIBLE.

Include sched.h header file for the definition of
TASK_UNINTERRUPTIBLE.

CRs-Fixed: 1042813
Change-Id: I947b8d08f61624b914bd82caf4276364b9833cef
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-07-21 18:13:40 +05:30
Venkatesh Yadav Abbarapu
52096a1896 arm: dma-mapping: Export arch_setup_dma_ops symbol
Some test modules need to call "arch_setup_dma_ops" to setup
the proper dma operations.

Change-Id: Icc884b53c85941f59f84bed108b536cc18b8be60
Signed-off-by: Venkatesh Yadav Abbarapu <vabbar@codeaurora.org>
2016-07-21 17:42:20 +05:30
Dhoat Harpal
a3f2ed3879 soc: qcom: smem: Add CDSP processor ID
The local table of processor IDs maintained by SMEM must match the table
of processor IDs maintained by SMEM on remote processors, because the
IDs are global.

Update the local table of processor IDs to match the table on remote
processors.

CRs-Fixed: 1043377
Change-Id: I6df0575cf54003374a5ebdbfa54e169d3545ffe7
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
2016-07-21 17:40:52 +05:30
Hemant Gupta
0ef7e894f7 Bluetooth: HID: Add support for building hid drivers
This patch adds support for enabling uhid driver in kernel which
provides interface for user space hid module to interact with
hid drivers of kernel. Without support for uhid driver, Bluetooth
HID functionality is broken completely. Also support for vendor
hid drivers is enabled so that HID profile can be connected with
these HID devices.

Change-Id: If56742a9c6b6c4ef774da6e83d57aee56bf28842
CRs-Fixed: 553571
Signed-off-by: Hemant Gupta <hemantg@codeaurora.org>
2016-07-21 03:46:48 -07:00
Susheel Khiani
36c23da759 iommu/iommu-debug: Make debug driver 32 bit compatible
Currently iommu-debug was enable only for 64 bit
targets as there were compilation issues coming
up while enabling it for 32 bit. Fix these issues
to ensure that we can use it on 32 bit targets
too.

Change-Id: If230af86f2fdd12fb5396f3b4736e57a123422bd
Signed-off-by: Susheel Khiani <skhiani@codeaurora.org>
2016-07-21 03:13:27 -07:00
Manish Poddar
80eb335deb msm: Camera buffer overflow fix
find_first_zero bit is considering addr parameter as unsigned
long and we are passing int variable.In the function it access
addr[i], so it tries to access 8 bytes , actual size of
open_idx and stream_id are 4 bytes.we change open_idx and
stream_id to long to fix it.

Change-Id: I510059cc8f495957bd2b5af9973b3495761edd06
Signed-off-by: Manish Poddar <mpoddar@codeaurora.org>
2016-07-20 22:50:49 -07:00
Krishna Chaitanya Devarakonda
25817c2873 msm: mdss: Fix mixer extension offset
The mixer extension offset for VIG3 is pointing to VIG2.
Correcting the offset value.

Change-Id: Ie54c2edc940495484f01e539cf42d5c83c4b0535
Signed-off-by: Krishna Chaitanya Devarakonda <kdevarak@codeaurora.org>
2016-07-20 18:54:42 -07:00
Satyajit Desai
8624f4eca5 coresight-etm4x: avoid reading trace-id from ETM hardware block
I/O read of trace-id when the CPU is in power collapse can result
in undefined behavior and system crash. Trace-id is set during
ETM init and not modified thereafter. So, there is no real need
to read the value from I/O.

Change-Id: I83029c721f7b90c65fcc8a958c7a82e65d005ed5
Signed-off-by: Satyajit Desai <sadesai@codeaurora.org>
2016-07-20 17:14:31 -07:00
Abhijeet Dharmapurikar
14e3191326 smb-lib: introduce votable to disable charging
Currently the code doesn't have a votable to enable/disable charging. It
configures enable charging at the probe time.

Introduce disable charging votable in preparation of thermal use cases
where the charger is required to disable charging but keep the switcher
on, when thermal level is at its max.

Change-Id: I145c5ed44f9ce788bd3abc6ef6aee80466e248c6
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2016-07-20 16:55:04 -07:00
Abhijeet Dharmapurikar
b4713c2ca1 smb-lib: account for Jeita while distributing FCC
The master charger has built in Jeita compensation where it reduces
FCC when the battery is in cool/warm Jeita threshold. This skews
the distribution of FCC between master and slave in parallel
configuration.

Fix this by checking if soft Jeita is active. If so reduce the requested
fcc so that master and slave get reduced share. However, since master
is reducing its FCC, add the reduction again to its share so the net
FCC on master is as per the distribution.

This also calls to handle the battery temperature change interrupt and
redistribute FCC.

Change-Id: I413cc0231a9125422efc71ed67717921af939959
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2016-07-20 16:54:55 -07:00