OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
8 years agoARM: dts: msm: Remove clocks listed under video and camera GDSC nodes
Deepak Katragadda [Tue, 2 Aug 2016 16:59:13 +0000 (09:59 -0700)]
ARM: dts: msm: Remove clocks listed under video and camera GDSC nodes

The core and peripheral memory retention bits no longer need to be
set and cleared by the GDSC driver on MSMCOBALT. Instead, the video
and camera client drivers will use the clk_set_flags API to toggle
these bits as needed.

Change-Id: Ia10ff063d8dc7b52a52e0ff22a2b0a46cc171eb5
CRs-Fixed: 1044274
Signed-off-by: Deepak Katragadda <dkatraga@codeaurora.org>
8 years agoMerge "clk: msm: clock-gpu-cobalt: Update the GPU PLL FMAXes"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:51 +0000 (21:56 -0700)]
Merge "clk: msm: clock-gpu-cobalt: Update the GPU PLL FMAXes"

8 years agoMerge "ASoC: msm: Add dapm ignore suspend for front end dais"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:48 +0000 (21:56 -0700)]
Merge "ASoC: msm: Add dapm ignore suspend for front end dais"

8 years agoMerge "ASoC: wcd9335: Add dapm ignore suspend for backend dais"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:47 +0000 (21:56 -0700)]
Merge "ASoC: wcd9335: Add dapm ignore suspend for backend dais"

8 years agoMerge "slim: msm: Handle slimbus HW noise during early boot-up"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:47 +0000 (21:56 -0700)]
Merge "slim: msm: Handle slimbus HW noise during early boot-up"

8 years agoMerge "iommu/arm-smmu: Don't group PCI devices"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:46 +0000 (21:56 -0700)]
Merge "iommu/arm-smmu: Don't group PCI devices"

8 years agoMerge "qcom-charger: qpnp-smb2: disable vbus-error IRQ trigger"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:45 +0000 (21:56 -0700)]
Merge "qcom-charger: qpnp-smb2: disable vbus-error IRQ trigger"

8 years agoMerge "input: touchscreen: add palm-gesture sleep feature"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:44 +0000 (21:56 -0700)]
Merge "input: touchscreen: add palm-gesture sleep feature"

8 years agoMerge "msm: camera: Add support for multiple flash nodes"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:43 +0000 (21:56 -0700)]
Merge "msm: camera: Add support for multiple flash nodes"

8 years agoMerge "Revert "misc: uidstat: Adding uid stat driver to collect network statistics.""
Linux Build Service Account [Tue, 2 Aug 2016 04:56:42 +0000 (21:56 -0700)]
Merge "Revert "misc: uidstat: Adding uid stat driver to collect network statistics.""

8 years agoMerge "xt_qtaguid: Fix panic caused by processing non-full socket."
Linux Build Service Account [Tue, 2 Aug 2016 04:56:41 +0000 (21:56 -0700)]
Merge "xt_qtaguid: Fix panic caused by processing non-full socket."

8 years agoMerge "xt_qtaguid: Fix panic caused by synack processing"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:41 +0000 (21:56 -0700)]
Merge "xt_qtaguid: Fix panic caused by synack processing"

8 years agoMerge "Revert "net: activity_stats: Add statistics for network transmission activity""
Linux Build Service Account [Tue, 2 Aug 2016 04:56:40 +0000 (21:56 -0700)]
Merge "Revert "net: activity_stats: Add statistics for network transmission activity""

8 years agoMerge "Revert "coresight-tpdm: fix dsb edge ctrl mask interface""
Linux Build Service Account [Tue, 2 Aug 2016 04:56:39 +0000 (21:56 -0700)]
Merge "Revert "coresight-tpdm: fix dsb edge ctrl mask interface""

8 years agoMerge "ARM: dts: msm: Enable droop and fault detection for pmicobalt flash LED"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:35 +0000 (21:56 -0700)]
Merge "ARM: dts: msm: Enable droop and fault detection for pmicobalt flash LED"

8 years agoMerge "leds: qpnp-flash-v2: Add support for led_fault_irq"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:35 +0000 (21:56 -0700)]
Merge "leds: qpnp-flash-v2: Add support for led_fault_irq"

8 years agoMerge "ARM: dts: msm: Add support for new flash mode on msmcobalt"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:34 +0000 (21:56 -0700)]
Merge "ARM: dts: msm: Add support for new flash mode on msmcobalt"

