OSDN Git Service

sagit-ice-cold/kernel_xiaomi_msm8998.git
8 years agoqcom-charger: smb138x-charger: add parallel enable status properties
Nicholas Troast [Wed, 27 Jul 2016 18:29:30 +0000 (11:29 -0700)]
qcom-charger: smb138x-charger: add parallel enable status properties

There are several ways that the parallel charger can be enabled, and
disabled. Currently charging is enabled by default, but the hardware has
the option to disable the parallel charger via the CHG_EN pin on the
parallel charger. The parallel charger driver controls when the
parallel charger is enabled via the input suspend bit.

To better understand the state of the parallel charger add two power
supply properties to the parallel power supply:

CHARGING_ENABLED - Reflects whether the parallel charger is
  enabled by any source.
PIN_ENABLED - Reflects whether hardware has voted to enable
  the parallel charger.

Change-Id: I725245178ab02c5ec39b89998f5c2ca3d494c8ee
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
8 years agopower_supply: add PIN_ENABLED property
Nicholas Troast [Tue, 2 Aug 2016 20:43:58 +0000 (13:43 -0700)]
power_supply: add PIN_ENABLED property

Hardware disables the parallel charger via the CHG_EN pin. Add a new
property called PIN_ENABLED which reflects the status of the CHG_EN pin.

Change-Id: I79f95b145176b66d6b8cec5a21922ea16c2c8206
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
8 years agoMerge "ASoC: open ASM session with 24 bit for 24 bit playback"
Linux Build Service Account [Wed, 27 Jul 2016 06:34:43 +0000 (23:34 -0700)]
Merge "ASoC: open ASM session with 24 bit for 24 bit playback"

8 years agoMerge "scsi: ufs: Crash the system on unrecoverable state"
Linux Build Service Account [Wed, 27 Jul 2016 06:34:42 +0000 (23:34 -0700)]
Merge "scsi: ufs: Crash the system on unrecoverable state"

8 years agoMerge "msm: cpp: Query buffer from buffer manager based on index"
Linux Build Service Account [Wed, 27 Jul 2016 06:34:41 +0000 (23:34 -0700)]
Merge "msm: cpp: Query buffer from buffer manager based on index"

8 years agoMerge "usb: pd: Add vendor defined message handling"
Linux Build Service Account [Wed, 27 Jul 2016 06:34:41 +0000 (23:34 -0700)]
Merge "usb: pd: Add vendor defined message handling"

8 years agoMerge "ARM: dts: msm: add default trace sink for MSMCOBALT"
Linux Build Service Account [Wed, 27 Jul 2016 06:34:40 +0000 (23:34 -0700)]
Merge "ARM: dts: msm: add default trace sink for MSMCOBALT"

8 years agoMerge "input: touchpanel: Add GT9xx touchpanel driver for skuf"
Linux Build Service Account [Wed, 27 Jul 2016 06:34:38 +0000 (23:34 -0700)]
Merge "input: touchpanel: Add GT9xx touchpanel driver for skuf"

8 years agoMerge "input: touchscreen: Add synaptics v1 driver"
Linux Build Service Account [Wed, 27 Jul 2016 06:34:37 +0000 (23:34 -0700)]
Merge "input: touchscreen: Add synaptics v1 driver"

8 years agoMerge "soc: qcom: build kryo-l2-accessors only for msm8996"
Linux Build Service Account [Wed, 27 Jul 2016 06:34:36 +0000 (23:34 -0700)]
Merge "soc: qcom: build kryo-l2-accessors only for msm8996"

8 years agoMerge "clk: msm8996: compile 8996 clock files only for ARCH_MSM8996"
Linux Build Service Account [Wed, 27 Jul 2016 06:34:36 +0000 (23:34 -0700)]
Merge "clk: msm8996: compile 8996 clock files only for ARCH_MSM8996"

8 years agoMerge "input: touchpanel: Add Mstar msg21xx touchpanel driver"
Linux Build Service Account [Wed, 27 Jul 2016 06:34:35 +0000 (23:34 -0700)]
Merge "input: touchpanel: Add Mstar msg21xx touchpanel driver"

8 years agoMerge "usb: xhci-plat: Add XHCI_STATE_REMOVING flag on removal of usb device"
Linux Build Service Account [Wed, 27 Jul 2016 06:34:34 +0000 (23:34 -0700)]
Merge "usb: xhci-plat: Add XHCI_STATE_REMOVING flag on removal of usb device"

8 years agoMerge "xhci: fix 10 second timeout on removal of PCI hotpluggable xhci controllers"
Linux Build Service Account [Wed, 27 Jul 2016 06:34:33 +0000 (23:34 -0700)]
Merge "xhci: fix 10 second timeout on removal of PCI hotpluggable xhci controllers"

