Commit graph

581500 commits

Author SHA1 Message Date
Aravind Venkateswaran
ff59333bdd msm: mdss: dp: fix switching between non-standard resolutions
EDID parser assigns temporary Video Identification Codes (VIC) for
all non-standard resolutions when parsing a sink's EDID. These
VICs can be reused for a subsequent connection for different
resolutions. In the current implementation of the Display Port (DP)
driver, a resolution change is detected whenever a new VIC is used.
However, when switching between two non-standard resolutions spanning
connections to two different sinks, it is possible to have the same
VIC assigned for the two resolutions. This can result in abnormal
behavior. Fix this by resetting the video identification code and panel
information to reset value every time we get an HPD for disconnect.

CRs-Fixed: 1099532
Change-Id: I4bb5a6b4329f67368ebbdc7fe8d92c2ea4605082
Signed-off-by: Aravind Venkateswaran <aravindh@codeaurora.org>
2017-01-17 23:24:21 -08:00
Jack Pham
7fa1e1c956 usb: pd: Increase number of SRC_CAP attempts before starting host
It is observed that some PD-capable sink devices have a
longer start-up delay before responding to the Source
Capabilities message with a Request. Since it is PD capable
we'd like to wait until after entering PE_SRC_Ready and VDM
Discovery to start USB host mode. Accommodate these devices by
increasing the number of failed attempts of sending the message
from 5 to 10 before treating it as a non-PD device and starting
host mode.