8 years agoMerge "msm: camera: Add support for reading new property tag"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:33 +0000 (21:56 -0700)]
Merge "msm: camera: Add support for reading new property tag"

8 years agoMerge "smb-lib: introduce votable to disable charging"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:32 +0000 (21:56 -0700)]
Merge "smb-lib: introduce votable to disable charging"

8 years agoMerge "msm: kgsl: Add 5usec delay for idle check on A540"
Linux Build Service Account [Tue, 2 Aug 2016 04:56:31 +0000 (21:56 -0700)]
Merge "msm: kgsl: Add 5usec delay for idle check on A540"

8 years agoASoC: wcd9335: Add dapm ignore suspend for backend dais
Sudheer Papothi [Tue, 26 Jul 2016 20:51:36 +0000 (02:21 +0530)]
ASoC: wcd9335: Add dapm ignore suspend for backend dais

DAPM marks back end dai as dirty during ASoC suspend
which triggers device path teardown. Add ignore suspend
to all back end dais to avoid device path teardown.

CRs-Fixed: 1031932
Change-Id: I89f83feed0702f3a3f3b6141ed73459b8878d2df
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
8 years agoiommu/arm-smmu: Don't group PCI devices
Mitchel Humpherys [Tue, 26 Jul 2016 18:03:48 +0000 (11:03 -0700)]
iommu/arm-smmu: Don't group PCI devices

In general, the IOMMU framework likes to group PCI devices together.
This prevents someone from assigning them to separate VMs using VFIO,
for example.  The reason they shouldn't go to separate VMs is because
there could be DMA aliasing between endpoint devices, and because the
root complex device can access anything that endpoint devices can
access.

Unfortunately, this makes things difficult in the DMA layer since the
IOMMU framework freaks out if you try to attach a single device that is
also part of a group.  First instinct might be to start using
iommu_attach_group instead of iommu_attach_device in the DMA layer but
that has problems of its own (it attaches *everyone* in the group as
soon as one client attaches).  Besides all that, it's also a bit
annoying to have the root complex device in group since, in our
platform, it doesn't actually have any stream IDs assigned to it and it
doesn't do any DMA of its own, so it doesn't really make any logical
sense to attach it.

As a compromise, we can stop grouping PCI devices together by allocating
a new domain for each one.  By doing so we no longer need to call
iommu_attach_group in the DMA layer, avoid the issues described above.

It should be noted that with this patch in place we can't securely do
any direct DMA assignment of PCI endpoint devices to separate VMs.

CRs-Fixed: 1036401
Change-Id: I9528b61a695dc7840e1c6f80af18044340f5c6c4
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
8 years agoMerge "ASoC: msmcobalt: Fix channel configuration on msmcobalt"
Linux Build Service Account [Mon, 1 Aug 2016 15:04:24 +0000 (08:04 -0700)]
Merge "ASoC: msmcobalt: Fix channel configuration on msmcobalt"

8 years agoMerge "ASoC: msm: Implement HFP tx mute get function"
Linux Build Service Account [Mon, 1 Aug 2016 15:04:23 +0000 (08:04 -0700)]
Merge "ASoC: msm: Implement HFP tx mute get function"

8 years agoMerge "ASoC: msm: qdsp6v2: Add support to set volume in ASM loopback"
Linux Build Service Account [Mon, 1 Aug 2016 15:04:23 +0000 (08:04 -0700)]
Merge "ASoC: msm: qdsp6v2: Add support to set volume in ASM loopback"

8 years agoMerge "ASoC: msm-cpe-lsm: add support for two CPE sessions"
Linux Build Service Account [Mon, 1 Aug 2016 15:04:22 +0000 (08:04 -0700)]
Merge "ASoC: msm-cpe-lsm: add support for two CPE sessions"

8 years agoMerge "ASoC: msmcobalt: Add 24 bit packed support"
Linux Build Service Account [Mon, 1 Aug 2016 15:04:21 +0000 (08:04 -0700)]
Merge "ASoC: msmcobalt: Add 24 bit packed support"

8 years agoMerge "ARM: dts: msm: By default, handle FW errors as fatal on msmcobalt"
Linux Build Service Account [Mon, 1 Aug 2016 10:01:58 +0000 (03:01 -0700)]
Merge "ARM: dts: msm: By default, handle FW errors as fatal on msmcobalt"