8 years agoMerge "ASoc: msm: fix out of bounds array access"
Linux Build Service Account [Wed, 27 Jul 2016 06:34:32 +0000 (23:34 -0700)]
Merge "ASoc: msm: fix out of bounds array access"

8 years agoMerge "ASoC: msm: qdsp6v2: DAP: Update check to validate data length"
Linux Build Service Account [Wed, 27 Jul 2016 06:34:31 +0000 (23:34 -0700)]
Merge "ASoC: msm: qdsp6v2: DAP: Update check to validate data length"

8 years agoMerge "qcom-charger: smb2: configure input from wipower"
Linux Build Service Account [Wed, 27 Jul 2016 06:34:31 +0000 (23:34 -0700)]
Merge "qcom-charger: smb2: configure input from wipower"

8 years agoMerge "msm: Camera buffer overflow fix"
Linux Build Service Account [Wed, 27 Jul 2016 06:34:30 +0000 (23:34 -0700)]
Merge "msm: Camera buffer overflow fix"

8 years agoMerge "iommu/arm-smmu: Print device name in context fault handler"
Linux Build Service Account [Wed, 27 Jul 2016 06:34:29 +0000 (23:34 -0700)]
Merge "iommu/arm-smmu: Print device name in context fault handler"

8 years agoMerge "sound: usb: Update USB audio QMI data structure"
Linux Build Service Account [Wed, 27 Jul 2016 06:34:28 +0000 (23:34 -0700)]
Merge "sound: usb: Update USB audio QMI data structure"

8 years agomsm: cpp: Query buffer from buffer manager based on index
Krishnankutty Kolathappilly [Tue, 3 May 2016 06:46:14 +0000 (23:46 -0700)]
msm: cpp: Query buffer from buffer manager based on index

Query buffer from buffer manager based on buf index.
This allows modules to provide a buffer associated
with a particular request and avoids a wrong buffer
from being returned.

CRs-Fixed: 1018651
Change-Id: I206f3fa334d96e9f57fcbd985922a436ed701ff3
Signed-off-by: Krishnankutty Kolathappilly <kkolatha@codeaurora.org>
Signed-off-by: Hariram Purushothaman <hariramp@codeaurora.org>
8 years agoclk: osm: msm: add support for DxFSM workaround
Osvaldo Banuelos [Wed, 6 Jul 2016 21:40:59 +0000 (14:40 -0700)]
clk: osm: msm: add support for DxFSM workaround

Support a new OSM sequence which optimizes the number of
instructions required to program MEM-ACC settings and
the APM configuration of the CPUSS. This frees up sufficent
space to implement the DxFSM workaround.

CRs-Fixed: 1043040
Change-Id: I9499497cb558efcf3c73e7145ce65d3f129be696
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
8 years agoclk: msm: osm: add workaround for C2D/C3 + D2D collapse issue
Osvaldo Banuelos [Mon, 20 Jun 2016 19:51:53 +0000 (12:51 -0700)]
clk: msm: osm: add workaround for C2D/C3 + D2D collapse issue

Program architectural register 6 with the address of the SPM
core count hysteresis register and architectural register 7
with the up and down core-count SPM hysteresis values. The
sequencer uses this information to ensure stable operation
when CPU retention or power-collapse and cluster collapse
LPMs are enabled.

CRs-Fixed: 1045435
Change-Id: I5e41ce376c694736128ceb051db86f93467fdaea
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
8 years agoARM: dts: msm: update frequency to ACC level mappings for msmcobalt
Osvaldo Banuelos [Mon, 20 Jun 2016 18:16:16 +0000 (11:16 -0700)]
ARM: dts: msm: update frequency to ACC level mappings for msmcobalt

Since LowSVS and SVS frequencies share the same ACC settings,
map any frequency in the LowSVS to SVS range to the same ACC
level. By doing so, the OSM device need only support 3 levels
instead of 4 thus saving sequencer instruction space. Also,
update the ACC setting to ensure bit 31 of the last ACC register
in each cluster is set when running at LowSVS/SVS frequencies.

CRs-Fixed: 1021659
Change-Id: I322b9b57ec89f5cdc75336d83010ff89a6bb5726
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
8 years agoARM: dts: msm: specify APM threshold voltage in OSM for msmcobalt
Osvaldo Banuelos [Tue, 21 Jun 2016 22:10:20 +0000 (15:10 -0700)]
ARM: dts: msm: specify APM threshold voltage in OSM for msmcobalt

Define the APM threshold voltage to be used by the OSM device
to determine the correct APM supply selection for different
DCVS setpoints.

CRs-Fixed: 1021656 1030444
Change-Id: Iebeb45eaa2503bd5be19f00938d0dbec1163c5a5
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
8 years agoclk: msm: osm: add support for APM crossover corner
Osvaldo Banuelos [Tue, 21 Jun 2016 16:19:16 +0000 (09:19 -0700)]
clk: msm: osm: add support for APM crossover corner

