Commit graph

580014 commits

Author SHA1 Message Date
Vijayavardhan Vennapusa
da1cf560c2 USB: dwc3-msm: Disable DBM endpoint in msm_ep_unconfig if no req queued
There is a chance that error might occur in connect_work before
endless request is queued to USB controller and bails out. In this case,
DBM endpoint will not be disabled and results in setendpoint config
command timeouts after next connect and could cause usb endpoint enable
fails. Fix this by disabling DBM endpoint corresponding to USB endpoint
in msm_ep_unconfig() if there are no requests queued to USB endpoint.

Change-Id: I5601d76c58263150a3ad5b026a8f2b10da087ba5
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2016-12-12 15:20:24 +05:30
Vijayavardhan Vennapusa
280fe6dcf1 USB: dwc3-msm: Check endpoint status and request queued or not first
When function driver calls dwc3_msm_ep_queue() to queue endless request,
first check endpoint status and whether any request already queued or not.
If that is the case, return error. Else go ahead with queuing request
to USB HW. This helps in resolving the crash seen when request is being
queued again.

Change-Id: I3d6a603c693d1df36719f57684ffad409e1a0e78
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2016-12-12 15:17:48 +05:30
Vijayavardhan Vennapusa
58c91d96b2 USB: dwc3-msm: Initialize DBM ep before BAM pipe reset
On new platforms, endpoint clock gating is added for dbm endpoints
with Synopsys USB3.0 controller. This hardware feature requires
initialization of DBM endpoint before BAM pipe reset for bam2bam mode
data transfers working. Hence change sequence such that do DBM endpoint
initialization first followed by BAM pipe reset and do start transfer
as last operation.

CRs-Fixed: 965207
Change-Id: Ib5bfd1a7d258fe336a4c9924850fc9223c1c81f6
Signed-off-by: Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Signed-off-by: Chandana Kishori Chiluveru <cchiluve@codeaurora.org>
2016-12-12 15:16:52 +05:30
Anirudh Ghayal
3e66297d1b ARM: dts: msm: Move to RPM based regulators for msmtriton
Move the stub regulator to RPM-control based regulators
for most of the rails. Keep the GFX regulator as a stub
until the MSM GFX LDO node is added.

CRs-Fixed: 1100152
Change-Id: Ib2d83635af352513064a3c8b717541bc47b2f875
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2016-12-12 15:04:54 +05:30
Anirudh Ghayal
60338e0dd4 ARM: dts: msm: Add SPMI and PMIC nodes for msmtriton
SPMI enables communication with PMIC peripherals. Add
the device tree node for it.

While at it, include the supported PMIC configuration.

CRs-Fixed: 1100152
Change-Id: Ib892e3c550e7486d615e9d29e701d2b0c19c45f0
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2016-12-12 15:04:24 +05:30
Amir Samuelov
884d20e96e spcom: cleanup rx-abort flag when channel closed
When the remote subsystem crash (SSR),
glink will notify rx-abort for any pending rx buffer that was queued.
The notification callback sets the channel rx-abort flag.
When the channel is closed, reset the rx-abort flag.

Change-Id: I6cca614327f7b8e3216e3872a36f08f33a65b23e
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
2016-12-12 01:05:54 -08:00
Tirupathi Reddy
23603a7dc4 regulator: cpr3: support LDO handling for different LDO types
An LDO300 regulator is used by the GPU rail on msmfalcon. This LDO
is CPR managed and uses a different configuration/control scheme
compared to Kryo LDO. Add support for this LDO in the CPR3 framework.

CRs-Fixed: 1068294
Change-Id: Ia45152fe211f2ece1028c5cb978beebda86faba3
Signed-off-by: Tirupathi Reddy <tirupath@codeaurora.org>
2016-12-12 13:33:56 +05:30
Abhijit Kulkarni
cbd1c43d5a msm: sde: secure camera changes for v4l2 rotator
Add support for secure camera buffer handling in SDE rotator.
This change adds detaching the secure context when the buffer
with the secure camera flag is signaled and attaches the secure
context when going back to normal non securer-camera usecases.

Change-Id: Iaff45907e78775975fa3035404dcfd9b27e6e816
Signed-off-by: Abhijit Kulkarni <kabhijit@codeaurora.org>
2016-12-11 22:34:01 -08:00
Zhenhua Huang
fd9f279a8a ARM: dts: msm: Add device tree for msmfalcon QRD
Add initial device tree support for QRD platform of
msmfalcon.

