Commit graph

573176 commits

Author SHA1 Message Date
Linux Build Service Account
2566204c8d Merge "ARM: dts: msm: By default, handle FW errors as fatal on msmcobalt" 2016-08-01 03:01:57 -07:00
Linux Build Service Account
8560f5d5ea Merge "input: touchscreen: add touch to wake feature in ITEtech driver" 2016-08-01 03:01:55 -07:00
Linux Build Service Account
45e9c3f685 Merge "qseecom: validate the inputs of __qseecom_send_modfd_resp" 2016-08-01 03:01:54 -07:00
Mao Li
08a70ec5f1 input: msg21xx_ts: Move the driver to proper path
This Mstar CTP reference driver code is added into a wrong place,
a follow-on patch is created to move the driver to proper path.

Change-Id: I34365ce21659348ad1d1289e3b06b81e778c2648
Signed-off-by: Mao Li <maol@codeaurora.org>
Signed-off-by: Sudhakar Manapati <smanap@codeaurora.org>
2016-08-01 02:52:55 -07:00
Shantanu Jain
1354344108 input: it7258_ts_i2c: add low power mode support in suspend state
Add low power idle mode support in suspend state for ITE tech
touchscreen driver.
Also, execute the touch to wake feature code only when device moves
from idle state to active state.

Change-Id: Ia989d8130bbded4ae5acab0b9c3122998acb2056
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-08-01 02:46:39 -07:00
Shantanu Jain
284922b73a input: it7258_ts_i2c: add dt parsing support
Add DT parsing support to ITE tech touchscreen driver.

Change-Id: I4b6b9867dc0d74c02d165aae670213544fcda1bc
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-08-01 02:45:12 -07:00
Shantanu Jain
a499096f0d input: it7258_ts_i2c: add force fw and cfg update functionality
Add force firmware and config update functionality to ITE Tech
touchscreen driver.

Change-Id: I63720092f445700b7ae66e10950d87a4654060aa
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-08-01 02:43:59 -07:00
Shantanu Jain
1f51fe6ebe input: touchscreen: add auto fw upgrade for ITE tech driver
Add auto firmware and config upgrade functionality for ITE tech
touchscreen driver.
Add sysfs support for manual fw and cfg upgrade functionality.
Also clean the sysfs function names.

Change-Id: I8912545589cb763c1deb70bebb081e920af69ad2
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-08-01 15:12:22 +05:30
Shantanu Jain
97f29fe6f3 input: touchscreen: add protocol B support for ITE tech driver
Add multi-touch protocol B support for ITE tech touch
screen driver.

Change-Id: I9ed40ccedab71a3800b97fc7825741855bceaa29
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-08-01 15:06:19 +05:30
Manish Dewangan
898fd01bf2 ASoC: msmcobalt: Add 24 bit packed support
Changes to support packed 24 bit (SNDRV_PCM_FORMAT_S24_3LE)

CRs-Fixed: 1011048
Change-Id: Id927e9b8894b1bf99e57cc0f04abf126740c6d36
Signed-off-by: Manish Dewangan <manish@codeaurora.org>
2016-08-01 01:15:50 -07:00
Shantanu Jain
a2abe89cff input: touchscreen: clean ITE tech driver probe function
Clean ITE tech driver probe function with proper error paths,
call sequence, and return values to release the resources
properly.
Also, release the resource in driver's remove function.

Change-Id: Ia81bb3da7e0b880de6f2ed95d346b533104ed3fc
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-08-01 00:30:58 -07:00
Shantanu Jain
2f1436b033 input: touchscreen: clean ITE tech TS driver
Clean ITE tech touchscreen driver.
Structurize driver data members, replace standard logging
function calls & messages, change to proper function names,
change to proper variable names, remove unnecessary sysfs entry.

Change-Id: I02bcea18e93146b68aaeb8d81fa7bec67b5bcc73
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-08-01 00:27:46 -07:00
Shantanu Jain
1d948645a6 input: touchscreen: add palm-gesture sleep feature
Add palm-gesture sleep feature for ITE tech touchscreen
driver. When enabled the driver sends a key code to the
user space. Two optional device-tree properties are added
for this: ite,palm-detect and ite,palm-detect-keycode.

