Commit graph

573231 commits

Author SHA1 Message Date
Rohit Gupta
10824a8806 PM / devfreq: memlat: Remove kfree() on probe fails
Memory allocated with devm_kzalloc() is automatically freed if
the probe function fails and returns an error code. So there
is no need to free cpu_grp explicitly for the failure cases
that might come up after it is allocated. Additionally calls to
devm_kzalloc() must be accompanied by devm_kfree() if memory
deallocation is necessary.
For these reasons remove the kfree(cpu_grp) from the probe
function.

Change-Id: Ic4838fd58d40d283ac301facc64b06813eb3bd7d
Signed-off-by: Rohit Gupta <rohgup@codeaurora.org>
2016-08-08 12:00:33 -07:00
Ingrid Gallardo
59938aacef ARM: dts: msm: adjust mdp ot limits for msmcobalt
This change adjusts the ot limits in the mdp vbif
for msmcobalt by removing the xin ot limits and
adding the axi ot limits to the mdp vbif.

CRs-Fixed: 1040746
Change-Id: I365976021dcf02fbc3687091371d7d72cb711605
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2016-08-08 11:38:41 -07:00
Skylar Chang
840f4d7c3c msm: gsi: fix memory corruption from debugfs
Fix to GSI reset stats logic to clear the correct stats per channel

Change-Id: I94ae8c769ec2868a291e75a2f47c85bd8a449937
CRs-Fixed: 1046484
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-08-08 10:37:54 -07:00
Skylar Chang
e91a2cce99 msm: ipa: do not use skb clones for lan clients
IPA driver uses 8k buffers for RX packets as those are aggregated.
If these packets deaggregated in IPA driver, cloned and provided
to clients, later calls to skb_copy() results in creating an 8k skb
which may lead to high memory utilization.
This change avoid the use of skb clones and allocates new skbs
for LAN clients and copy the packet content to it.

CRs-Fixed: 1050670
Change-Id: Iba47db8936b49309360791c1c6b482dcfcffd4d7
Acked by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
2016-08-08 10:36:41 -07:00
Raju P.L.S.S.S.N
997f6b993a lpm-levels: Use arm_cpuidle_suspend instead of cpu_suspend
Use of cpu_suspend is deprecated. Instead use arm_cpuidle_suspend for
32bit systems.

Change-Id: I5c61c970e17cba44c555e60418a9ece80c61488f
Signed-off-by: Raju P.L.S.S.S.N <rplsssn@codeaurora.org>
2016-08-08 22:15:37 +05:30
Hemant Kumar
9b68fb8b48 usb: gadget: configfs: Synchronizing bind/unbind using mutex lock
Synchronization is required because bind/unbind can happen in two
different contexts. For example, function unbind due to
unregister_gadget_item can race with bind which is initiated from
sysfs.

Change-Id: Iec93a9d4cb2a10b833cbba0d5256b64161147de2
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-08-08 09:35:15 -07:00
Hemant Kumar
dfe8b29ad1 usb: gadget: f_fs: Unlock mutex before unregistering gadget
Release the lock before unregistering gadget item.
Unregistered gadget item will result in unbind call back
to the driver which may use the same lock and resulting
in deadlock condition.

Change-Id: I2f8fba73a831d3bb711fe9310c5758221359819e
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-08-08 09:33:47 -07:00
Taniya Das
4d23b991a1 clk: msm: Add support for reset controller for GDSC
GDSC regulators in case of 'qcom,skip-logic-collapse', would require block
assert/deassert of the clocks. Add support for the same to use the reset
controller APIs.

Change-Id: I83651b3b3515e0923d7431cfe8b70e6059b51067
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-08-08 04:39:18 -07:00
Taniya Das
959d882551 clk: msm: Add support for block reset clocks
Add the block reset clocks which will be used by clients to
assert/deassert these clocks using the reset controller framework.

Change-Id: I3e9f7f85bf1faf0e1bb501196ba9d7e197111a03
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-08-08 04:39:14 -07:00
Taniya Das
4627274b90 clk: msm: Add reset controller support
A reset signal is associated with each clock branch but sometimes a reset
signal is associated with a handful of clocks. Either way the register
interface is the same; set a bit to assert a reset and clear a bit to
deassert a reset. Add support for these types of resets signals.