8 years agoMerge "input: touchscreen: add touch to wake feature in ITEtech driver"
Linux Build Service Account [Mon, 1 Aug 2016 10:01:55 +0000 (03:01 -0700)]
Merge "input: touchscreen: add touch to wake feature in ITEtech driver"

8 years agoMerge "qseecom: validate the inputs of __qseecom_send_modfd_resp"
Linux Build Service Account [Mon, 1 Aug 2016 10:01:55 +0000 (03:01 -0700)]
Merge "qseecom: validate the inputs of __qseecom_send_modfd_resp"

8 years agoASoC: msmcobalt: Add 24 bit packed support
Manish Dewangan [Wed, 13 Jul 2016 09:18:43 +0000 (14:48 +0530)]
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>
8 years agoinput: touchscreen: add palm-gesture sleep feature
Shantanu Jain [Fri, 15 May 2015 13:46:36 +0000 (19:16 +0530)]
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>
8 years agoinput: touchscreen: add touch to wake feature in ITEtech driver
Shantanu Jain [Thu, 14 May 2015 09:38:58 +0000 (15:08 +0530)]
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>
8 years agoinput: it7258_ts_i2c: add debugfs support for suspend/resume
Shantanu Jain [Fri, 15 May 2015 13:24:18 +0000 (18:54 +0530)]
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>
8 years agoMerge "ASoC: audio-ext-clk: check for null pointer de-reference"
Linux Build Service Account [Mon, 1 Aug 2016 04:36:45 +0000 (21:36 -0700)]
Merge "ASoC: audio-ext-clk: check for null pointer de-reference"

8 years agoMerge "ARM: dts: msm: add battery profiles to msmcobalt MTP"
Linux Build Service Account [Sun, 31 Jul 2016 22:57:10 +0000 (15:57 -0700)]
Merge "ARM: dts: msm: add battery profiles to msmcobalt MTP"

8 years agoMerge "ARM: dts: msm: add batterydata for itech and ascent batteries"
Linux Build Service Account [Sun, 31 Jul 2016 22:57:10 +0000 (15:57 -0700)]
Merge "ARM: dts: msm: add batterydata for itech and ascent batteries"

8 years agoMerge "ft5x06: Set input property bit to indicate a direct input device"
Linux Build Service Account [Sun, 31 Jul 2016 17:19:13 +0000 (10:19 -0700)]
Merge "ft5x06: Set input property bit to indicate a direct input device"

8 years agoMerge "msm: mdss: add support to configure transfer unit for DP"
Linux Build Service Account [Sun, 31 Jul 2016 17:19:10 +0000 (10:19 -0700)]
Merge "msm: mdss: add support to configure transfer unit for DP"

8 years agoMerge "input: touchscreen: synaptics v1.1"
Linux Build Service Account [Sun, 31 Jul 2016 17:19:09 +0000 (10:19 -0700)]
Merge "input: touchscreen: synaptics v1.1"

8 years agoinput: touchscreen: add protocol A support to ITE tech driver
Himanshu Aggarwal [Tue, 12 May 2015 13:27:58 +0000 (18:57 +0530)]
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>
8 years agoinput: touchscreen: add suspend-resume and fb support
Shantanu Jain [Thu, 14 May 2015 08:47:38 +0000 (14:17 +0530)]
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>
8 years agoMerge "usb: dwc3: Update VBUS status with USB controller"
Linux Build Service Account [Sat, 30 Jul 2016 21:11:34 +0000 (14:11 -0700)]
Merge "usb: dwc3: Update VBUS status with USB controller"

8 years agoMerge "usb: phy: qusb: Remove updating VBUS status from QUSB PHY driver"
Linux Build Service Account [Sat, 30 Jul 2016 21:11:34 +0000 (14:11 -0700)]
Merge "usb: phy: qusb: Remove updating VBUS status from QUSB PHY driver"

