Commit graph

573660 commits

Author SHA1 Message Date
Linux Build Service Account
cf554e72cc Merge "ARM: dts: msm: Enable droop and fault detection for pmicobalt flash LED" 2016-08-01 21:56:35 -07:00
Linux Build Service Account
25070b2a8d Merge "leds: qpnp-flash-v2: Add support for led_fault_irq" 2016-08-01 21:56:34 -07:00
Linux Build Service Account
b7fb668a44 Merge "ARM: dts: msm: Add support for new flash mode on msmcobalt" 2016-08-01 21:56:33 -07:00
Linux Build Service Account
a0000b903f Merge "msm: camera: Add support for reading new property tag" 2016-08-01 21:56:32 -07:00
Linux Build Service Account
14051dfb5d Merge "smb-lib: introduce votable to disable charging" 2016-08-01 21:56:32 -07:00
Linux Build Service Account
dd6774e357 Merge "msm: kgsl: Add 5usec delay for idle check on A540" 2016-08-01 21:56:31 -07:00
Bingzhe Cai
633e973e5f input: touchpanel: Move Goodix GT915 driver to drivers folder
Goodix GT915 driver was provided by vendor and cherry-picked into
our project, it need to be placed to right location.

Change-Id: Idf191144354426233eca41727a41e26ddbf92f95
Signed-off-by: Bingzhe Cai <bingzhec@codeaurora.org>
Signed-off-by: Pan Fang <fangpan@codeaurora.org>
2016-08-01 21:25:25 -07:00
Shantanu Jain
6527a0f4cb input: it7258_ts_i2c: replace unused variable in driver
Replace an unused variable in the ITE tech touch screen driver.

Change-Id: I49230fb6532ee02f122d5f16dfad8dbd978b368e
Signed-off-by: Shantanu Jain <shjain@codeaurora.org>
2016-08-01 21:16:17 -07:00
Bhalchandra Gajare
ced88d4dfc mfd: wcd934x: Add page 0x50 registers for wcd934x codec
Registers for page 0x50 in the wcd934x audio codec are currently
not defined. These registers control WCD DSP register configuration
and setup. Add these register definitions so that codec driver can
read/write these registers.

CRs-Fixed: 1049012
Change-Id: If1162c09de8d4d7c330a97a1f133f6d46ce2fd74
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2016-08-01 19:45:39 -07:00
Ingrid Gallardo
1fe240c24b msm: mdss: add mdp debug bus for msmcobalt
Add support for mdp debug bus to debug mdp hw
when fatal errors happen in msmcobalt target.

Change-Id: I67bc99d1939ec7176be2e73fdbe6960e677a5cad
Signed-off-by: Ingrid Gallardo <ingridg@codeaurora.org>
2016-08-01 19:21:03 -07:00
Runmin Wang
2f5179d09a soc: qcom: irq_helper: Add irq helper module
This module provides two APIs which are used to control a boolean
sysfs entry deploy. The irq balancer's blacklist in user space will be
controlled by this sysfs entry.

CRs-Fixed: 1013201
Change-Id: Ie6ec7211c64f3c4f53b9f590e5bcf5fa1937d594
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-08-01 17:51:42 -07:00
Runmin Wang
3a2471330e irq-chip: gic-v3: remove print message in irq driver
Remove dmesg about irq redistributor since it fills up
the console with every hotplug of the cpus. The information
about redistributor is already disclosed in the dmesg during
bootup.

CRs-Fixed: 1048941
Change-Id: I5ddb2036ab3df4715382368c144365d578ce4bb8
Signed-off-by: Runmin Wang <runminw@codeaurora.org>
2016-08-01 17:33:10 -07:00
Sudheer Papothi
0d91aa2188 ASoC: wcd9335: Changes to support CPE session using EC PP path
One of the CPE sessions uses EC(Echo cancellation) PP(Ping-Pong)
path on WCD9335 that is connected to CPE (Codec Processing Engine)
hardware. Configure EC PP path for CPE functionality. This
requires WCD9335 codec to be out of digital core power collapse
without turning on MCLK(Master clock).

CRs-fixed: 1022917
Change-Id: I68200b12fcb316bf36f7c3af2734a094f972da9c
Signed-off-by: Sudheer Papothi <spapothi@codeaurora.org>
Signed-off-by: Vidyakumar Athota <vathota@codeaurora.org>
2016-08-01 15:47:58 -07:00
Liam Mark
7debeac5bb arm64: dma-mapping: don't clear dma ops on bypass detach
On iommu attach and detach we should not be changing the dma ops
if the domain is in bypass.

Fix the iommu detach call to not clear the dma ops if the
domain is in bypass.