Change-Id: Id6787274bf5e1dce8b813835af66874f667144ff
Signed-off-by: Zhenhua Huang <zhenhuah@codeaurora.org>
2016-12-11 22:09:48 -08:00
Manaf Meethalavalappu Pallikunhi
b4b3b9b16a ARM: dts: msm: Configure lmh hardware for msmfalcon
Configure the limits hardware with the interrupt to listen for.
Limits hardware driver will interact with the trustzone to get
throttling information from the hardware.

Change-Id: I295ea05892075c43d389b3b9a20ea4f68daeba3b
Signed-off-by: Manaf Meethalavalappu Pallikunhi <manafm@codeaurora.org>
2016-12-11 21:55:12 -08:00
Asutosh Das
8fb5f84803 ARM: dts: msm: add ufs support to msmfalcon
Add ufs and ufs-phy device nodes for msmfalcon.

Change-Id: I42e796ca7e1883f5c2077660dbcde87cd4b30038
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2016-12-12 11:06:20 +05:30
Asutosh Das
998ec9c188 phy: ufs: add UFS PHY support for msmfalcon
Add support for new UFS PHY that is used in
falcon msm.

This PHY is identical to the final 8996 PHY except it
has been moved to VDDMX and level shifters have been added
between the controller/chip and the PHY.

Change-Id: I50681c877917a58c3d70262597300b0d66b1e3a8
Signed-off-by: Asutosh Das <asutoshd@codeaurora.org>
2016-12-12 11:06:01 +05:30
Amey Telawane
49fc48e4c2 defconfig: enable qdss nodes in msmfalcon
ETM coresight nodes are not present in 32-bit defconfig
file for msmfalcon. Add support to enable ETM in msmfalcon.

CRs-fixed: 1089405
Change-Id: I8259722a890d8388b62294de40cb29a9005f1a3e
Signed-off-by: Amey Telawane <ameyt@codeaurora.org>
2016-12-12 10:42:31 +05:30
Anirudh Ghayal
c988a9870d ARM: dts: msm: Add temp alarm nodes for pm/pm2falcon
The temp_alarm module monitors the PMIC die-temp. Add the
device tree nodes to enable the module.

CRs-Fixed: 1100015
Change-Id: I17c5d04d8492f237d75eaf433a34b3451428d537
Signed-off-by: Anirudh Ghayal <aghayal@codeaurora.org>
2016-12-12 09:47:24 +05:30
Linux Build Service Account
a80e267a8c Merge "ARM: dts: msm: Configure MPM for qusb2phy_dpse_hv for msm8998" 2016-12-10 23:06:39 -08:00
Linux Build Service Account
35640cdd7e Merge "mm: remove gup_flags FOLL_WRITE games from __get_user_pages()" 2016-12-10 23:06:38 -08:00
Linux Build Service Account
b6dff5ca3c Merge "clk: msm: clock-osm: don't use version register to enable WDOG status" 2016-12-10 23:06:38 -08:00
Linux Build Service Account
5332a6cfcb Merge "ARM: dts: msm: enable the watchdog bark interrupt for smb138x" 2016-12-10 23:06:37 -08:00
Linux Build Service Account
6daf3a8c26 Merge "power: bcl: Add frequency mitigation as an optional property for BCL" 2016-12-10 23:06:36 -08:00
Linux Build Service Account
1bb4efc419 Merge "ARM: dts: msm: Add BCL peripheral configs for pmfalcon" 2016-12-10 23:06:36 -08:00
Linux Build Service Account
bd3f1f2aee Merge "ARM: dts: msm: add qdss node support for msmtriton" 2016-12-10 23:06:35 -08:00
Linux Build Service Account
cbd1483f05 Merge "sound: usb: Handle implicit feedback data endpoint properly" 2016-12-10 23:06:34 -08:00
Laxminath Kasam
dc4731a1e6 ASoC: msm: Disable audio SSR for msmfalcon
Crash observed when listen to audio SSR
notifiation during modem up event. Avoid
listen to SSR events as temporary fix.