Change-Id: Ic9d00c0a03507a55ca6c96f977a6ddf55b4b5db7
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2016-08-08 04:39:09 -07:00
Linux Build Service Account
e94b446eac Merge "arm64: Select reset controller framework for MSM" 2016-08-07 23:22:55 -07:00
Linux Build Service Account
addf120260 Merge "NFC: IRQ gpio usage modification in nfc_read" 2016-08-07 23:22:54 -07:00
Linux Build Service Account
5e5b6faf80 Merge "ARM: dts: msm: Fix QOS settings for Venus on msmcobalt" 2016-08-07 23:22:53 -07:00
Linux Build Service Account
98ea28a192 Merge "msm: vidc: Fix decoder output buffer size issue" 2016-08-07 23:22:53 -07:00
Linux Build Service Account
3c5fb09425 Merge "msm: ipa: Neutrino IPA offload support" 2016-08-07 23:22:52 -07:00
Linux Build Service Account
fc7ae091a6 Merge "ARM: dts: msm: enabling dynamic FPS for nt35597 video panel" 2016-08-07 23:22:51 -07:00
Linux Build Service Account
7190232636 Merge "msm: kgsl: Allow 0 as a valid ion file descriptor" 2016-08-07 23:22:47 -07:00
Linux Build Service Account
0131aa1988 Merge "msm: kgsl: Make VBIF register dump more generic" 2016-08-07 23:22:44 -07:00
Linux Build Service Account
a181961095 Merge "msm: crypto: Fix integer over flow check in qcedev driver" 2016-08-07 23:22:44 -07:00
Linux Build Service Account
2ef02c02c4 Merge "qcom: ssr: Fix possible overflow when copying firmware name" 2016-08-07 23:22:43 -07:00
Linux Build Service Account
a010a65c23 Merge "msm: vidc: Add Override QP extradata support" 2016-08-07 23:22:42 -07:00
Linux Build Service Account
2b3049ef40 Merge "qseecom: Fix ion memory issue during unload app failure" 2016-08-07 23:22:40 -07:00
Linux Build Service Account
5306d48b29 Merge "msm: mdss: free the correct layer_list in compat_atomic_commit" 2016-08-07 23:22:39 -07:00
Linux Build Service Account
438e42ee1d Merge "ARM: dts: msm: add proxy vote for mdss gdsc for msmcobalt" 2016-08-07 23:22:38 -07:00
Amir Levy
be8c1c07e8 msm: ipa3: update BCR Regsiter values for IPA v3.1 and v3.5
Change BCR value for IPAv3.1 according to updated value from HPG.
Add IPAv3.5 to receive BCR initialization according to HPG.

CRs-Fixed: 1051371
Change-Id: If2a7eaf11ad05ced3c52ff87be934745b7dc713b
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2016-08-07 17:28:51 +03:00
Ghanim Fodi
7a9dd3df64 msm: ipa: Add parameters validation to handle static analysis issues
Check input parameter range before using it to access
array elements and check pointer value before
dereferencing it.

Change-Id: I702b4ff11582047b00e3f0d5433d29c84f34e913
CRs-Fixed: 1048706
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2016-08-07 03:38:03 -07:00
David Collins
0388b2a99f ARM: dts: msm: increase VDD_GFX CPR ceiling voltages for msmcobalt
Hardware characterization has shown that some parts require
higher voltages in order to operate consistently.  Increase
the ceiling voltage for all corners so that they are able to
operate at higher voltages.  This applies to all CPR revisions
except 0.

Change-Id: Ie9d4e825e5c6040036642cdaf22d1f67b6129685
CRs-Fixed: 1050071
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-08-05 17:10:36 -07:00
Runmin Wang
1fd42a381d soc: qcom: irq-helper: Add header file of irq-helper
Add header file of irq-helper to export black_list on/off api to
other module.

CRs-Fixed: 1051104
Change-Id: I4737975961b18f1095e3cd78d07a2bca22931291
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-08-05 17:08:57 -07:00
Runmin Wang
e6c2ce5418 defconfig: Enable irq-helper on msmcobalt
Enable irq-helper on msmcobalt to export apis for user space.

CRs-Fixed: 1051104
Change-Id: I7a623463a142a4db1db7247cf7c5dfeb5b99283c
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-08-05 17:08:48 -07:00
Runmin Wang
ac6a7bb200 soc: qcom: irq-helper: Fix spelling mistake
Change koject to kobject to resolve compilation error.

CRs-Fixed: 1051104
Change-Id: I642d5d4adc6978ddfa84f6d9dc4ae6428efc7894
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-08-05 17:08:06 -07:00
David Collins
e239c7f541 regulator: cpr3-mmss-regulator: add support for force highest corner fuse
Add support for the MSMCOBALT force highest corner fuse.  This
fuse is set on parts which can only operate consistently when
the highest corner's voltage is applied to all of the lower
corners.