8 years agoqcom-charger: qpnp-smb2: disable vbus-error IRQ trigger
Nicholas Troast [Tue, 19 Jul 2016 22:09:33 +0000 (15:09 -0700)]
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>
8 years agomsm: camera: Add support for multiple flash nodes
Viswanadha Raju Thotakura [Thu, 2 Jun 2016 00:20:45 +0000 (17:20 -0700)]
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>
8 years agoASoC: msmcobalt: Fix channel configuration on msmcobalt
Sudheer Papothi [Wed, 27 Jul 2016 21:15:20 +0000 (02:45 +0530)]
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>
8 years agoqseecom: validate the inputs of __qseecom_send_modfd_resp
Zhen Kong [Mon, 18 Jul 2016 20:20:18 +0000 (13:20 -0700)]
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>
8 years agousb: dwc3: Update VBUS status with USB controller
Mayank Rana [Thu, 28 Jul 2016 19:32:06 +0000 (12:32 -0700)]
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>
8 years agousb: phy: qusb: Remove updating VBUS status from QUSB PHY driver
Mayank Rana [Thu, 28 Jul 2016 19:28:36 +0000 (12:28 -0700)]
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>
8 years agoMerge "cfg80211: Advertise extended capabilities per interface type to userspace"
Linux Build Service Account [Fri, 29 Jul 2016 18:24:31 +0000 (11:24 -0700)]
Merge "cfg80211: Advertise extended capabilities per interface type to userspace"

8 years agoMerge "msm: ipa3: add mapping for IPA SMEM to SMMU"
Linux Build Service Account [Fri, 29 Jul 2016 18:24:30 +0000 (11:24 -0700)]
Merge "msm: ipa3: add mapping for IPA SMEM to SMMU"

8 years agoMerge "msm: ipa3: add support for additional mappings to smmu"
Linux Build Service Account [Fri, 29 Jul 2016 18:24:30 +0000 (11:24 -0700)]
Merge "msm: ipa3: add support for additional mappings to smmu"

8 years agoMerge "scsi: ufs: return appropriate error code"
Linux Build Service Account [Fri, 29 Jul 2016 18:24:29 +0000 (11:24 -0700)]
Merge "scsi: ufs: return appropriate error code"

8 years agoMerge "ARM: dts: msm: Enable the GPU QDSS STM for msm8996"
Linux Build Service Account [Fri, 29 Jul 2016 18:24:28 +0000 (11:24 -0700)]
Merge "ARM: dts: msm: Enable the GPU QDSS STM for msm8996"

8 years agoARM: dts: msm: Enable droop and fault detection for pmicobalt flash LED
Devesh Jhunjhunwala [Tue, 19 Jul 2016 22:43:32 +0000 (15:43 -0700)]
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>
8 years agoleds: qpnp-flash-v2: Add support for led_fault_irq
Devesh Jhunjhunwala [Tue, 19 Jul 2016 22:23:56 +0000 (15:23 -0700)]
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>
8 years agoleds: qpnp-flash-v2: Add support for droop and fault detection
Devesh Jhunjhunwala [Thu, 7 Jul 2016 23:23:12 +0000 (16:23 -0700)]
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>
8 years agoleds: qpnp-flash: Implement the flash_prepare API
Devesh Jhunjhunwala [Tue, 26 Jul 2016 23:39:50 +0000 (16:39 -0700)]
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>
8 years agoleds: qpnp-flash-v2: Update the flash_prepare API
Devesh Jhunjhunwala [Tue, 26 Jul 2016 23:37:28 +0000 (16:37 -0700)]
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>
8 years agoARM: dts: msm: add battery profiles to msmcobalt MTP
Subbaraman Narayanamurthy [Mon, 25 Jul 2016 19:08:52 +0000 (12:08 -0700)]
ARM: dts: msm: add battery profiles to msmcobalt MTP

Ascent and Itech batteries might be used with msmcobalt MTP. Add
the battery profiles to support that.

Change-Id: Icfed6881763df35a7f948f171856903de7e07a2a
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
8 years agoARM: dts: msm: add batterydata for itech and ascent batteries
Subbaraman Narayanamurthy [Mon, 25 Jul 2016 18:51:19 +0000 (11:51 -0700)]
ARM: dts: msm: add batterydata for itech and ascent batteries

Batterydata for itech 3000mah and ascent 3450mah batteries are
newly created to be used with GEN3 FG on pmicobalt. Add them.

Change-Id: I0fe51b607d44920784cc0bb8bfd442e81f3c5d3d
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
8 years agoASoC: msm: Add dapm ignore suspend for front end dais
Sudheer Papothi [Tue, 26 Jul 2016 21:18:49 +0000 (02:48 +0530)]
ASoC: msm: Add dapm ignore suspend for front end dais

DAPM marks front end dai as dirty during ASoC suspend
which triggers device path teardown. Add ignore suspend
to all front end dais to avoid device path teardown.

CRs-Fixed: 1031932
Change-Id: I1d85578534c58c121ca8e560d67faf9b94e87be9
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
8 years agoft5x06: Set input property bit to indicate a direct input device
Amy Maloche [Wed, 20 Jun 2012 18:03:56 +0000 (11:03 -0700)]
ft5x06: Set input property bit to indicate a direct input device