Add support to determine the APM threshold corner via open-loop
voltages in the VDD regulator OPP table. The threshold corner
is used by OSM to determine the APM supply for each DCVS setpoint.
The crossover corner is used by OSM to request a specific voltage
during the APM switch transition.

CRs-Fixed: 1021656 1030444
Change-Id: Iac04f6db8e85b3651a33b6c9bff667365cae891d
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
8 years agoregulator: cprh-kbss-regulator: add support for APM crossover corner
Osvaldo Banuelos [Tue, 24 May 2016 00:12:08 +0000 (17:12 -0700)]
regulator: cprh-kbss-regulator: add support for APM crossover corner

Add support for a corner whose open-loop voltage corresponds to the
VDD supply voltage required during an APM switch transition. This
corner is requested by OSM hardware to the CPRh controller when
the VDD supply must be set to a specific voltage to ensure a stable
APM switch procedure. Define a crossover corner of 880 mV for both
VDD_APC CPR devices.

CRs-Fixed: 1021656
Change-Id: Icf4b640ec2c330b0d9721d3494297e2d8445c9b6
Signed-off-by: Osvaldo Banuelos <osvaldob@codeaurora.org>
8 years agoARM: dts: msm: put ipa3 in smmu s1-bypass on msmcobalt
Skylar Chang [Mon, 6 Jun 2016 16:29:44 +0000 (09:29 -0700)]
ARM: dts: msm: put ipa3 in smmu s1-bypass on msmcobalt

Enable SMMU on IPA3 and put in stage1-bypass mode to
not do the memory mapping.

Change-Id: Id2811c67a423c82201993b3119647a3d4caf4517
Acked-by: Ady Abraham <adya@qti.qualcomm.com>
Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
8 years agoMerge "clk: msm: osm: support PLL droop detector workaround" into msm-4.4
Linux Build Service Account [Tue, 26 Jul 2016 22:08:56 +0000 (15:08 -0700)]
Merge "clk: msm: osm: support PLL droop detector workaround" into msm-4.4

8 years agoscsi: ufs: Crash the system on unrecoverable state
Venkat Gopalakrishnan [Tue, 26 Jul 2016 01:55:53 +0000 (18:55 -0700)]
scsi: ufs: Crash the system on unrecoverable state

If we have hit fatal errors and are not able to recover using
a reset, crash the system instead of proceeding and causing
further system failures.

Change-Id: I01820e4e8d3d3b603f16b615ae475095c3a417dd
Signed-off-by: Venkat Gopalakrishnan <venkatg@codeaurora.org>
8 years agousb: pd: Add vendor defined message handling
Jack Pham [Tue, 12 Jul 2016 23:01:07 +0000 (16:01 -0700)]
usb: pd: Add vendor defined message handling

Add APIs to send and receive vendor defined messages (VDM) over
USB PD. A handler for a standard or vendor ID (SVID) can register
callbacks to be notified of reception of VDM messages. One
use case is for another kernel driver, such as DisplayPort, to be
able to be notified when an Alternate Mode adapter is connected
to the Type-C port in order to enter modal operation. SVID
handlers should maintain their own state and timer resources
in order to comply with the Power Delivery Specification.

Change-Id: Ibe26e6deeca587f21f8121f6f32cf7cc0a5c3e23
Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>
Signed-off-by: Jack Pham <jackp@codeaurora.org>
8 years agoARM: dts: msm: add default trace sink for MSMCOBALT
Satyajit Desai [Fri, 8 Jul 2016 19:54:27 +0000 (12:54 -0700)]
ARM: dts: msm: add default trace sink for MSMCOBALT

Enable TMC-ETF as the default sink for CoreSight logging.

Change-Id: Ifc867e83746f51abc8d990a334d3f5642efc9c33
Signed-off-by: Satyajit Desai <sadesai@codeaurora.org>
8 years agoinput: touchscreen: Add synaptics v1 driver
Alexandra Chin [Mon, 24 Dec 2012 07:42:30 +0000 (15:42 +0800)]
input: touchscreen: Add synaptics v1 driver

This is the initial commit from thirt party project.
Git-commit: bedea8a0819fc95acd0222e21e61203c8a08bb16
Git-repo: https://github.com/synaptics-touch/synaptics-dsx-i2c/

Change-Id: I892bc03122b096b43fc7f6b757b1161470597ddb
Signed-off-by: Alexandra Chin <alexandra.chin@tw.synaptics.com>
Signed-off-by: Amy Maloche <amaloche@codeaurora.org>
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
(cherry picked from commit 7d4470e29ce77e62acc14a21210e88207e4692b5)

8 years agoMerge "clk: qcom: clk-dummy: Add a dummy clock provider"
Linux Build Service Account [Sun, 24 Jul 2016 16:55:40 +0000 (09:55 -0700)]
Merge "clk: qcom: clk-dummy: Add a dummy clock provider"