Change-Id: Ia555699e78729b75dc118cbb929f7c4c4f2d1279
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-01-17 23:08:58 -08:00
Jack Pham
d1a0cb9fa5 usb: pd: Re-enable SuperSpeed host by default
This reverts commit 85cc38fca2 ("usb: pd: Add support to set the
maximum speed via extcon") which unnecessarily restricted starting
USB host mode to high-speed only. Relax this so that USB host can
start in SuperSpeed when DFP mode is entered.

However, the only exception is if DisplayPort mode is discovered,
we need to drop down to high-speed only due to current hardware
limitations. This is handled during the VDM discovery stage.

Also use this opportunity to refactor all extcon_set_state_() calls
to helper functions that start/stop USB host/peripheral modes.

Change-Id: I2f32f70c57a8a6e2c34c8daf59dea931b445422f
Signed-off-by: Jack Pham <jackp@codeaurora.org>
2017-01-17 23:08:20 -08:00
Jin Fu
68b4a64618 ARM: dts: msm: Set correct voltage for QRD8998HB touch panel
Configure QRD8998HB analog and digital voltage to correct value.

CRs-Fixed: 1112314
Change-Id: I15d26582a87c9613c2ada010912b53e15e383b18
Signed-off-by: Jin Fu <jinf@codeaurora.org>
2017-01-18 13:33:34 +08:00
Subbaraman Narayanamurthy
efc6aa53ca regulator: qpnp-labibb: fix an out of bounds access
Number of elements in ibb_pwrup_dly_table is 4. An out of bounds
access can be made if value read from IBB_PWRUP_PWRDN_CTL_1
register is larger than 3 as the DLY1 value is not shifted.
Fix it.

CRs-Fixed: 1112706
Change-Id: I40783a9c87d1e390a514b84743379c57f488f299
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-01-17 20:42:08 -08:00
Ashay Jaiswal
b4fe7907b0 qcom-charger: smb2: suspend USB path for fake battery or debug board
Add support to identify fake battery/debug board and suspend the USB
input path when this is detected.

CRs-Fixed: 1107245
Change-Id: Icaa936e4e5b3c9381bc92b6664b32547a820b9c3
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2017-01-17 20:40:38 -08:00
Harry Yang
c079a27b73 mfd: qcom-i2c-pmic: Add retry mechanism for slow slave responding
In some devices, qcom-i2c-pmic driver fails probe from the initial
poke failure of attached SEM slave.

As software workaround, this issue can be recovered by retrying to
ensure the unresponsive device is powered.

CRs-Fixed: 1083672
Change-Id: Ie828ba236f42b24a3d2acefdf069445cc72503f1
Signed-off-by: Harry Yang <harryy@codeaurora.org>
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
2017-01-17 20:30:24 -08:00
Ashay Jaiswal
bafe291f17 power_supply: add power supply property to support debug battery
Add power supply property to report debug/fake battery status.

CRs-Fixed: 1107245
Change-Id: I5590a772604986de8eed1c8417411dac62668440
Signed-off-by: Ashay Jaiswal <ashayj@codeaurora.org>
2017-01-17 20:29:29 -08:00
Taniya Das
60fd13b746 clk: qcom: Remove few graphics clock for sdm660
The gcc_gpu_bimc_gfx_src_clk and gcc_gpu_snoc_dvm_gfx_clk need
to left at their default state of ON. Remove controlling them
from the linux clock driver to avoid disabling them during
late_init.

Change-Id: Iefc033998bf87fcc98dfaa1b7321d9cc33dedd5e
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-01-18 08:59:33 +05:30
Taniya Das
95c4b7facf clk: qcom: Move prepare_enable of XO clock before spinlock
clk_prepare would hold a mutex and as clk_debug_mux_measure_rate has
already acquired a spinlock it would result in a BUG from sleeping context.
Avoid this by moving the prepare_enable before acquiring spinlock.

Change-Id: Ia405c884663ef80e87ae066df09f1c30134faf2e
Signed-off-by: Taniya Das <tdas@codeaurora.org>
2017-01-18 08:49:36 +05:30
Ajay Singh Parmar
f03a091017 msm: mdss: dp: fix hpd sysfs node
Fix the return value for hpd sysfs write function
to avoid wrong data to propagate to the caller.

Change-Id: Ic2282496598ecba8511f3a0a826e152451394edb
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2017-01-17 17:48:27 -08:00
Ajay Singh Parmar
70a007e5b3 msm: mdss: edid: fix extension block resolution parsing
Fix the DTD (Detailed Timing Descriptor) parsing for block
1 (CEA extension block) to properly parse the resolution
details.

Change-Id: I5c1e448d5cdaf771c9e35479fe48067092c964e3
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2017-01-17 17:48:15 -08:00
Ajay Singh Parmar
7d6cf4f289 msm: mdss: dp: fix audio stream header
Program the correct number of channels for header byte 3 in
audio stream to avoid issues related to audio channels.

Change-Id: I1de32403efc42d8fde8ac2096ae021e795707aae
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2017-01-17 17:47:52 -08:00
Ajay Singh Parmar
80612605ed msm: mdss: hdcp_1x: fix hdcp off race condition
During authentication, HDCP may poll hardware for status.
HDCP may be turned off by other thread abruptly depending
on the use-case. Do not poll hardware in case HDCP has been
turned off. Also, wait for authenticating thread to finish
in hdcp off thread to avoid any race condition.

Change-Id: If2e4940310035f08d2077def4fa62620bef19942
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2017-01-17 17:45:38 -08:00
Ajay Singh Parmar
ed104f71b6 msm: hdcp: protect encryption enable with a mutex
Enable/disable encryption API can be called by multiple
threads. Protect this API with a mutex to avoid any
possible memory violation due to invalid calls to the API.

Change-Id: I190cdf24880645ac20ec17934d76498d71b2802a
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2017-01-17 17:42:42 -08:00
Ajay Singh Parmar
4eaf19c57a msm: mdss: dp: fix link training sequence
Transmit the link pattern first, update the drive settings
and then update the sink about the pattern and drive settings
using aux channel to avoid possible link training failures
with some sinks.

Change-Id: Ia8eccee99f58da94d3f1013f075c07400bde15f9
Signed-off-by: Ajay Singh Parmar <aparmar@codeaurora.org>
2017-01-17 17:38:07 -08:00
Pavankumar Kondeti
f4f127a9ba tracing: Use SOFTIRQ_OFFSET for softirq dectection for more accurate results
The 's' flag is supposed to indicate that a softirq is running. This
can be detected by testing the preempt_count with SOFTIRQ_OFFSET.

The current code tests the preempt_count with SOFTIRQ_MASK, which
would be true even when softirqs are disabled but not serving a
softirq.

Link: http://lkml.kernel.org/r/1481300417-3564-1-git-send-email-pkondeti@codeaurora.org

Change-Id: I084531ce806e0f7d42a38be0a7ad45977c43d158
Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Git-commit: c59f29cb144a6a0dfac16ede9dc8eafc02dc56ca
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
2017-01-18 07:05:59 +05:30
Linux Build Service Account
d9ac8efbd9 Merge "scsi: ufs: handle auto hibern8 failure" 2017-01-17 17:18:28 -08:00
Linux Build Service Account
4d29daa1dc Merge "ASoC: Audio bringup fixes for SDM660" 2017-01-17 17:18:28 -08:00
Linux Build Service Account
849aea7c1a Merge "wil6210: set dma mask to reflect device capability" 2017-01-17 17:18:27 -08:00
Linux Build Service Account
6a99e4e814 Merge "ARM: dts: msm: Disable IPA in SDA630" 2017-01-17 17:18:26 -08:00
Linux Build Service Account
4f8760a889 Merge "HID: uhid: Remove mutex_unlock while waiting" 2017-01-17 17:18:25 -08:00
Linux Build Service Account
f5e475678f Merge "msm: ipa: Enable 2x fast clock" 2017-01-17 17:18:24 -08:00
Linux Build Service Account
080e5b10dd Merge "ARM: dts: msm: add qpdi support for sdm660" 2017-01-17 17:18:23 -08:00
Linux Build Service Account
062967fbbf Merge "ARM: dts: msm: fix vsync gpio pinctrl functionality for sdm660" 2017-01-17 17:18:22 -08:00
Linux Build Service Account
f8dd8913dd Merge "msm: kgsl: Enable HW clockgating and preemption for SDM660 GPU" 2017-01-17 17:18:22 -08:00
Linux Build Service Account
591986af35 Merge "qcom-charger: smb-lib: fix return of an uninitialized variable" 2017-01-17 17:18:21 -08:00
Linux Build Service Account
9c895b78cb Merge "qcom-charger: qpnp-fg: fix oob array access and uninitialized return" 2017-01-17 17:18:20 -08:00
Linux Build Service Account
bc29516931 Merge "qcom-charger: msm_bcl: fix out of bounds array access" 2017-01-17 17:18:19 -08:00
Linux Build Service Account
fb1df1530f Merge "ARM: dts: msm: Update resource names for CX / MX regulators on PM660L" 2017-01-17 17:18:19 -08:00
Linux Build Service Account
fe34ec3580 Merge "ARM: dts: msm: Add QRD SDM630 EVT2 SKU1 dts file" 2017-01-17 17:18:18 -08:00
Linux Build Service Account
c7b8f824cf Merge "soc: qcom: pil: Fix kernel pointer leak" 2017-01-17 17:18:17 -08:00
Linux Build Service Account
8f796906de Merge "workqueue: fix possible livelock with concurrent mod_delayed_work()" 2017-01-17 17:18:16 -08:00
Linux Build Service Account
caa1907eb3 Merge "msm: isp: Fix duplicate overflow requests" 2017-01-17 17:18:15 -08:00
Linux Build Service Account
181f9f34cb Merge "mac80211: discard multicast and 4-addr A-MSDUs" 2017-01-17 17:18:15 -08:00
Linux Build Service Account
f25c4b8235 Merge "mac80211: allow drivers to report (non-)monitor frames" 2017-01-17 17:18:14 -08:00
Linux Build Service Account
1fceae39e3 Merge "mac80211: expose txq queue depth and size to drivers" 2017-01-17 17:18:13 -08:00
Linux Build Service Account
4c115342fe Merge "msm: camera: jpegdma: Fix incorrect buffer struct size" 2017-01-17 17:18:12 -08:00
Linux Build Service Account
600a4d7f8f Merge "msm: isp: Prevents interrupt storm on ISPIF overflow." 2017-01-17 17:18:11 -08:00
Linux Build Service Account
fb4974cfc6 Merge "soc: qcom: secure_buffer: Fix memory leak" 2017-01-17 17:18:10 -08:00
Prasad Sodagudi
4135f2a1d6 arm64: Disable ARMv8.1, ARMv8.2 architectural features
Some of the ARMv8.1, ARMv8.2 architectural features(ARM64_HW_AFDBM,
ARM64_PAN and ARM64_UAO) are enabled by default. Do not enable
these features by default, so that target specific defconfig
files can enable or disable based on features supported.

Change-Id: I072216927c3475169156a3d51f20d06675630ab9
Signed-off-by: Prasad Sodagudi <psodagud@codeaurora.org>
2017-01-17 14:53:40 -08:00
Subbaraman Narayanamurthy
bb16d850b4 qpnp-fg-gen3: remove support for configuring external sense
External sense configuration is not supported. Hence remove it.

Change-Id: If65eb8c4d9720d4c4e9d913c91c8b33f420f29d1
Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
2017-01-17 14:23:13 -08:00
Sreelakshmi Gownipalli
f7cac3f524 diag: Prevent NULL pointer dereference while closing logging process
Prevent NULL pointer dereference while copying the data to memory device
process by adding mutex protection when closing the process.

Change-Id: Idaad73fb8b2a0bb5a4983d5e255bfdf702cecf71
Signed-off-by: Sreelakshmi Gownipalli <sgownipa@codeaurora.org>
2017-01-17 14:17:52 -08:00
Nicholas Troast
d4b9ff94df power: align qcom drivers with msm-4.9 kernel
The power directory structure has changed in kernel version 4.9. Align
msm-4.4 with this new directory structure.

Change-Id: Iba729f8ef33245ea78cdc05276ba8f5593191509
Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
2017-01-17 12:21:07 -08:00
Nicholas Troast
cbd28f4381 qcom-charger: smb-lib: fix return of an uninitialized variable
rc could be returned without being initialized. Initialize it.

Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Change-Id: I044f74c7853e6853ae41734a95a4d86569c60457
2017-01-17 12:21:06 -08:00
Nicholas Troast
6b20920b2d qcom-charger: qpnp-fg: fix oob array access and uninitialized return
pos is incremented by bytes_read which could exceed the boundary of
kbuf. Fix this by checking the bounds of pos.

resched_ms is used when uninitialized. Initialize it.

Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Change-Id: I3a01d59bb5ed53666307a5210a684c7d9fd654fc
2017-01-17 12:21:05 -08:00
Nicholas Troast
f0ea5d918d qcom-charger: msm_bcl: fix out of bounds array access
param_type is used for array access before the boundary check. Check the
boundary before using param_type.

Signed-off-by: Nicholas Troast <ntroast@codeaurora.org>
Change-Id: I3d1fb4ada3182c533e5b937717962dc513837e78
2017-01-17 12:21:05 -08:00
Banajit Goswami
76771ab5ac mfd: wcd9xxx: send down notification to devices before cleaning-up IRQs
IRQ clean up should be done only after codec devices have been
notified with device down. Without this, there are chances of
race-condition where some of the resources like locks used for
safe handling of the IRQs would be used after those are freed.

CRs-Fixed: 1102353
Change-Id: I276571a7e50fcf227febd86494589b14988e3d41
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2017-01-17 11:40:14 -08:00
Banajit Goswami
efdbbff86b Revert "ASoC: wcd_cpe_core: Perform irq cleanup once the bus is up"
This reverts commit 74041210be67 ("ASoC: wcd_cpe_core: Perform irq
cleanup once the bus is up")

CRs-Fixed: 1102353
Change-Id: I7883615b009051c20e11b95b7fca0ef82225e6f5
Signed-off-by: Banajit Goswami <bgoswami@codeaurora.org>
Signed-off-by: Bhalchandra Gajare <gajare@codeaurora.org>
2017-01-17 11:39:02 -08:00
Rahul Sharma
396b064d4b ASoC: msm: qdsp6v2: allow mic selection for multichannel ec
Allow MIC channel selection as the primary channel requested
by the application on Multichannel Echo Cancellation module.

CRs-fixed: 1102004
Change-Id: I94ba0f3171b4c7ebcc9936ca4f192f68de7be034
Signed-off-by: Rahul Sharma <sharah@codeaurora.org>
Signed-off-by: Derek Chen <chenche@codeaurora.org>
2017-01-17 10:26:18 -08:00