CRs-Fixed: 1048740
Change-Id: Ie29e7a6a5375e1ec33b000fa09f01aeb7406c8d9
Signed-off-by: Liam Mark <lmark@codeaurora.org>
2016-08-01 14:35:15 -07:00
Sudheer Papothi
0f8a45e521 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>
2016-08-02 02:57:59 +05:30
Mitchel Humpherys
805f58d1f5 Revert "arm64: dma-mapping: Attach IOMMUs as groups"
This reverts commit commit 6a70911936 ("arm64: dma-mapping: Attach
IOMMUs as groups").  PCIe endpoint devices are no longer placed into
groups with the root complex device so we no longer need to attach as
groups in the DMA layer.

CRs-Fixed: 1036401
Change-Id: I953808314ed92e9da1ac15dc5be3d1d223fee188
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
2016-08-01 13:49:20 -07:00
Mitchel Humpherys
f1fa301f97 ARM: dts: msm: Remove bogus stream ID from PCIe IOMMU
There's currently a placeholder stream ID of "1" in the PCIe RC device
tree node.  The PCIe RC doesn't actually attach and doesn't need a
stream ID though, the "1" was put there to get around an error caused by
the fact that #iommu-cells was equal to 1 for the anoc1_smmu, even
though it should have actually been 0.

Fix all this by making #iommu-cells = <0> for the anoc1 SMMU and
removing the bogus placeholder stream ID.

CRs-Fixed: 1036401
Change-Id: I73ff6d6b081b1ee00c8e8ebea42e86160b35aa37
Signed-off-by: Mitchel Humpherys <mitchelh@codeaurora.org>
2016-08-01 13:49:09 -07:00
Mitchel Humpherys
6fbe4a9662 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>
2016-08-01 13:48:50 -07:00
Nicholas Troast
5bd071c647 power_supply: add CHARGER_TEMP and CHARGER_TEMP_MAX properties
CHARGER_TEMP reflects the temperature of the charging chip, and
CHARGER_TEMP_MAX reflects the temperature threshold at which the
hardware will take action to reduce the temperature of the charger.

Change-Id: I9cba8e370c753ac5aa33252fce0ea446f061b4c0
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2016-08-01 10:29:26 -07:00
Ghanim Fodi
ef6aabcb53 msm: ipa: fix multiple static analysis issues
Fix multiple static analysis issues in IPA driver.
Initialize function variables before using them and remove
redundant variables.

CRs-Fixed: 1048706
Change-Id: Iedccc4ab908e1b076efdd4506b686c826eacb73a
Signed-off-by: Ghanim Fodi <gfodi@codeaurora.org>
2016-08-01 19:35:47 +03:00
Siddartha Mohanadoss
29e3c11728 ARM: dts: msm: Remove TSENS QFPROM address and slope data
TSENS (Temperature sensor) driver does not need to map the
QFPROM region to obtain the gain and offset since these are
programmed in the boot initialization to the controller.
This removes the dependency for the application TSENS driver
to map the QFPROM physical region. Hence remove this property
as its optional. Also remove the default slope values that
are used in cases where the application TSENS driver uses it
for calibrationless mode.

Change-Id: Id6893729f5b37a862f3621b8c7897eb767490cd7
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2016-08-01 08:59:40 -07:00
Siddartha Mohanadoss
546c531822 thermal: tsens: Update TSENS property for reading efuse data
TSENS (temperature sensor) controller provides capability
to program the gain and offset for individual sensors so that
the controller reports the temperature. The efuse information
for gain and offset can be read during boot and programmed
at boot initialization and the application TSENS driver
does not need to support reading from the efuse region.
Update the property for reading the tsens efuse as optional
for such cases.

Change-Id: Icd637fcd264565b06bcb90f8e6f7b26c8d112f24
Signed-off-by: Siddartha Mohanadoss <smohanad@codeaurora.org>
2016-08-01 08:59:15 -07:00
Linux Build Service Account
0fdb8c8eae Merge "ASoC: msmcobalt: Fix channel configuration on msmcobalt" 2016-08-01 08:04:24 -07:00
Linux Build Service Account
b046eabba1 Merge "ASoC: msm: Implement HFP tx mute get function" 2016-08-01 08:04:23 -07:00
Linux Build Service Account
491adb8744 Merge "ASoC: msm: qdsp6v2: Add support to set volume in ASM loopback" 2016-08-01 08:04:22 -07:00
Linux Build Service Account
83978dfbc0 Merge "ASoC: msm-cpe-lsm: add support for two CPE sessions" 2016-08-01 08:04:21 -07:00
Linux Build Service Account
09955c92f3 Merge "ASoC: msmcobalt: Add 24 bit packed support" 2016-08-01 08:04:20 -07:00
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
Walter Yang
febf4856e5 ASoC: msm: set pointers to NULL after kfree
In lsm-related driver files, some pointers are not set as NULL
after the memory is freed, which will leave many dangling pointers.
Set them to NULL explicitly to avoid potential risk.

CRs-Fixed: 997059
Change-Id: I44925240705608510266a51225cc02611637c571
Signed-off-by: Walter Yang <yandongy@codeaurora.org>
2016-08-01 10:41:48 +08: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