8 years agoMerge "ARM: dts: msm: Add GDSC data for mnoc fab for msmcobalt"
Linux Build Service Account [Sun, 24 Jul 2016 09:02:46 +0000 (02:02 -0700)]
Merge "ARM: dts: msm: Add GDSC data for mnoc fab for msmcobalt"

8 years agoMerge "msm: mdss: mdp: fix handling of GDSC off notifier"
Linux Build Service Account [Sun, 24 Jul 2016 09:02:45 +0000 (02:02 -0700)]
Merge "msm: mdss: mdp: fix handling of GDSC off notifier"

8 years agoMerge "ASoC: wcd: add wcd934x gpio controller device"
Linux Build Service Account [Sat, 23 Jul 2016 23:05:26 +0000 (16:05 -0700)]
Merge "ASoC: wcd: add wcd934x gpio controller device"

8 years agoMerge "input: touchscreen: remove dead code in it7258 driver"
Linux Build Service Account [Fri, 22 Jul 2016 15:56:34 +0000 (08:56 -0700)]
Merge "input: touchscreen: remove dead code in it7258 driver"

8 years agoMerge "input: touchscreen: Add Touch screen driver for IC it7258"
Linux Build Service Account [Fri, 22 Jul 2016 15:56:34 +0000 (08:56 -0700)]
Merge "input: touchscreen: Add Touch screen driver for IC it7258"

8 years agoMerge "of_batterydata: Pass battery id directly to find battery profile"
Linux Build Service Account [Fri, 22 Jul 2016 15:56:33 +0000 (08:56 -0700)]
Merge "of_batterydata: Pass battery id directly to find battery profile"

8 years agoMerge "clk: msm: Fix MDSS compilation issue"
Linux Build Service Account [Fri, 22 Jul 2016 15:56:32 +0000 (08:56 -0700)]
Merge "clk: msm: Fix MDSS compilation issue"

8 years agoMerge "dwc3: gadget: Add debug event for pull up operation"
Linux Build Service Account [Fri, 22 Jul 2016 15:56:31 +0000 (08:56 -0700)]
Merge "dwc3: gadget: Add debug event for pull up operation"

8 years agoMerge "msm: camera: isp: Vote bandwidth with clock enabled"
Linux Build Service Account [Fri, 22 Jul 2016 15:56:30 +0000 (08:56 -0700)]
Merge "msm: camera: isp: Vote bandwidth with clock enabled"

8 years agoMerge "msm: camera isp: Control camif interrupts on camif enable/disable"
Linux Build Service Account [Fri, 22 Jul 2016 15:56:29 +0000 (08:56 -0700)]
Merge "msm: camera isp: Control camif interrupts on camif enable/disable"

8 years agoMerge "msm: mdss: fix mdss errors on 32-bit compilation"
Linux Build Service Account [Fri, 22 Jul 2016 15:56:28 +0000 (08:56 -0700)]
Merge "msm: mdss: fix mdss errors on 32-bit compilation"

8 years agoMerge "soc: qcom: glink: Included sched.h to avoid build error"
Linux Build Service Account [Fri, 22 Jul 2016 15:56:27 +0000 (08:56 -0700)]
Merge "soc: qcom: glink: Included sched.h to avoid build error"

8 years agoMerge "arm: dma-mapping: Export arch_setup_dma_ops symbol"
Linux Build Service Account [Fri, 22 Jul 2016 15:56:24 +0000 (08:56 -0700)]
Merge "arm: dma-mapping: Export arch_setup_dma_ops symbol"

8 years agoMerge "soc: qcom: smem_xprt: Add CDSP entry in smem xprt driver"
Linux Build Service Account [Fri, 22 Jul 2016 15:56:23 +0000 (08:56 -0700)]
Merge "soc: qcom: smem_xprt: Add CDSP entry in smem xprt driver"

8 years agoMerge "ARM: dts: msm: Add G-Link SSR entries for MSMFALCON"
Linux Build Service Account [Fri, 22 Jul 2016 15:56:21 +0000 (08:56 -0700)]
Merge "ARM: dts: msm: Add G-Link SSR entries for MSMFALCON"

8 years agoMerge "ARM: dts: msm: Add SMEM entry for MSMFALCON"
Linux Build Service Account [Fri, 22 Jul 2016 15:56:20 +0000 (08:56 -0700)]
Merge "ARM: dts: msm: Add SMEM entry for MSMFALCON"

8 years agoMerge "Bluetooth: HID: Add support for building hid drivers"
Linux Build Service Account [Fri, 22 Jul 2016 15:56:20 +0000 (08:56 -0700)]
Merge "Bluetooth: HID: Add support for building hid drivers"

