Commit graph

9 commits

Author SHA1 Message Date
Yue Ma
ee4241b768 cnss2: Add API to check if WLAN PCIe device is down
API provision for WLAN host driver to check if WLAN PCIe device
is down.

Change-Id: I91efcd781af67c72b787c89e6b619c4cc49da34b
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2018-09-13 11:04:22 -07:00
Jayachandran Sreekumaran
54f161d263 cnss2: cnss api update for genoa pcie
cnss api update for genoa pcie to pass the memory information for
read index update.

Change-Id: Ic6a96bef1dfacdc78bc127cc2570e148e9cd4baf
CRs-fixed: 2272072
Signed-off-by: Jayachandran Sreekumaran <jsreekum@codeaurora.org>
2018-08-06 13:25:37 +05:30
Frank Liu
26eff67153 cnss2: Add support for PCIe WLAN IPA uc SMMU feature
To add support for PCIe WLAN IPA uc SMMU feature, prvoide related
platform api for wlan driver to get the smmu map handle and do the
mapping.

Change-Id: I672b1a48879ada65b3ddb3f16c4bd787dc1b70a6
Signed-off-by: Frank Liu <qiliu@codeaurora.org>
2018-08-01 03:21:40 -07:00
Yue Ma
bde7c6fb4d cnss2: Support collecting firmware dump during driver load
When firmware crashes during WLAN host driver loads, collects
firmware dump and proceeds with SSR as normal cases.

Change-Id: If2ac7da3c2db4b4116949d092ad53299f23c87e0
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2018-03-27 17:04:25 -07:00
Ferry Zhou
eceef732d8 cnss2: msm: Enable WLAN over PCIe for GVM
The hypervisor does not support PCI_MSM, and uses PCI_HOST_GENERIC
instead.  After this change, the cnss2/PCIe for WLAN in metal case
depends on PCI_MSM, while in GVM case depends on PCI_HOST_GENERIC.

Currently, the WLAN chip is powered up by hypervisor.  So, just
bypass power related code.

Change-Id: Icf13fb11c5e18f6e48746fe82f1b4392559dd5b0
Signed-off-by: Ferry Zhou <tianguiz@codeaurora.org>
2018-03-26 16:44:09 +08:00
Yue Ma
c10f99af82 cnss2: Add device pointer to all external APIs
Add device pointer to all external APIs so that platform driver is
able to support multiple devices/instances at the same time.

Change-Id: I09dfb146da30d3fd6514dc79dc31cd239a03afa8
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2017-11-03 10:28:20 -07:00
Yue Ma
f76f50c672 cnss2: Remove deprecated API
cnss_set_driver_status() is no longer needed by WLAN host driver.
Hence remove it from platform driver.

Change-Id: I31a3174bdded924a9279a40ece05a835277e4626
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2017-11-03 10:27:53 -07:00
Yuanyuan Liu
c12400a4de cnss2: Remove utils
Remove utils as this module is no longer needed by
CNSS2 platform driver. CNSS2 has already switched to
WLAN common utility module in net/wireless/cnss_utils.

Change-Id: I891d3261f7e654dab1136ee1661d15e19fe1d2f5
Signed-off-by: Yuanyuan Liu <yuanliu@codeaurora.org>
2017-08-15 16:57:54 -07:00
Yue Ma
5fc7e6650d net: cnss2: Add snapshot of CNSS2 driver
This is a snapshot of the CNSS2 driver and associated files as
of msm-3.18 commit c1bbe6d5e136 ("cnss2: Fix kernel checkpatch
issues").

Change-Id: Ia77d3abe3f86e4dbeac8d55ea2e0120bed480126
CRs-fixed: 2071634
Signed-off-by: Yue Ma <yuem@codeaurora.org>
2017-07-07 09:41:12 -07:00