Property bit is checked in userspace and must be set in
driver in order to be recognized correctly since it defaults
to mouse pointer.

Change-Id: Ibdc78547e6376e6db54db75b1423718d13afaaa7
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
8 years agomsm: mdss: add support to configure transfer unit for DP
Chandan Uddaraju [Mon, 11 Jul 2016 18:27:19 +0000 (11:27 -0700)]
msm: mdss: add support to configure transfer unit for DP

Configure the transfer unit settings to control the
symbol stuffing.

Change-Id: I80d6c1ae6d7096e170105e5d297a563b3bee053d
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
8 years agomdss: display-port: add mutex logic and configure data lanes
Chandan Uddaraju [Fri, 15 Jul 2016 19:56:16 +0000 (12:56 -0700)]
mdss: display-port: add mutex logic and configure data lanes

Add locking mechanism for host init. Remove mainlink_reset
before configuring the link rates.

Depending on the USB plug orientation, configure the
lane mapping register to support display-port over
usb-type-c port.

Change-Id: I7bf3fc6e102df113611b9450c92ecd4e50b26fb4
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
8 years agomdss: display-port: add support for USB type-C Alt mode
Chandan Uddaraju [Tue, 19 Jul 2016 23:11:05 +0000 (16:11 -0700)]
mdss: display-port: add support for USB type-C Alt mode

This change is needed to support display port
over USB type-C port. Add usbpd changes to
enable display port using Alternate mode for
type-C port.

Add support to parse VDO messages and send dp_config
packets when HPD is high.

Change-Id: I3ea5d969a73e3418af23ba4d8b7374fb20d2889f
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
8 years agomsm: mdss: display-port: add support to configure pixel and link rates
Chandan Uddaraju [Fri, 15 Jul 2016 15:13:13 +0000 (08:13 -0700)]
msm: mdss: display-port: add support to configure pixel and link rates

Use the DPCD info to configure pixel and link rates
supported by the sink.

Change-Id: Idd7ba4b564b013eda7596a111b9b934f6b6ff84f
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
8 years agomdss: display-port: fix register offsets for link training
Chandan Uddaraju [Wed, 20 Jul 2016 21:37:58 +0000 (14:37 -0700)]
mdss: display-port: fix register offsets for link training

Add proper register base and register address offsets
when configuring the voltage swings and preemphsis
settings. Fix interrupt register bit for VIDEO_READY.

Change-Id: I6e89f6fbb3660d13c186b38eb7ca1f71cbe8109d
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
8 years agomdss: display-port: add support for DP related gpios
Chandan Uddaraju [Wed, 20 Jul 2016 03:28:30 +0000 (20:28 -0700)]
mdss: display-port: add support for DP related gpios

The DP driver will need GPIOs to configure the
AUX channel and orientation of USB type-C port. Add
support for the GPIOs.

Change-Id: I9940ff3cbcca7dd0ac972cabbfddcbd9ac4657fa
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
8 years agomsm: mdss: fix clock and regulator configurations for DP
Chandan Uddaraju [Mon, 25 Jul 2016 03:33:31 +0000 (20:33 -0700)]
msm: mdss: fix clock and regulator configurations for DP

Add support for clock initialization during driver probe.
Add support to configure clock rates before enabling the
clocks.

Fix the regulators disable sequence for display-port.

We can only read hardware revision register only after
configuring the PHY. Move revision read to host_init()
function.

Change-Id: I0e9f6caf84a8cdd825002938dad18482e2489cbd
Signed-off-by: Chandan Uddaraju <chandanu@codeaurora.org>
8 years agoinput: ft5x06_ts: clean up the focaltech touchscreen driver
Shantanu Jain [Thu, 23 Jul 2015 12:05:39 +0000 (17:35 +0530)]
input: ft5x06_ts: clean up the focaltech touchscreen driver

Clean up the focaltech driver by fixing the following checkpatch
errors.

1. else is not generally useful after a break or return
2. Possible unnecessary 'out of memory' message
3. Using __devexit is unnecessary
4. Unnecessary space before function pointer arguments

This patch is a propagated patch from 3.18 kernel
'commit 2b6ea311a968 ("input: ft5x06_ts: fix checkpatch errors")'