8 years agosoc: qcom: build kryo-l2-accessors only for msm8996
Srinivas Ramana [Fri, 8 Jul 2016 06:42:01 +0000 (12:12 +0530)]
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>
8 years agoclk: msm8996: compile 8996 clock files only for ARCH_MSM8996
Srinivas Ramana [Fri, 22 Jul 2016 09:43:43 +0000 (15:13 +0530)]
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>
8 years agoASoC: open ASM session with 24 bit for 24 bit playback
Preetam Singh Ranawat [Mon, 27 Jun 2016 11:24:07 +0000 (16:54 +0530)]
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>
8 years agoinput: touchpanel: Add Mstar msg21xx touchpanel driver
Bruce Ding [Tue, 15 Jul 2014 05:54:07 +0000 (13:54 +0800)]
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>
8 years agoinput: touchscreen: remove dead code in it7258 driver
Sudhakar Manapati [Tue, 5 May 2015 14:25:30 +0000 (19:55 +0530)]
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>
8 years agoinput: touchpanel: Add GT9xx touchpanel driver for skuf
Andrew Huang [Thu, 27 Jun 2013 10:06:56 +0000 (10:06 +0000)]
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>
8 years agoinput: touchscreen: Add Touch screen driver for IC it7258
Alfred.Deng [Thu, 29 Jan 2015 11:11:43 +0000 (19:11 +0800)]
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>
8 years agoclk: msm: Fix MDSS compilation issue
Taniya Das [Fri, 22 Jul 2016 04:44:30 +0000 (10:14 +0530)]
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>
8 years agoof_batterydata: Pass battery id directly to find battery profile
Subbaraman Narayanamurthy [Mon, 18 Jul 2016 23:09:08 +0000 (16:09 -0700)]
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>
8 years agomsm: camera: isp: Vote bandwidth with clock enabled
Shubhraprakash Das [Wed, 20 Jul 2016 18:29:06 +0000 (11:29 -0700)]
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>
8 years agoclk: qcom: clk-dummy: Add a dummy clock provider
Taniya Das [Mon, 6 Jun 2016 10:22:09 +0000 (15:52 +0530)]
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>
8 years agoASoC: msm: qdsp6v2: DAP: Update check to validate data length
Ashish Jain [Mon, 18 Jul 2016 10:37:42 +0000 (16:07 +0530)]
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>
8 years agoARM: dts: msm: Add G-Link SSR entries for MSMFALCON
Dhoat Harpal [Mon, 27 Jun 2016 10:55:14 +0000 (16:25 +0530)]
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>
8 years agoARM: dts: msm: Add SMEM entry for MSMFALCON
Dhoat Harpal [Mon, 27 Jun 2016 09:11:03 +0000 (14:41 +0530)]
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>
8 years agosoc: qcom: smem_xprt: Add CDSP entry in smem xprt driver
Dhoat Harpal [Tue, 28 Jun 2016 15:09:39 +0000 (20:39 +0530)]
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>
8 years agosoc: qcom: glink: Included sched.h to avoid build error
Dhoat Harpal [Fri, 15 Jul 2016 14:01:39 +0000 (19:31 +0530)]
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>
8 years agoarm: dma-mapping: Export arch_setup_dma_ops symbol
Venkatesh Yadav Abbarapu [Thu, 21 Jul 2016 11:50:43 +0000 (17:20 +0530)]
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>
8 years agosoc: qcom: smem: Add CDSP processor ID
Dhoat Harpal [Mon, 27 Jun 2016 11:46:03 +0000 (17:16 +0530)]
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>
8 years agoBluetooth: HID: Add support for building hid drivers
Hemant Gupta [Thu, 21 Jul 2016 10:37:34 +0000 (16:07 +0530)]
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>
8 years agomsm: Camera buffer overflow fix
Manish Poddar [Thu, 7 Jul 2016 11:52:06 +0000 (17:22 +0530)]
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>
8 years agoqcom-charger: smb2: configure input from wipower
Abhijeet Dharmapurikar [Tue, 21 Jun 2016 21:20:24 +0000 (14:20 -0700)]
qcom-charger: smb2: configure input from wipower

Wipower feeds to the DCIN input of the smb2 charger and relies on
input current configurations on six different voltage ranges for
optimal power draw.

Provide means to configure the current limits in them via a device
tree setting.

Change-Id: I81d1dc3ed1d588d67525b15120e7d8b947536099
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
8 years agomsm: kgsl: Keep the active draw context until it is switched out
Jordan Crouse [Wed, 11 May 2016 15:37:52 +0000 (09:37 -0600)]
msm: kgsl: Keep the active draw context until it is switched out

Instead of trying to make a decision to switch out the active
draw context for NULL at detach time leave the reference count
for it until the next context switch or until the next slumber
whichever comes first. This avoids races with the preemption
code and ensures a smooth transition.

A side effect is that we were depending heavily on the context
detach to reset the ringbuffer to the default at power down and
we didn't touch it on power up (though we did on soft reset and
wake from slumber. Curious).  Obviously if we are no longer
switching we will need to force the default pagetable during start
but it seems to me like this would be the right thing to do even
if we were still switching out.

