Commit graph

590058 commits

Author SHA1 Message Date
Sujeev Dias
90bf661847 mhi: core: Add support for host triggered device ram dump
Add support for bus master to trigger PCIe device into ram dump
mode to collect device ram dump. RDDM capabilities are extended to
support under kernel panic as well.

CRs-Fixed: 2055981
Change-Id: I18f7d5784992df70aafc6e41d248ced3fac37181
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-06-06 16:15:49 -07:00
Sujeev Dias
220c2f0aed mhi: core: Add support for PCIe linkdown abort
PCIe linkdown event can trigger anytime. During linkdown event
abort any work MHI host doing that require PCIE link.

CRs-Fixed: 2055975
Change-Id: Idba907c7977594dc08575e0020a7afa4868bc0e4
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-06-06 16:15:04 -07:00
Sujeev Dias
22cd52fbe8 mhi: core: Using usleep_range instead of msleep for sleep
msleep is not accurate for small delays.  Use usleep_range
for accuracy.

CRs-Fixed: 1117121
Change-Id: I9a076f843875bd83a21c96d4e4ea0510e82ce352
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-06-03 18:08:44 -07:00
Sujeev Dias
b5a2b57e74 mhi: mhi_uci: Create char dev only after PCIe device ID is known
MHI host may not have PCIe device info during channel
registration. Defer creation of char device until
PCIe bus enumeration is completed.

CRs-Fixed: 2040899
Change-Id: I6372523bd6a758f29dad09d207b86c3f87e2f2cc
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-06-01 18:44:28 -07:00
Sujeev Dias
422f644515 mhi: core: Bind devices with variable PCIe device IDs with same device node
In order to bind devices with variable PCIe device IDs with same device
tree node, make PCIe device ID optional parameter in device tree node.
If PCIe device ID not specified in device tree, any device can be bind
with the node.

CRs-Fixed: 2040899
Change-Id: Iaedcb40db15fa0e8c5c30eb147c904a10cd7569d
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-06-01 11:08:08 -07:00
Sujeev Dias
66551f19b5 mhi: core: Only allow registration if channel is supported by endpoint.
Not all endpoints support all channels supported by MHI host. Only allow
clients to register if requested channel is supported by endpoint.

CRs-Fixed: 2053250
Change-Id: Ib4bd8d21b8f43d693da30b8fafe2cb9d2e128a17
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-05-31 14:07:31 -07:00
Sujeev Dias
6491d72c2a mhi: core: Fix memory leak in MHI DE_INIT
During MHI INIT, memory is allocated for firmware and
rddm vector table. This memory is not freed when DE_INIT
is called.

CRs-Fixed: 2053206
Change-Id: I85b2644189915dd25d8ac31190f16799f86cbd12
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-05-31 14:07:31 -07:00
Sujeev Dias
fb7523d08f mhi: core: Create dummy MHI APIs to fix compile errors
MHI is not supported by all targets, however many MHI client drivers
have a common driver that include MHI APIs. Create dummy APIs such
that even if MHI not present, does not cause any compile errors.