Change-Id: I36ed0497c12b0f14e9d7b60c2d8e78729871b8d0
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
8 years agocfg80211: Advertise extended capabilities per interface type to userspace
Kanchanapally, Vidyullatha [Mon, 16 May 2016 05:11:04 +0000 (10:41 +0530)]
cfg80211: Advertise extended capabilities per interface type to userspace

The driver extended capabilities may differ for different
interface types which the userspace needs to know (for
example the fine timing measurement initiator and responder
bits might differ for a station and AP). Add a new nl80211
attribute to provide extended capabilities per interface type
to userspace.

Signed-off-by: Vidyullatha Kanchanapally <vkanchan@qti.qualcomm.com>
Reviewed-by: Jouni Malinen <jouni@qca.qualcomm.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Git-commit: 019ae3a918811715192b22c400ac78d54acc26a9
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git
CRs-fixed: 1030694
Change-Id: I816b21d8433aea9407a14a8c8a5098701ee53b8c
[pkushwah@codeaurora.org: backport to 4.4-This commit includes the
changes from following commits in include/uapi/linux/nl80211.h to compile
for msm-4.4.
38de03d2a28925b489c11546804e2f5418cc17a4 :
nl80211: add feature for BSS selection support.
17b942478643c5a90c06d978479bd326040bfa19 :
cfg80211: allow userspace to specify client P2P PS support.
9b95fe59b18bcc891a6c60ae11d725c9c679574b :
nl80211: add missing kerneldoc for new *_PAD attributes.
2dad624e6dd65c6048a9bbe0e16559fce182c87c :
wireless: use nla_put_u64_64bit().]
Signed-off-by: Purushottam Kushwaha <pkushwah@codeaurora.org>
8 years agoRevert "misc: uidstat: Adding uid stat driver to collect network statistics."
Amit Pundir [Mon, 25 Apr 2016 11:38:15 +0000 (17:08 +0530)]
Revert "misc: uidstat: Adding uid stat driver to collect network statistics."

This reverts commit 6b6d5fbf9ae567aefb58099a30bbb6d25fa8925b.

Change-Id: I5c64b6264e0d55a7ca16a72e31316e6329f2b842
CRs-Fixed: 1035969
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Git-commit: ece28ad441409646dc6330b06d347465d2730feb
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Bryse Flowers <bflowers@codeaurora.org>
8 years agoxt_qtaguid: Fix panic caused by processing non-full socket.
John Stultz [Thu, 12 May 2016 18:17:52 +0000 (11:17 -0700)]
xt_qtaguid: Fix panic caused by processing non-full socket.

In an issue very similar to 4e461c777e3 (xt_qtaguid: Fix panic
caused by synack processing), we were seeing panics on occasion
in testing.

In this case, it was the same issue, but caused by a different
call path, as the sk being returned from qtaguid_find_sk() was
not a full socket. Resulting in the sk->sk_socket deref to fail.

This patch adds an extra check to ensure the sk being retuned
is a full socket, and if not it returns NULL.

Change-Id: Icee0df589ea8d61a999e8c7ea3afdcf4a40b412b
CRs-Fixed: 1035969
Reported-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Git-commit: cc0063b8eb44f08bb899fb47d562c67d73b7245b
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Bryse Flowers <bflowers@codeaurora.org>
8 years agoxt_qtaguid: Fix panic caused by synack processing
John Stultz [Sat, 23 Apr 2016 00:12:57 +0000 (17:12 -0700)]
xt_qtaguid: Fix panic caused by synack processing

In upstream commit ca6fb06518836ef9b65dc0aac02ff97704d52a05
(tcp: attach SYNACK messages to request sockets instead of
listener)
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=ca6fb0651883

The building of synack messages was changed, which made it so
the skb->sk points to a casted request_sock. This is problematic,
as there is no sk_socket in a request_sock. So when the qtaguid_mt
function tries to access the sk->sk_socket, it accesses uninitialized
memory.

After looking at how other netfilter implementations handle this,
I realized there was a skb_to_full_sk() helper added, which the
xt_qtaguid code isn't yet using.

This patch adds its use, and resovles panics seen when accessing
uninitialzed memory when processing synack packets.

Change-Id: Id0dbb7853aba221c1926e44616524fed90677602
CRs-Fixed: 1035969
Reported-by: YongQin Liu <yongquin.liu@linaro.org>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Git-commit: 4e461c777e345727aa2988377774c996d303ac46
Git-repo: https://android.googlesource.com/kernel/common/
Signed-off-by: Bryse Flowers <bflowers@codeaurora.org>
8 years agoRevert "net: activity_stats: Add statistics for network transmission activity"
Amit Pundir [Mon, 25 Apr 2016 11:31:08 +0000 (17:01 +0530)]
Revert "net: activity_stats: Add statistics for network transmission activity"