CRs-Fixed: 1009124
Change-Id: Ic0dedbadff8df192096292b221130c8ef5b31e12
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
8 years agomsm: kgsl: Force all command level context switches to the GPU
Jordan Crouse [Wed, 11 May 2016 15:37:51 +0000 (09:37 -0600)]
msm: kgsl: Force all command level context switches to the GPU

Force any command triggered context switch to the GPU - it should
be on the GPU anyway, but we were already passing a flags parameter
(unused) so this is a good chance to force the issue and make sure
that the cpu path decision isn't in play here.

CRs-Fixed: 1009124
Change-Id: Ic0dedbadb277a6498d0840b45c90e1265e2f354a
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
8 years agomsm: kgsl: Record the ringbuffer start of pipeline timestamp
Jordan Crouse [Wed, 11 May 2016 15:37:49 +0000 (09:37 -0600)]
msm: kgsl: Record the ringbuffer start of pipeline timestamp

We are only writing the ringbuffer start of pipeline timestamp for
internal commands that do not have a draw context associated which
happen rarely (if ever).  We should be recording the timestamp for
*ALL* commands so when something goes wrong we can get a fuller
idea of the timestamp picture for each ringbuffer.

CRs-Fixed: 1009134
Change-Id: Ic0dedbad6d99130e31cd8a06dfe025610e9157a8
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
8 years agomsm: kgsl: Relax timestamp comparisons for processing events
Jordan Crouse [Wed, 11 May 2016 15:37:48 +0000 (09:37 -0600)]
msm: kgsl: Relax timestamp comparisons for processing events

When processing an event group we check the previously processed
timestamp to avoid going through the loop if we don't need to.
We use timestamp_cmp() to check the timestamp. In situations
where the retired timestamp has advanced by more than 0x80000000
since the last time we checked the timestamp, timestamp_cmp()
will return -1 as it thinks that the new timestamp is older than
the processed timestamp. This can happen with certain tests and
scheduling hiccups.

The event processor can be much less restrictive - all we really
care about is that the retired timestamp didn't slip backwards by
accident (highly unlikely). So just check that the last proccessed
timestamp is not equal to the retired timestamp and if the
retired timestamp has already rolled, that the delta is outside
of the 0x8000000 window.

CRs-Fixed: 1009149
Change-Id: Ic0dedbad641bfa3fd6cbc1c91a37fb0e37f72bae
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
8 years agomsm: kgsl: Remove unneeded error message in kgsl_iommu.c
Jordan Crouse [Wed, 11 May 2016 15:37:45 +0000 (09:37 -0600)]
msm: kgsl: Remove unneeded error message in kgsl_iommu.c

iommu_attach_device() should return a log message for every
possible error and we don't need to double up the pain
especially for situations when we run out of available
domains and start getting a storm of ENOSPC errors back.

CRs-Fixed: 1009158
Change-Id: Ic0dedbad7416abb23c769a4d3be9ebd0ca04810c
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
8 years agomsm: kgsl: Do INIT_WORK() just before queueing a deferred mem entry
Jordan Crouse [Wed, 11 May 2016 15:37:44 +0000 (09:37 -0600)]
msm: kgsl: Do INIT_WORK() just before queueing a deferred mem entry

gpuobj_free_on_fence() is used infrequently enough that it doesn't
make sense to do INIT_WORK() when the memory object is created,
especially if debug objects are enabled because INIT_WORK() will go
off and do a bunch of accounting that we don't need.  Do the
INIT_WORK() just before queueing in those rare cases that this
actually happens.

CRs-Fixed: 1009183
Change-Id: Ic0dedbad1015883788e12815806e3249a1e09b21
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
8 years agomsm: kgsl: Remove idle wait in kgsl_iommu_set_pf_policy()
Jordan Crouse [Wed, 11 May 2016 15:37:42 +0000 (09:37 -0600)]
msm: kgsl: Remove idle wait in kgsl_iommu_set_pf_policy()

We don't need to wait for idle before changing the pagefault
policy on the IOMMU which is a good thing because on a busy
system we may never hit idle.

CRs-Fixed: 1009187
Change-Id: Ic0dedbadb8f6122e32a0a34a65c54a7bca2a523c
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
8 years agomsm: kgsl: Allow a draw context to skip snapshot
Jordan Crouse [Wed, 11 May 2016 15:37:41 +0000 (09:37 -0600)]
msm: kgsl: Allow a draw context to skip snapshot

Some test applications intentionally generate a GPU fault for
various reasons. Because a GPU fault generates a snapshot and
snapshots are persistent until they are pulled, running the test
application may take up the snapshot slot and prevent a real fault
from being captured and debugged.

This flag allows the draw context to intentionally avoid generating
a snapshot.