Change-Id: I0989cb66ab5edb10769ced9d525bd4f6d7adb02b
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-07-31 23:18:49 -07:00
Shantanu Jain
6145f7f671 input: touchscreen: add touch to wake feature in ITEtech driver
Add touch to wake feature in ITE tech touchscreen driver.
The touchscreen interrupt is configured as wakeable interrupt,
so TS can be used to wake the device from suspend state.

Change-Id: I8da53ab4f03237b8652cd5891eadbffa752d72d3
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-07-31 23:18:35 -07:00
Shantanu Jain
8b724a99b7 input: it7258_ts_i2c: add debugfs support for suspend/resume
Add debugfs support for suspend and resume test for ITE
tech touchscreen driver.

Change-Id: I5a3d55c7c8e4b8f594fd7924c61ac1e5b5ad1965
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-07-31 23:16:48 -07:00
Linux Build Service Account
eed72db02a Merge "ASoC: audio-ext-clk: check for null pointer de-reference" 2016-07-31 21:36:45 -07:00
Linux Build Service Account
1c1be8be73 Merge "ARM: dts: msm: add battery profiles to msmcobalt MTP" 2016-07-31 15:57:10 -07:00
Linux Build Service Account
271f251f36 Merge "ARM: dts: msm: add batterydata for itech and ascent batteries" 2016-07-31 15:57:09 -07:00
Linux Build Service Account
902583a46d Merge "ft5x06: Set input property bit to indicate a direct input device" 2016-07-31 10:19:13 -07:00
Linux Build Service Account
25d359f4e4 Merge "msm: mdss: add support to configure transfer unit for DP" 2016-07-31 10:19:10 -07:00
Linux Build Service Account
0576399f61 Merge "input: touchscreen: synaptics v1.1" 2016-07-31 10:19:09 -07:00
Amir Levy
b51337b8f1 msm: ipa3: update IPA BCR register values
Set IPA BCR register value according to HW type.
BCR register values are taken from IPA HPG and should
correlate with the relevant IPAv3.x HW type.

CRs-Fixed: 1048435
Change-Id: I5ece4a5676cf1d2fae4a5276da5833272cd95ecb
Signed-off-by: Amir Levy <alevy@codeaurora.org>
2016-07-31 12:51:23 +03:00
Himanshu Aggarwal
59a666fb58 input: touchscreen: add protocol A support to ITE tech driver
Add multi-touch protocol A support to ITE tech touchscreen
driver.

Change-Id: I49bc7e3eaa3b266fe92bb209f56ae5a1b40675e0
Signed-off-by: Himanshu Aggarwal <haggarwa@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-07-30 22:55:58 -07:00
Shantanu Jain
a444cab639 input: touchscreen: add suspend-resume and fb support
Add suspend-resume and fb notification support for
ITE tech touchscreen driver.

Change-Id: I9a601412fb9a3935c0eadad5157bb1fd819b29dd
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-07-30 22:55:34 -07:00
Linux Build Service Account
7093e6ce4b Merge "usb: dwc3: Update VBUS status with USB controller" 2016-07-30 14:11:34 -07:00
Linux Build Service Account
2a298044ec Merge "usb: phy: qusb: Remove updating VBUS status from QUSB PHY driver" 2016-07-30 14:11:33 -07:00
Nicholas Troast
82ee420ef8 qcom-charger: qpnp-smb2: use values from hardware for default settings
Currently some hardware default charge settings are modified with
software default charge settings. Remove the software default settings,
and use only the device tree properties for changing the hardware
defaults.

Change-Id: I02a0cbbf547aacc5e813d027a2f3623cc01e1dd6
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-07-29 17:12:01 -07:00
Nicholas Troast
896365001e qcom-charger: qpnp-smb2: End charge cycle while battery is OV
Currently the charge cycle continues while the battery is OV. Configure
the charger to end the charge cycle while battery is OV.

Change-Id: I6fc333e15c5f0410c6b560b2a7005a1752f5f936
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-07-29 17:01:36 -07:00
Nicholas Troast
773ed5bace qcom-charger: qpnp-smb2: disable vbus-error IRQ trigger
When a Type-C legacy cable is connected to the phone but left unconnected
on the other side an interrupt storm can be observed which is caused by
the vbus-error interrupt trigger. Disable this interrupt trigger.