This reverts commit afedd7beba14385fd797166751fde39e0f52cf72.

Change-Id: Ibc9160b445254b0212c23664a94fd27b7788aa76
CRs-Fixed: 1035969
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Git-commit: 42d9422a803afc7c1db3502787fdbe75577bc14d
Git-repo: https://android.googlesource.com/kernel/common/
[bflowers@codeaurora.org: Fix-up internal configs]
Signed-off-by: Bryse Flowers <bflowers@codeaurora.org>
8 years agoscsi: ufs: return appropriate error code
Venkat Gopalakrishnan [Thu, 28 Jul 2016 20:09:30 +0000 (13:09 -0700)]
scsi: ufs: return appropriate error code

If link recovery succeeds after a hibern8 exit failure,
return success as the link is active now for use.

Change-Id: I76ac226a2a1e33dd9c6240cac3443a03355bb75e
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
8 years agoleds: qpnp-flash-v2: Create atomic notifier chain for flash irqs
Devesh Jhunjhunwala [Tue, 7 Jun 2016 21:22:33 +0000 (14:22 -0700)]
leds: qpnp-flash-v2: Create atomic notifier chain for flash irqs

Create an atomic notifier call chain to notify registered
clients of a flash-led irq event.

CRs-Fixed: 921325
Change-Id: I218195c29fede7ae5959df8c40df0231a71de379
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
8 years agoARM: dts: msm: By default, handle FW errors as fatal on msmcobalt
Chinmay Sawarkar [Tue, 19 Jul 2016 23:30:15 +0000 (16:30 -0700)]
ARM: dts: msm: By default, handle FW errors as fatal on msmcobalt

All FW errors such as SYS_ERROR, SESSION_ERROR and timeouts
will be treated as Fatal.

CRs-Fixed: 1037031
Change-Id: I12463f98cf50f5c8cdfdd47775dec075219974d6
Signed-off-by: Chinmay Sawarkar <chinmays@codeaurora.org>
8 years agoASoC: msm-cpe-lsm: add support for two CPE sessions
Sudheer Papothi [Wed, 18 May 2016 01:34:20 +0000 (07:04 +0530)]
ASoC: msm-cpe-lsm: add support for two CPE sessions

Existing CPE(Codec Processing Engine) driver supports single session.
Add support for two sessions with different sampling rates.

CRs-fixed: 1022917
Change-Id: Icb355cd07db9cc66632ac0ea14464c5610919725
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
8 years agoARM: dts: msm: Add interrupts to flash-led device for pmicobalt
Devesh Jhunjhunwala [Fri, 3 Jun 2016 19:29:13 +0000 (12:29 -0700)]
ARM: dts: msm: Add interrupts to flash-led device for pmicobalt

Add the all-ramp-up-done and all-ramp-down-done interrupts
to the flash-led device for pmicobalt. These interrupts will
be used to notify the flash-led clients when all leds have
completed ramping up or down after the flash is triggered.

CRs-Fixed: 921325
Change-Id: I39a6ba34e43dab8035bf232d0e640e72d7a34575
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
8 years agoleds: qpnp-flash-v2: Add support to handle ramp up and down irqs
Devesh Jhunjhunwala [Fri, 3 Jun 2016 19:27:39 +0000 (12:27 -0700)]
leds: qpnp-flash-v2: Add support to handle ramp up and down irqs

Add support to register and handle the all-ramp-up-done
and all-ramp-down-done irqs for flash-led.

CRs-Fixed: 921325
Change-Id: I843a008dbe6900f9f16c202a05435dbaf7a37627
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
8 years agoASoC: msm: Implement HFP tx mute get function
Dhanalakshmi Siddani [Fri, 22 Jul 2016 09:45:05 +0000 (15:15 +0530)]
ASoC: msm: Implement HFP tx mute get function

Implement function to get HFP Tx mute status.

CRs-Fixed: 1045063
Change-Id: I64931decb9948ed47f046c0b6267150fe512a3dc
Signed-off-by: Dhanalakshmi Siddani <dsiddani@codeaurora.org>
8 years agoinput: it7258_ts_i2c: add DT parsing support for touch driver
Abinaya P [Thu, 7 May 2015 10:42:24 +0000 (16:12 +0530)]
input: it7258_ts_i2c: add DT parsing support for touch driver