CRs-Fixed: 2053159
Change-Id: I427d925a658518d230a1d14df0cf27a7b19f207e
Signed-off-by: Sujeev Dias <sdias@codeaurora.org>
2017-05-31 14:07:14 -07:00
Linux Build Service Account
a2ab165607 Merge "genirq: Use irq_set_affinity_locked to change irq affinity" 2017-05-26 00:10:43 -07:00
Linux Build Service Account
18c1ad4d51 Merge "mmc: core: retune after un-gating the clocks" 2017-05-26 00:10:42 -07:00
Linux Build Service Account
22412a0523 Merge "icnss: Free regread buffer before allocating new one" 2017-05-26 00:10:41 -07:00
Linux Build Service Account
4fae1bf22a Merge "ARM: dts: msm: Change version bit to match TP 800S used for HDK660/630" 2017-05-26 00:10:40 -07:00
Linux Build Service Account
88d0f2244b Merge "ARM: dts: msm: add proxy voter for QRD SDM660" 2017-05-26 00:10:39 -07:00
Linux Build Service Account
c78cb70a36 Merge "ARM: dts: msm: configure interrupt types for charger for pm660" 2017-05-26 00:10:38 -07:00
Linux Build Service Account
12896a6fc6 Merge "mmc: core: extend SDR104 workaround for other paths" 2017-05-26 00:10:37 -07:00
Linux Build Service Account
f5b9a7e270 Merge "icnss: create debugfs entries when CONFIG_ICNSS_DEBUG is enabled" 2017-05-26 00:10:35 -07:00
Linux Build Service Account
66a27a3a8f Merge "mhi: core: fix potential buffer overflow" 2017-05-26 00:10:34 -07:00
Linux Build Service Account
aa6325414f Merge "usb: pd: policy_engine: Disable vconn first upon disconnect" 2017-05-26 00:10:34 -07:00
Linux Build Service Account
761009ddd7 Merge "defconfig: msmcortex: Enable hardened user copy" 2017-05-26 00:10:33 -07:00
Linux Build Service Account
bd5238c5e7 Merge "cnss: save the cc source to platform driver" 2017-05-26 00:10:30 -07:00
Linux Build Service Account
c5a3a7fe46 Merge "Revert "arm: cpu: read all address cells in dt for cpuid"" 2017-05-26 00:10:29 -07:00
Linux Build Service Account
7d371c9315 Merge "soc: qcom: glink: Add new APIs to toggle RX thread priority" 2017-05-26 00:10:29 -07:00
Linux Build Service Account
5c161901b2 Merge "ASoC: msm: qdsp6v2: set voc type according to stream type" 2017-05-26 00:10:28 -07:00
Linux Build Service Account
cf2d68fe6a Merge "msm: pcie: add IOMMU_DEVICE for MMIO mapping" 2017-05-26 00:10:27 -07:00
Linux Build Service Account
a24cba4428 Merge "drm/msm: add irq mapping for cec in hdmi driver" 2017-05-26 00:09:47 -07:00
Linux Build Service Account
03da53eca2 Merge "msm_11ad: define ops_keep_radio_on_during_sleep as static" 2017-05-26 00:09:47 -07:00
Linux Build Service Account
34672d4fb7 Merge "ARM: dts: msm: add audio support for HDK660/630 boards" 2017-05-26 00:09:46 -07:00
Linux Build Service Account
187608370f Merge "soc: qcom: msm_bus: add rt mutex lock for cllist data" 2017-05-26 00:09:45 -07:00
Linux Build Service Account
7e32d73762 Merge "ARM: dts: msm: Specify SC interrupts for LAB/IBB in pmi8998" 2017-05-26 00:09:43 -07:00
Linux Build Service Account
b56ec29b40 Merge "qpnp: smb2: fix ICL recovery mechanism" 2017-05-26 00:09:37 -07:00
Linux Build Service Account
21dd810c7c Merge "qpnp-smb2: update AICL rerun logic for PM660" 2017-05-26 00:09:36 -07:00
Linux Build Service Account
b7e32b139c Merge "soc: qcom: pil: Use subsys_set_error to indicate firmware errors" 2017-05-26 00:09:35 -07:00
Linux Build Service Account
b4f36ef221 Merge "leds: qpnp-flash-v2: Add support for LPG strobe" 2017-05-26 00:09:34 -07:00
Linux Build Service Account
a5a24462df Merge "ARM: dts: msm: Enable the quat mi2s in slave mode on apq8098 mediabox" 2017-05-26 00:09:33 -07:00
Linux Build Service Account
972dd643bf Merge "ARM: dts: msm: update tuning parameters for QMP PHY for SDM660" 2017-05-26 00:09:32 -07:00
Linux Build Service Account
c5685ec0f3 Merge "msm: kgsl: Return mementry only if pending_free is not set" 2017-05-25 15:52:15 -07:00
Linux Build Service Account
b8b329161d Merge "leds: leds-qpnp: Fix uninitialized variable use" 2017-05-25 15:52:14 -07:00
Linux Build Service Account
06666778bf Merge "btfm: Don't program multi channel registers in wcn3990 for SCO" 2017-05-25 15:52:07 -07:00
Linux Build Service Account
8a1c7fb05a Merge "power: qpnp-fg-gen3: update default empty voltage to 2.85 V" 2017-05-25 15:52:06 -07:00
Linux Build Service Account
93f01bb760 Merge "msm: kgsl: Don't delete uninitialized preemption timer" 2017-05-25 15:52:05 -07:00
Linux Build Service Account
2371551ec1 Merge "msm_11ad: fix device-tree property name" 2017-05-25 15:52:04 -07:00
Linux Build Service Account
f485573f5a Merge "net: rmnet_data: Unset logical end points in bridge mode" 2017-05-25 15:52:04 -07:00
Linux Build Service Account
17f988f036 Merge "soc: qcom: smp2p: Fix simultaneous access of global loopback data" 2017-05-25 15:52:03 -07:00
Linux Build Service Account
20dfa6c9f7 Merge "qcom: common_log: make dump registration as async" 2017-05-25 15:52:02 -07:00
Linux Build Service Account
73f6909d54 Merge "spmi-pmic-arb: add support to dispatch interrupt based on IRQ status" 2017-05-25 15:52:01 -07:00
Linux Build Service Account
e2a2179d4e Merge "spcom: check error from ion_import_dma_buf()" 2017-05-25 15:52:00 -07:00
Linux Build Service Account
09173073cf Merge "spcom: silent error messages until spss link is up" 2017-05-25 15:51:59 -07:00
Linux Build Service Account
97b8c1c0f8 Merge "usb: pdphy: Widen voltage range setting for VDD regulator" 2017-05-25 15:51:58 -07:00
Linux Build Service Account
fafa9a46eb Merge "usb : dwc3: Initialize kernel stack variables properly" 2017-05-25 15:51:57 -07:00
Linux Build Service Account
f95c3de80f Merge "ASoC: msm: qdsp6v2: Add IEC61937 compressed HDMI pass-though" 2017-05-25 15:51:57 -07:00