CRs-Fixed: 1009190
Change-Id: Ic0dedbad8476c308a13572d999540b243d97eabc
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
8 years agomsm: kgsl: Program the secvid registers in the soft reset path
Jordan Crouse [Wed, 11 May 2016 15:37:39 +0000 (09:37 -0600)]
msm: kgsl: Program the secvid registers in the soft reset path

The secure buffer registers were not being programmed in the soft
reset path which was causing a failure for the critical packets
workaround and forcing a hard reset.

CRs-Fixed: 1009194
Change-Id: Ic0dedbad998767a1ffdfe265e52fae7baa18d203
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
8 years agomsm: kgsl: Implement fast preemption for 5XX
Jordan Crouse [Wed, 11 May 2016 15:37:38 +0000 (09:37 -0600)]
msm: kgsl: Implement fast preemption for 5XX

Allow 5XX targets to preempt quickly from an atomic context. In
particular this allows quicker transition from a high priority
ringbuffer to a lower one without having to wait for the worker
to schedule.

CRs-Fixed: 1009124
Change-Id: Ic0dedbad01a31a5da2954b097cb6fa937d45ef5c
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
8 years agomsm: kgsl: Preemption cleanups
Jordan Crouse [Tue, 3 May 2016 20:11:07 +0000 (14:11 -0600)]
msm: kgsl: Preemption cleanups

Remove some unused gpudev hooks and further segment the A4XX and
A5XX specific code into their respective areas.  Remove some bits
that are only applicable to 4XX from the 5XX side.

CRs-Fixed: 1009124
Change-Id: Ic0dedbadc324b979583d7a3998195bf15ac537f6
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
8 years agomsm: kgsl: Leave the MMU clocks on with the rest of the GPU
Jordan Crouse [Tue, 3 May 2016 20:11:06 +0000 (14:11 -0600)]
msm: kgsl: Leave the MMU clocks on with the rest of the GPU

It is no longer power efficient to independently enable and disable
the MMU clocks. We can safely enable and disable them with the rest
of the GPU clocks and take back the infrastructure needed to handle
the clocks.

CRs-Fixed: 1009124
Change-Id: Ic0dedbadc48095eada9c5fce6004475a2cb0f0a9
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
8 years agomsm: kgsl: Use the GPU to write the RPTR
Carter Cooper [Tue, 3 May 2016 20:11:04 +0000 (14:11 -0600)]
msm: kgsl: Use the GPU to write the RPTR

The memstore shared between the CPU and GPU is old but can not be
messed with. Rather than stealing values from it where available,
add a new block of shared memory that is exclusive to the driver
and GPU. This block can be used more freely than the old
memstore block.

Program the GPU to write the RPTR out to an address the CPU can read rather
than having the CPU read a GPU register directly. There are some very
small but very real conditions where different blocks on the GPU have
outdated values for the RPTR. When scheduling preemption the value read
from the register could not reflect the actual value of the RPTR in the CP.
This can cause the save/restore from preemption to give back incorrect RPTR
values causing much confusion between the GPU and CPU.

Remove the ringbuffers copy of the read pointer shadow.
Now that the GPU will update a shared memory address with the
value of the read pointer, there is no need to poll the register
to get the value and then keep a local copy of it.

CRs-Fixed: 987082
Change-Id: Ic44759d1a5c6e48b2f0f566ea8c153f01cf68279
Signed-off-by: Carter Cooper <ccooper@codeaurora.org>
Signed-off-by: Jordan Crouse <jcrouse@codeaurora.org>
8 years agomsm: kgsl: Stop fault_timer before reading fault registers
Rajesh Kemisetti [Thu, 14 Apr 2016 10:04:51 +0000 (15:34 +0530)]
msm: kgsl: Stop fault_timer before reading fault registers

Currently adreno_ft_regs_val is getting updated at the time of
first submission or on the expiry of fault_timer.

If the fault_timer expires exactly at the time of inflight becomes 0
and there is an immediate submission for which GPU finishes the work
within short time. Then there is a chance to read the fault registers
in fault_detect_read() and fault_detect_read_compare() with less
time gap and declare it as a fault.

Stop the timer before reading fault registers and start it again.

CRs-Fixed: 1043478
Change-Id: Ib35104adf7b3618f94c6adf7fab531abffea3f76
Signed-off-by: Rajesh Kemisetti <rajeshk@codeaurora.org>
8 years agomsm: camera isp: Control camif interrupts on camif enable/disable
Shubhraprakash Das [Fri, 3 Jun 2016 18:43:58 +0000 (11:43 -0700)]
msm: camera isp: Control camif interrupts on camif enable/disable

Turn off the camif interrupts when camif is disabled and turn them
on when camif is enabled. Also, improve the code to keep track of
interrupts that are enabled by updating them in the function that
sets interrupts instead of doing it in multiple places.