Add device tree support for ITE Tech touch controller driver.

Change-Id: I2671b7c30b0f2ed1d7ad788f29b7f900a2a1cdcc
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
Signed-off-by: Abinaya P <abinayap@codeaurora.org>
8 years agoMerge "thermal: tsens: Remove registering for Critical trip zone"
Linux Build Service Account [Thu, 28 Jul 2016 02:27:17 +0000 (19:27 -0700)]
Merge "thermal: tsens: Remove registering for Critical trip zone"

8 years agoMerge "defconfig: msmcortex: Enable FG_GEN3 driver"
Linux Build Service Account [Thu, 28 Jul 2016 02:27:16 +0000 (19:27 -0700)]
Merge "defconfig: msmcortex: Enable FG_GEN3 driver"

8 years agoMerge "defconfig: arm64: msm: enable CP15 barrier and SETEND simulation"
Linux Build Service Account [Thu, 28 Jul 2016 02:27:15 +0000 (19:27 -0700)]
Merge "defconfig: arm64: msm: enable CP15 barrier and SETEND simulation"

8 years agoMerge "msm: ipa3: add support for SMMU to USB"
Linux Build Service Account [Thu, 28 Jul 2016 02:27:13 +0000 (19:27 -0700)]
Merge "msm: ipa3: add support for SMMU to USB"

8 years agoMerge "usb: f_gsi: Update connection parameters for GSI channels"
Linux Build Service Account [Thu, 28 Jul 2016 02:27:12 +0000 (19:27 -0700)]
Merge "usb: f_gsi: Update connection parameters for GSI channels"

8 years agoMerge "ASoC: wcd_cpe: Add support for two CPE sessions"
Linux Build Service Account [Thu, 28 Jul 2016 02:27:10 +0000 (19:27 -0700)]
Merge "ASoC: wcd_cpe: Add support for two CPE sessions"

8 years agoMerge "slim-msm: Synchronize SSR callbacks"
Linux Build Service Account [Thu, 28 Jul 2016 02:27:08 +0000 (19:27 -0700)]
Merge "slim-msm: Synchronize SSR callbacks"

8 years agoMerge "msm: kgsl: Map GPU QDSS STM through GPU IOMMU"
Linux Build Service Account [Thu, 28 Jul 2016 02:27:07 +0000 (19:27 -0700)]
Merge "msm: kgsl: Map GPU QDSS STM through GPU IOMMU"

8 years agoMerge "defconfig: Enable IOMMU debugfs in perf-defconfig"
Linux Build Service Account [Thu, 28 Jul 2016 02:27:06 +0000 (19:27 -0700)]
Merge "defconfig: Enable IOMMU debugfs in perf-defconfig"

8 years agoMerge "msm: mdss: Update LM parameters during dest scaler transition"
Linux Build Service Account [Thu, 28 Jul 2016 02:27:05 +0000 (19:27 -0700)]
Merge "msm: mdss: Update LM parameters during dest scaler transition"

8 years agoMerge "thermal: qpnp-adc-tm: Update reverse threshold and notification"
Linux Build Service Account [Thu, 28 Jul 2016 02:27:04 +0000 (19:27 -0700)]
Merge "thermal: qpnp-adc-tm: Update reverse threshold and notification"

8 years agoMerge "crypto: msm: enable hw crypto driver for msmfalcon"
Linux Build Service Account [Thu, 28 Jul 2016 02:27:03 +0000 (19:27 -0700)]
Merge "crypto: msm: enable hw crypto driver for msmfalcon"

8 years agoMerge "soc: qcom: build kryo perf events only for MSM8996"
Linux Build Service Account [Thu, 28 Jul 2016 02:27:02 +0000 (19:27 -0700)]
Merge "soc: qcom: build kryo perf events only for MSM8996"

8 years agoMerge "input: ft5x06_ts: Add driver for ft5x06 series"
Linux Build Service Account [Thu, 28 Jul 2016 02:27:01 +0000 (19:27 -0700)]
Merge "input: ft5x06_ts: Add driver for ft5x06 series"

8 years agoMerge "ASoC: Fix freed memory access of pcm stream kctl"
Linux Build Service Account [Thu, 28 Jul 2016 02:27:00 +0000 (19:27 -0700)]
Merge "ASoC: Fix freed memory access of pcm stream kctl"