Change-Id: I5342c58acc83ecff4bf5f8e425de94daa1dabb50
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-07-29 16:51:05 -07:00
Yeleswarapu Nagaradhesh
70db8581f4 ASoC: wcd9335: don't check for HPHL and HPHR for mono headset
when mono headset is connected, either of the HPHL
or HPHR channel is enabled. So don't check for
both if cable is mono headset, otherwise RX chain is left muted
and hence audio is not heard from headset.

CRs-Fixed: 1018104
Change-Id: I464c785eba28f02993042d220e5744025e2f9346
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
2016-07-30 05:11:11 +05:30
Yeleswarapu Nagaradhesh
25740f37d6 Revert "drivers: mfd: Return EPROBE_DEFER during codec failure"
This reverts commit 96913bef9307 ("drivers: mfd: Return EPROBE_DEFER during
codec failure"). If target can support multiple codecs,
one of the codec enumerates. When other codec fails to enumerate,
donot return -EPROBE_DEFER otherwise probe is triggered again
which is cleaning common resources and hence enumerated
codec is going to bad state.

CRs-Fixed: 1048317
Change-Id: I2f87777684c53408b7f73596f54c46b171469b76
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
2016-07-30 04:53:02 +05:30
Viswanadha Raju Thotakura
bd8d73bb72 msm: camera: Add support for multiple flash nodes
Add support for flash nodes for front and rear
camera.

CRs-Fixed: 1021009
Change-Id: I52537562214d439e9652bb6ba90f0d29e5b24fda
Signed-off-by: Viswanadha Raju Thotakura <viswanad@codeaurora.org>
2016-07-29 15:41:32 -07:00
Sudheer Papothi
32af1c5f42 ASoC: msmcobalt: Fix channel configuration on msmcobalt
Channel ids are not updated correctly in hardware params
fixup resulting in audio mute on one of the channels on headphones.
Fix the channel ids properly in msmcobalt machine driver hardware
params fixup.

CRs-Fixed: 1034829
Change-Id: If23da9ac1d2f71ad4d39371b665311f1f84b016a
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
2016-07-30 03:38:00 +05:30
Zhen Kong
cfa588d94a qseecom: validate the inputs of __qseecom_send_modfd_resp
The resp_len and resp_buf_ptr of qseecom_send_modfd_listener_resp
are not checked, then an userspace application that manipulates
resp_len can corrupt the kernel memory. Thus make changes to
validate these parameters.

CRs-fixed: 1036418
Change-Id: Id43ec6b55b332d0dac09a9abb998a410f49b44f7
Signed-off-by: Zhen Kong <zkong@codeaurora.org>
2016-07-29 12:21:30 -07:00
Hemant Kumar
d5ccebfe35 usb: gadget: f_cdev: Fix NULL ptr dereference in usb_cser_notify
Upon usb disconnect or composition switch notify ep request buffer
as well as the request are freed. This is racing with user space
ioctl on character device trying to send the notification to USB
host. As a result notify ep request buffer is being dereferenced
causing NULL pointer dereference. Fix the issue by checking
is_connected flag by taking port lock before accessing notify
ep request and request buffer.

Change-Id: I380efdf90305a65d4cde46dfe44762ac11c87678
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
2016-07-29 11:46:23 -07:00
Mayank Rana
d59b5a86d7 usb: dwc3: Update VBUS status with USB controller
It is required to update VBUS status to USB controller using qscratch
registers HS_PHY_CTRL and SS_PHY_CTRL interfacing high-speed and
super-speed PHYs. This change perfoms same from USB controller's glue
driver on starting and stopping peripheral mode based on supported
USB speed with USB gadget.

It also updates devicetree documentation explicitly mentioning required
register sets.

CRs-Fixed: 1046503
Change-Id: I92df87c0e2ff54dd7ee513d277cc075eab561019
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-07-29 11:39:35 -07:00
Mayank Rana
7d94325630 usb: phy: qusb: Remove updating VBUS status from QUSB PHY driver
This change removes updating VBUS status from QUSB PHY driver using
QSCRATCH register. New change would be adding same functionality from
USB controller driver.

- It also updates devicetree documentation and existing supported
MSM platforms' USB device node property to accommodate above changes.

CRs-Fixed: 1046503
Change-Id: I4573a077bb455ebe3750ab76a91d2593d7e94ea5
Signed-off-by: Mayank Rana <mrana@codeaurora.org>
2016-07-29 11:39:25 -07:00
Linux Build Service Account
77e6c75442 Merge "cfg80211: Advertise extended capabilities per interface type to userspace" 2016-07-29 11:24:31 -07:00
Linux Build Service Account
e21b49baaf Merge "msm: ipa3: add mapping for IPA SMEM to SMMU" 2016-07-29 11:24:30 -07:00
Linux Build Service Account
29e6a3b923 Merge "msm: ipa3: add support for additional mappings to smmu" 2016-07-29 11:24:29 -07:00
Linux Build Service Account
4065bfcc2f Merge "scsi: ufs: return appropriate error code" 2016-07-29 11:24:28 -07:00
Linux Build Service Account
4d639b901b Merge "ARM: dts: msm: Enable the GPU QDSS STM for msm8996" 2016-07-29 11:24:28 -07:00
Devesh Jhunjhunwala
ce47dd6134 ARM: dts: msm: Enable droop and fault detection for pmicobalt flash LED
Add device tree properties to enable detection of VPH droop,
short circuit and open circuit faults for flash LED on pmicobalt.

CRs-Fixed: 1024187
Change-Id: I13cf07b36f7bb890a71bedb9998a937e2c60ecb0
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-07-29 11:24:27 -07:00
Devesh Jhunjhunwala
88e140010a leds: qpnp-flash-v2: Add support for led_fault_irq
Add support to receive and process the led_fault_irq to
detect short_circuit and open_circuit faults. Also, add
support to read all led_status registers in the irq handler.

CRs-Fixed: 1024187
Change-Id: I6941660484ea8b27377c668d1e7d815d52e83d83
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-07-29 11:24:14 -07:00
Devesh Jhunjhunwala
ba678210c5 leds: qpnp-flash-v2: Add support for droop and fault detection
Add support for configuring the following features available
in flash LED:
	1. VPH droop detection
	2. Short circuit fault detection
	3. Open circuit fault detection

CRs-Fixed: 1024187
Change-Id: I982e51ba62f0a75d1dcd3ef30e5d1249c970ffde
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-07-29 11:22:30 -07:00
Devesh Jhunjhunwala
a0a1d3cd64 leds: qpnp-flash: Implement the flash_prepare API
Add the flash_prepare API to the leds-qpnp-flash driver to
maintain consistent usage of the API by the camera flash driver
across targets.

CRs-Fixed: 1043718
Change-Id: I21cc4b4556b2a4a1a918bfeb1d55ae164d4b5568
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-07-29 11:22:06 -07:00
Devesh Jhunjhunwala
dc12c73b37 leds: qpnp-flash-v2: Update the flash_prepare API
Update the flash prepare API to accept a led_trigger device as an
argument. Also split the leds-qpnp-flash-v2 header file to keep the
flash_prepare API in a common header file for both legacy and v2
flash drivers.

CRs-Fixed: 1043718
Change-Id: Idb4ab086740b680e101d76d882bcfb618ac4b936
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
2016-07-29 11:21:23 -07:00
Chandan Uddaraju
362a4d381d mdss: display-port: add support to use common EDID parser
For display-port, use the existing EDID parser
that is used by HDMI.

Change-Id: I64c7fe03126d33eb0436c67eba9147dec1169e4d
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-07-29 11:21:04 -07:00
Chandan Uddaraju
3db8c28861 ARM: dts: msm: add MDSS DP device node for msmcobalt
Add MDSS Display-Port device node for msmcobalt which is needed to drive
any external display that supports DP interface. Add the
msmcobalt-CDP/MTP specific GPIO entries needed for display-port.

Change-Id: I61592c167345ebec4cde07f0a72ef059f186b84a
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
2016-07-29 11:20:50 -07:00
Ramkumar Radhakrishnan
3d764869b9 msm: mdss: add support for adaptive variable refresh feature
Adaptive variable refresh(AVR) allows timing modification of a current
frame by extending the vertical front porch values. This helps
shifting the vsync to slowest vsync interval supported by panel when
GPU rendering ready event is delayed. Define an interface for AVR to
enable client to control AVR settings. Validate client input for AVR
and configure the corresponding AVR registers.

CRs-Fixed: 1043819
Change-Id: I28f786bf0bdea4ecaa17270974ba6d7ffe469828
Signed-off-by: Ramkumar Radhakrishnan <ramkumar@codeaurora.org>
2016-07-29 11:14:55 -07:00