CRs-Fixed: 1037272
Change-Id: I1cc965696c06bd3901d86668aaf597abb3ef2d6d
Signed-off-by: Shubhraprakash Das <sadas@codeaurora.org>
8 years agoMerge "soc: qcom: code cleanup for service-locator"
Linux Build Service Account [Wed, 20 Jul 2016 15:07:33 +0000 (08:07 -0700)]
Merge "soc: qcom: code cleanup for service-locator"

8 years agoMerge "msm: vidc: Increase output port buffer size for VP9 decode"
Linux Build Service Account [Wed, 20 Jul 2016 15:07:32 +0000 (08:07 -0700)]
Merge "msm: vidc: Increase output port buffer size for VP9 decode"

8 years agoMerge "wcnss: Avoid user buffer overloading for write cal data"
Linux Build Service Account [Wed, 20 Jul 2016 15:07:31 +0000 (08:07 -0700)]
Merge "wcnss: Avoid user buffer overloading for write cal data"

8 years agoMerge "ARM: dts: msm: add gpio controller node for msmcobalt"
Linux Build Service Account [Wed, 20 Jul 2016 15:07:30 +0000 (08:07 -0700)]
Merge "ARM: dts: msm: add gpio controller node for msmcobalt"

8 years agoMerge "qcom-charger: smb138x-charger: change power supply type to usb parallel"
Linux Build Service Account [Wed, 20 Jul 2016 15:07:27 +0000 (08:07 -0700)]
Merge "qcom-charger: smb138x-charger: change power supply type to usb parallel"

8 years agoMerge "ARM: dts: msm: update min voltage for pmcobalt s5 and s7"
Linux Build Service Account [Wed, 20 Jul 2016 15:07:26 +0000 (08:07 -0700)]
Merge "ARM: dts: msm: update min voltage for pmcobalt s5 and s7"

8 years agoMerge "ARM: dts: msm: add ion heaps for msmfalcon"
Linux Build Service Account [Wed, 20 Jul 2016 15:07:25 +0000 (08:07 -0700)]
Merge "ARM: dts: msm: add ion heaps for msmfalcon"

8 years agoMerge "ARM: dts: msm: Add initial memory map for msmfalcon"
Linux Build Service Account [Wed, 20 Jul 2016 15:07:25 +0000 (08:07 -0700)]
Merge "ARM: dts: msm: Add initial memory map for msmfalcon"

8 years agoARM: dts: msm: Add ipc-spinlock entry for MSMFALCON
Dhoat Harpal [Fri, 24 Jun 2016 12:55:29 +0000 (18:25 +0530)]
ARM: dts: msm: Add ipc-spinlock entry for MSMFALCON

Add the ipc-spinlock entry to facilitate locking between apps and
non-apps processors.

CRs-Fixed: 1043377
Change-Id: I097e5464ec6ab80c12bcdb5f38d0599fa40da9ee
Signed-off-by: Dhoat Harpal <hdhoat@codeaurora.org>
8 years agomsm: mdss: fix mdss errors on 32-bit compilation
Raviteja Tamatam [Mon, 18 Jul 2016 07:24:23 +0000 (12:54 +0530)]
msm: mdss: fix mdss errors on 32-bit compilation

Changes made to fix mdss compilation errors on
32-bit mode

Change-Id: Ic28f6f36781154ff0c28f4636ade8523d753ab6a
Signed-off-by: Raviteja Tamatam <travitej@codeaurora.org>
8 years agowcnss: Avoid user buffer overloading for write cal data
Anand Kumar [Tue, 21 Jun 2016 12:06:05 +0000 (17:36 +0530)]
wcnss: Avoid user buffer overloading for write cal data

compare size of allocated cal data buffer from heap
and count bytes provided to write by user to avoid
heap overflow for write cal data.

Change-Id: Id70c3230f761385489e5e94c613f4519239dfb1f
CRs-Fixed: 1032174
Signed-off-by: Anand Kumar <anandkumar@codeaurora.org>
8 years agoARM: dts: msm: add gpio controller node for msmcobalt
Yeleswarapu Nagaradhesh [Tue, 21 Jun 2016 22:34:54 +0000 (04:04 +0530)]
ARM: dts: msm: add gpio controller node for msmcobalt

WCD934X audio codec has GPIO controller and hence add
pinctrl node for WCD934X pinctrl driver. Change WSA GPIO's
to codec GPIO's.

CRs-Fixed: 1041199
Change-Id: I0f04c08587f080eb2df7341d41344ce2079de21b
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>
8 years agoASoC: wcd9335: add all child devices of codec
Yeleswarapu Nagaradhesh [Tue, 19 Jul 2016 18:16:34 +0000 (23:46 +0530)]
ASoC: wcd9335: add all child devices of codec

New codec child nodes are added to handle wsa881x
enable pin. Add all the child devices of codec.

CRs-Fixed: 1041199
Change-Id: I889922a0c36ec80ee6ede95b2f19f80791323332
Signed-off-by: Yeleswarapu Nagaradhesh <nagaradh@codeaurora.org>