Change-Id: Ibeef761044deea375dc7684c0a160609b610b8f6
CRs-Fixed: 1050071
Signed-off-by: David Collins <collinsd@codeaurora.org>
2016-08-05 16:41:32 -07:00
Hemant Kumar
2ea19f766c usb: gadget: f_fs: Add support for ipc logging
Log function entry and exit and dump relevant values
into ipc log buffer. This allows to debug various
race conditions and stability issues.

Change-Id: I15011d79fc2f054e64f8bbd1f8f5db8944b46ada
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-08-05 15:22:52 -07:00
Mayank Rana
67d5a900d4 usb: phy: qusb: Fix typo with emulation related property name
Driver is using "qcom,emu-init-seq" for finding length of property
but using "qcom,qemu-init-seq" instead of "qcom,emu-init-seq" to
get passed values from device tree. With this, length of property
comes as expected but values are not received. This results into
programming zeros as values with offset as zero instead of expected
<value, offset> passed through devicetree.

CRs-Fixed: 1051115
Change-Id: I1809fcef844d275175814e636591b87e91432609
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-08-05 10:44:49 -07:00
Jonathan Wicks
a88c5f841f ARM: dts: msm: Enable the GPU QDSS STM for msmcobalt
Add the QDSS STM property to the device tree so
that data can be logged from the GPU to the debug
bus when available.

CRs-Fixed: 1031648
Change-Id: I754c85a2ed02d0b1e40fd1e27b10ff84c463ac83
Signed-off-by: Jonathan Wicks <jwicks@codeaurora.org>
2016-08-05 08:39:16 -07:00
Mohan Pallaka
3274081bed input: ft5x06_ts: Add support for FB notifications
Add support for FB notifications to trigger suspend/resume
based on FB blank/unblank events.

Change-Id: I79abc586ad8c14a25afd56559c579a1415df9f0e
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-08-05 08:27:46 -07:00
Shantanu Jain
96b8c89a7c input: touchscreen: correct function and variable names in ITE tech driver
Correct function and variable names in ITE tech driver from upper case
to lower case, and use underscore instead of camel-case in their names.
This change makes the driver as per kernel coding standards and similar
to other touch drivers.

This is a propagation patch from 3.18 kernel 'commit c1fe9ac38d93 ("input:
touchscreen: correct function and variable names in ITE tech driver")'

CRs-Fixed: 982219
Change-Id: Ic8b66317f414fe3bfcd0f9c5b03369cc304edb55
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-08-05 20:46:21 +05:30
Shantanu Jain
44965431f6 input: touchscreen: correct return values in ITE tech driver
Correct return values of the functions in ITE tech driver.
Use valid integer error and success values instead of boolean
values.

This is a propagated patch from 3.18 kernel 'commit a68ff7e23d20
("input: touchscreen: correct return values in ITE tech driver")'

CRs-Fixed: 982219
Change-Id: Iba07517fd32dbeb3079df9c0346ea0c044b88f63
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-08-05 20:41:30 +05:30
Shantanu Jain
6f2d5a5fc1 input: touchscreen: remove global variable from ITE tech touch driver
Remove the use of global variable from ITE tech touch driver,
and use the internal driver structure passed as function argument.
This change makes the driver complied to kernel coding standards
and similar to other touch driver.

This is a propagated patch from 3.18 patch 'commit 041f90ddeb5e ("input:
touchscreen: remove global variable from ITE tech touch driver")'

CRs-Fixed: 982219
Change-Id: Ib609d6e76ea70cd3b49c4ea6f09c75bf52521aa8
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-08-05 20:36:37 +05:30
Shantanu Jain
f8168ee5bf input: touchscreen: identify ITE tech controller until ready
Identify the ITE tech controller until it is ready to do any
i2c transaction. This is needed for dynamic detection and to check
if ITE tech controller is connected or not.

This is a propagated patch from 3.18 kernel 'commit eb37d1174948
("input: touchscreen: identify ITE tech controller until ready")'

CRs-Fixed: 980427
Change-Id: I9f69eb541e31de6a04db7468ca12a04a837d2b40
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-08-05 20:30:50 +05:30
Shantanu Jain
fdcb967e7e input: touchscreen: correct condition checks in ITE tech touch driver
Correct the return value check of kstrtoint function.
Also correct the platform_data parsing check in ITE tech
touch driver.

This is a propagated patch from 3.18 kernel
'commit 9a1496537aeb ("input: touchscreen: correct condition checks
in ITE tech touch driver")'

Change-Id: I792c043ca4d85e236c209605e80392a05d26b983
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-08-05 20:26:29 +05:30
Shantanu Jain
28181fbc4c input: touchscreen: don't allow ITE tech driver to do infinite i2c checks
Don't allow ITE tech driver to check the status of the controller forever
before any i2c read/write, instead make it to 10 times only.
In case of firmware flashing and external calibration features, this is
made to 500 times.