Change-Id: I754a43a953a311938f4e4103879bff2c2a4551a0
Signed-off-by: Laxminath Kasam <lkasam@codeaurora.org>
2016-12-11 11:39:19 +05:30
Linux Build Service Account
7643874858 Merge "sched: Ensure proper task migration when a CPU is isolated" 2016-12-10 15:43:17 -08:00
Linux Build Service Account
496c2d7a0f Merge "sched/core: Fix race condition in clearing hmp request" 2016-12-10 15:43:16 -08:00
Linux Build Service Account
a3ed87c16c Merge "usb: phy: qusb2: Add support to vote for regulator L2a" 2016-12-09 19:59:45 -08:00
Linux Build Service Account
b922308190 Merge "msm: mdss: dp: correctly ref count the pll resources" 2016-12-09 19:59:41 -08:00
Linux Build Service Account
08a4cbeb4d Merge "msm: vidc: Disable clocks in reverse order" 2016-12-09 19:59:40 -08:00
Linux Build Service Account
b6b2f0da26 Merge "msm: vidc: Fix kw issues" 2016-12-09 19:59:39 -08:00
Linux Build Service Account
2528ee722f Merge "iommu: arm-smmu: Fix clock reference count error" 2016-12-09 19:59:38 -08:00
Linux Build Service Account
a7c2e1aaa5 Merge "ASoC: msm: qdsp6v2: Add mutex in afe_map_cal_data" 2016-12-09 19:59:37 -08:00
Linux Build Service Account
fecbef26fe Merge "ASoC: msm: enable DAP set license logic on 8998" 2016-12-09 19:59:37 -08:00
Linux Build Service Account
1b2ac0c02c Merge "ASoC: soc: add a new dailink for VI recording" 2016-12-09 19:59:35 -08:00
Linux Build Service Account
9d1ac7beeb Merge "ARM: dts: msm: Update camera GPIO, VREG config for msmfalcon interposer" 2016-12-09 19:59:34 -08:00
Linux Build Service Account
6506d50448 Merge "defconfig: msmfalcon: Enable audiosource gadget driver" 2016-12-09 19:59:33 -08:00
Linux Build Service Account
21d0a269e6 Merge "defconfig: msmfalcon: enable the USB video class support" 2016-12-09 19:59:30 -08:00
Linux Build Service Account
4a2acf1a09 Merge "scsi: ufs: fix shutdown race condition" 2016-12-09 19:59:29 -08:00
Linux Build Service Account
b7941c1f70 Merge "ARM: dts: msm: add touch node for QTC800H in msm8998 QRD SKUK" 2016-12-09 19:59:28 -08:00
Linux Build Service Account
55f7c3c5f2 Merge "power_supply: Add BOOST_CURRENT property" 2016-12-09 19:59:28 -08:00
Linux Build Service Account
9ad5708a9e Merge "msm: ipa3: check the rx_door_bell value on disable" 2016-12-09 19:59:27 -08:00
Linux Build Service Account
4bd4e0dac9 Merge "qpnp-fg-gen3: Add support for PMFALCON in Fuel Gauge" 2016-12-09 19:59:26 -08:00
Linux Build Service Account
61c5326381 Merge "ASoC: wcd934x-dsp-cntl: fix the reset sequence" 2016-12-09 19:59:25 -08:00
Linux Build Service Account
2b10339b96 Merge "include: clock: remove ifdef from header file" 2016-12-09 19:59:24 -08:00
Linux Build Service Account
14665e2c1d Merge "ASoC: qdsp6v2: prevent null pointer dereference for _vol_cmds" 2016-12-09 19:59:24 -08:00
Linux Build Service Account
5641db9743 Merge "msm: thermal: Notify LMH DCVSh driver after freq mitigation request" 2016-12-09 19:59:22 -08:00
Linux Build Service Account
fcc7ba5c40 Merge "ARM: dts: msm: Specify coresight trace ID for msm8998" 2016-12-09 19:59:21 -08:00
Linux Build Service Account
cfd61208ea Merge "ARM: dts: msm: Add GPU coresight properties for msm8998" 2016-12-09 19:59:21 -08:00
Linux Build Service Account
6a1ef577f4 Merge "ARM: dts: msm: update wcn3990 node for msm8998 interposer" 2016-12-09 19:59:20 -08:00
Linux Build Service Account
6a3a75cda3 Merge "ARM: dts: msm: Attach device memory to lpass iommu on msmfalcon" 2016-12-09 19:59:19 -08:00
Linux Build Service Account
9c459577c7 Merge "msm: msm_bus: Reverse QoS Clocks Disabling Order" 2016-12-09 19:59:14 -08:00