This is a propagated patch from 3.18 kernel
'commit 5e8c98c6705b ("input: touchscreen: don't allow ITE tech driver
to do infinite i2c checks")'

Change-Id: I88e024700de43cc9f712fd7fa509fcb387f9cd21
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-08-05 20:22:47 +05:30
Mohan Pallaka
95c648643d input: ft5x06_ts: Add DT support
Add device tree support for focaltech controller driver.
The data is represented in device tree format and parsed
by the driver using of framework apis.

This patch is a propagated patch from 3.18 kernel
'commit 83310a9a151e ("input: ft5x06_ts: Add DT support")'

Change-Id: Ibcdd8c3579f401ac0632d670e1b7c674aa67ba8d
Signed-off-by: Mohan Pallaka <mpallaka@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
[abinayap@codeaurora.org: Fix checkpatch errors for 4.4 kernel
struct of_device_id should normally be const]
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
2016-08-05 07:29:28 -07:00
Neeraj Upadhyay
41ed6f074e ARM: dts: msm: Update TLMM base address for msmfalcon
Update TLMM base address to match new address.

Change-Id: Ie0c46cbbcbc3edabd5e0f867b4393a27e55db9f5
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2016-08-05 06:14:54 -07:00
Neeraj Upadhyay
998bcdcde3 pinctrl: qcom: Update TLMM configuration for msmfalcon
Update TLMM configuration for msmfalcon, to match new
HW definitions.

Change-Id: I61d99454dab2fa90b4ed6577d1a58685088eb968
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2016-08-05 06:14:08 -07:00
Neeraj Upadhyay
15578f64c6 pinctrl: qcom: Update SDC pins for msmfalcon
Add SDC1 related pin configuration and update addresses for
SDC2 pins, to match TLMM addresses in new HW definitions.

Change-Id: If39ad62cc591565793cd1d8a0f2a454e0b7d5c58
Signed-off-by: Neeraj Upadhyay <neeraju@codeaurora.org>
2016-08-05 06:13:02 -07:00
Shantanu Jain
fb07736a10 input: touchscreen: increase number of checks for touch controller status
Before doing any i2c read/write, driver needs to check the value
of QUERY buffer to know if the controller is in ready or busy state.
Sometime, it takes more number of checks to know the status.
So this change increases the number of checks to know the ITE tech
touch controller status.

This is a propagated patch from 3.18 kernel 'commit 60589278b8e7 ("input:
touchscreen: increase number of checks for touch controller status")

Change-Id: I30dd0cf0b15538e67f50725754d5059e2fe721d0
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
2016-08-05 17:09:43 +05:30
Mao Li
5218b8f9f8 input: msg21xx_ts: update mstar driver to enable msg2138A
Mstar reference driver is being cleaned up to be checkpatch
compliant. Add Kconfig and Makefile changes to enable Mstar
driver's compilation. And following new features are added to
the driver:
1. Pinctrl support
2. Threaded irq support
3. Release all touches in suspend
4. Protocol B compliance
5. Explicit suspend/resume function
6. Configure gpios in suspend/resume function
7. Add device tree parser function
8. Add dtsi support for gpio, regulator, I2C address, display coords

This patch is propagated from 3.18 kernel
'commit 091a01709e12 ("input: msg21xx_ts: update mstar
driver to enable msg2138A")'

Change-Id: Ic49a18de64ec210a0636405394ba7a8f52f336a9
Signed-off-by: Mao Li <maol@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
[abinayap@codeaurora.org: Fix checkpatch errors for 4.4 kernel
- Block comments use a trailing */ on a separate line
- Comparisons should place the constant on the right side of the test
- struct of_device_id should normally be const
- DT compatible string vendor "mstar" appears un-documented]
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
2016-08-05 04:35:02 -07:00
Gaurav Singhal
f2e141460b NFC: IRQ gpio usage modification in nfc_read
Modified condition to ensure data is read
only after interrupt has occurred.

Spurious interrupt handling is done in nfc_read
instead of irq handler.

Change-Id: Ie2362610fe922e792e6358b4386c828fdd754fa8
Signed-off-by: Gaurav Singhal <gsinghal@codeaurora.org>
2016-08-04 23:54:16 -07:00
Linux Build Service Account
28352998de Merge "ASoC: wcd934x: Enable smart boost on WCD9340 codec" 2016-08-04 21:39:48 -07:00
Linux Build Service Account
0cd21ace7b Merge "icnss: pass fw version to wlan driver" 2016-08-04 21:39:47 -07:00