summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/cnss2 (follow)
Commit message (Collapse)AuthorAge
* Merge "cnss2: Add cold cal support to QCN7605 Ver 2.0 devices"Linux Build Service Account2019-11-25
|\
| * cnss2: Add cold cal support to QCN7605 Ver 2.0 devicesRajasekaran Kalidoss2019-10-30
| | | | | | | | | | | | | | | | | | Added macro for QCN7605 2.0 USB devices to enable fs_ready. This enables cold boot calibration trigger for QCN7605 2.0 USB devices. Change-Id: Icbaa6867f87d9057050531c78a7aa868395330b3 Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
* | cnss2: Fix for WL_EN toggling failureJayachandran Sreekumaran2019-11-13
|/ | | | | | | | | | Regulator_enable API is getting called twice for wl_en. But for wlan driver unload, regulator_disable gets called only once. Hence SoC reset is not happening during the wlan driver unload. Removed the second regulator_enable call in wlan driver load path. Change-Id: Ic84a04a5ea01ddf81f27fcaa1579611655ccdd05 Signed-off-by: Jayachandran Sreekumaran <jsreekum@codeaurora.org>
* cnss2: Expose PCIe window register lock related APIsYue Ma2019-10-22
| | | | | | | | | The register window needs to be configed properly before accessing any larger than 4K range PCIe registers. Expose the lock to WLAN driver to avoid race condition when both drivers try to config it. Change-Id: I94ccd963d4fd0a9715330d2e5733346ccd993ae1 Signed-off-by: Yue Ma <yuem@codeaurora.org>
* Merge "cnss2: Add support for genoa sdio"Linux Build Service Account2019-10-14
|\
| * cnss2: Add support for genoa sdioJayachandran Sreekumaran2019-10-14
| | | | | | | | | | | | | | Add support for genoa sdio Change-Id: Icf004d954ca0b508830412da6a381a7844f66efe Signed-off-by: Jayachandran Sreekumaran <jsreekum@codeaurora.org>
* | cnss2: support wakeup using gpioRajasekaran Kalidoss2019-09-15
| | | | | | | | | | | | | | | | | | | | To support remote wakeup of MSM8996, a GPIO needs to be configured as a wakeup interrupt source. WLAN firmware can toggle this pin to wakeup the Host when wireless wakeup is triggered. Change-Id: Id13652f262f37649bb35196f21ae1ff90b7a637a Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
* | cnss2: Expose QMI send related APIsYue Ma2019-09-11
|/ | | | | | | | | | Interface change to expose QMI send related APIs for WLAN driver. This patch is to provide API interface to ease compilation issues among various branches of kernel and WLAN driver. The actual implementation will be in a separate patch. Change-Id: I691eedd37a9f855191a3944c2ffd6acfbe65f9ba Signed-off-by: Yue Ma <yuem@codeaurora.org>
* Merge "cnss2: update device id in cnss_usb_dev_powerup"Linux Build Service Account2019-07-24
|\
| * cnss2: update device id in cnss_usb_dev_powerupRajasekaran Kalidoss2019-07-22
| | | | | | | | | | | | | | | | Add device id's of qcn7605 ver20 USB devices to cnss_usb_dev_powerup function. Change-Id: I2dd173b609a778fb3699b54e032e2183efd925b5 Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
* | cnss2: initialize the structures before using themYu Wang2019-07-22
|/ | | | | | | | | | Some structures are used uninitialized, which may result in unexpected behavior. Initialize these structures before using them. CRs-Fixed: 2494231 Change-Id: I89c7c8ec9defe1db14b9c8cdc3632f5d0051e626 Signed-off-by: Yu Wang <yyuwang@codeaurora.org>
* Merge "cnss2: Update board data file name format"Linux Build Service Account2019-07-01
|\
| * cnss2: Update board data file name formatNirav Shah2019-06-07
| | | | | | | | | | | | | | | | | | | | | | | | If board ID is larger than 0xFF (e.g. 0xABCD), the proper BDF file name format should be updated to bdwlanAB.bCD or bdwlanAB.eCD based on corresponding BDF types. Add snapshot of data file name format change from msm-4.14 commit 48129d773e327f7131116bb8bb8d7b91cc235e90. Change-Id: Ib076d16d2faeb5ee1e9006e215a9ed4d279c35e9 Signed-off-by: Nirav Shah <nnshah@codeaurora.org>
* | cnss2: print firmware cap info in statsRajasekaran Kalidoss2019-06-24
| | | | | | | | | | | | | | | | | | Show firmware capability information i.e Chip ID Chip family, SOC Info, Board id,Firmware Version, and Firmware Build Timestamp in /d/cnss/stats. Change-Id: I1d2f2e4a88960e690aabe610182d33cf8035f6c1 Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
* | cnss2: Return failure if bus type do not matchNirav Shah2019-05-29
|/ | | | | | | | Return failure in bus register if bus_type do not match between cnss and wlan driver. Change-Id: I9c322e4f6eca3220f1de18a6031715381ba495d7 Signed-off-by: Nirav Shah <nnshah@codeaurora.org>
* cnss2: Expose idle restart/shutdown APIsYue Ma2019-05-03
| | | | | | | | | | Interface change to expose idle restart/shutdown APIs for WLAN driver. This patch is to provide API interface to ease compilation issues among various branches of kernel and WLAN driver. The actual implementation will be in a separate patch. Change-Id: I7f4a0079c32875c362d36c9f794d55609f924198 Signed-off-by: Yue Ma <yuem@codeaurora.org>
* cnss2: Expose PCIe DRV connection statusYue Ma2019-04-29
| | | | | | | | Interface change to expose PCIe DRV connection status to WLAN driver so that it is able to suspend/resume based on the status. Change-Id: If8f706b0eb38f209a5e322b112beb9a95babdcad Signed-off-by: Yue Ma <yuem@codeaurora.org>
* cnss2: Remove setting recovery state during driver unloadJayachandran Sreekumaran2019-04-16
| | | | | | | Remove setting the recovery state in wlan driver unload path. Change-Id: Ib59c8d406fe67f14b7893884f23d323e87e2490f Signed-off-by: Jayachandran Sreekumaran <jsreekum@codeaurora.org>
* cnss2: Support USB SSR and disconnect scenariosRajasekaran Kalidoss2019-04-09
| | | | | | | | | | | | | | For USB devices, irrecoverable scenarios in firmware can lead to USB bus disconnect. In USB disconnect, the interface and dev structures passed by USB sub system are freed and are no longer valid. The current implementation is PCIe specific and assumes dev struct being present and valid always. The clean way to handle this for HL(USB/SDIO) is to call pld_usb_remove in disconnect and pld_usb_probe in re-connect after a recovery Change-Id: I3fc9a5a2fc7bb53439b0410e61f381aa94e18634 Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
* cnss2: Export a platform API to force collect ramdumpGuisen Yang2019-04-08
| | | | | | | | | Add an API to force collect ramdump in platform driver. This API will be called from WLAN driver to collect ramdump before calling kernel panic. CRs-Fixed: 2351811 Change-Id: Ic88769beec4f7f8303fc2c0803012789e02c9f4f Signed-off-by: Guisen Yang <guiseny@codeaurora.org>
* Merge "cnss2: Initialize plat_priv during bus_init"Linux Build Service Account2019-03-26
|\
| * cnss2: Initialize plat_priv during bus_initJayachandran Sreekumaran2019-03-26
| | | | | | | | | | | | | | | | | | | | | | cnss_usb_data structure member plat_priv remains uninitialized till the function invoke of cnss_usb_probe. This leads to the access of uninitialized pointer plat_priv if CLD gets loaded prior to firmware download completion. Hence initialize the plat_priv in cnss_usb_data structure during cnss_usb_init. Change-Id: Ic471eacf22b112aaffe61458e22c7a9102470467 Signed-off-by: Jayachandran Sreekumaran <jsreekum@codeaurora.org>
* | cnss2: Add QCN7605 USB for cold boot cal via fs_readyRajasekaran Kalidoss2019-03-25
|/ | | | | | | | | For triggering cold boot via fs_ready, the device ID and bus type of QCN7605 USB was added in fs_ready and cold boot cal start and done handlers. Change-Id: I28801207c7833af18a09819cd9ab07ede556ac87 Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
* cnss2: Add support for QCN7605 ver 2 usb device supportRajasekaran Kalidoss2019-03-14
| | | | | | | | | New PID has been introduced for Version 2.0 of QCN7605 USB composite device. PID should be updated in cnss2 driver to support this device. Change-Id: I12b944b15021f317b24a34b0801a4d600133eee3 Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
* cnss2: power up & power down during reg and unregRajasekaran Kalidoss2019-03-13
| | | | | | | | In insmod and rmmod handling, cnss2 should power up and power down WLAN as part of register and unregister. Change-Id: I5c588e7db0748363ffbfec9ee4ec26ebdb85e3aa Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
* Merge "cnss2: Disable PCIe bus master bit before save config space"Linux Build Service Account2019-02-18
|\
| * cnss2: Disable PCIe bus master bit before save config spaceNirav Shah2019-02-13
| | | | | | | | | | | | | | | | | | | | | | | | There may be a issue if save PCIe config space with bus master enabled. During resume, since the bit will be restored first, device will think master is ready and then trigger MSI for some events, but actually MSI config has not been restored yet which will mask the MSI. To avoid this, clear the bus master bit before save config space and the bit will be enabled at a later time. Change-Id: I75b993dda602ab94da37e108f07dd0f996e1a071 Signed-off-by: Nirav Shah <nnshah@codeaurora.org>
* | Merge "cnss2: Provide sysfs control for vdd-wlan-en"Linux Build Service Account2019-02-12
|\ \
| * | cnss2: Provide sysfs control for vdd-wlan-enRajasekaran Kalidoss2019-02-12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For qcn7605 USB, firmware download and error recovery are handled by entities in userspace. cnss needs to provide access vdd-wlan-en to the kickstart userspace via sysfs Change-Id: I53da7f2f7ebb2ec55f98fc328a550181dccb5a18 Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
* | | Merge "cnss2: Add support for bdf filename with bin prefix"Linux Build Service Account2019-02-12
|\ \ \ | |_|/ |/| |
| * | cnss2: Add support for bdf filename with bin prefixJayachandran Sreekumaran2019-02-11
| | | | | | | | | | | | | | | | | | | | | | | | Add support for bdf filename with the prefix suitable for binary format. Change-Id: I24cc19b24ab084a754ba28eb8b2fa459189990d9 Signed-off-by: Jayachandran Sreekumaran <jsreekum@codeaurora.org>
* | | cnss2: Implement cold boot cal upload/download via QMIRajasekaran Kalidoss2019-02-07
|/ / | | | | | | | | | | | | | | | | | | In QCN7605, HL(USB and SDIO) transports are supported. Cold boot calibration data upload and download is handled in kernel space itself. New logic was decided for upload and download. This logic is implemented in cnss2. Change-Id: I19fcd643a2fc656e98b5375de16229cc3217dd45 Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
* | cnss2: Return 0 from susped/resume for driver_ops nullRajasekaran Kalidoss2019-01-19
| | | | | | | | | | | | | | | | | | During usb suspend/resume call from USB SS, if driver ops is not present cnss should return success. presently it is returning -EINVAL if driver_ops is NULL. Change-Id: I43a268489107bdad1945b4a842bb9ab3abe1b4ea Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
* | cnss2: USB:skip ce config for USB transportRajasekaran Kalidoss2019-01-15
| | | | | | | | | | | | | | | | | | For USB transport, ce config request should not be sent. In cnss_wlan_enable, skip ce config if bus type is USB. Change-Id: Icf7c2a7c01c4b93a0856442f8a78d733a9858183 Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
* | cnss2: Add QCN7605 device ID for elf ramdumpRajasekaran Kalidoss2019-01-10
| | | | | | | | | | | | | | | | | | | | For QCN7605 device ID, the collected dump segments are not dumped to /dev/ramdump_QCN7605. Device ID of QCN7605 needs to be added to the ramdump path. Change-Id: Ib3931f13f99f9c219f4a0e64b5bc92fb2f0b3902 Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
* | Merge "cnss2: Add cnss usb API to check the target status"Linux Build Service Account2019-01-09
|\ \
| * | cnss2: Add cnss usb API to check the target statusJayachandran Sreekumaran2019-01-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add new cnss usb API to check to check whether the target is up or down. Remove invoking pld_remove callback function in usb disconnect. Change-Id: I0e873737a27f9941db1dae54636ef55ba4d05288 Signed-off-by: Jayachandran Sreekumaran <jsreekum@codeaurora.org>
* | | Merge "cnss2: Add cal duration in host capability request"Linux Build Service Account2019-01-08
|\ \ \ | |/ / |/| |
| * | cnss2: Add cal duration in host capability requestRajasekaran Kalidoss2019-01-08
| |/ | | | | | | | | | | | | | | Add cal duration in host capability request as host needs to support best effort cold calibration. Change-Id: I2bb162da4db2c72efb7866b665cff2cb5a4863a5 Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
* / cnss2: Add support for bin format bdf fileJayachandran Sreekumaran2019-01-08
|/ | | | | | | As genoa supports bdf file only in bin format, add support for the same. Change-Id: I55db0480a259379c4ee2dac76f587d3fdf497090 Signed-off-by: Jayachandran Sreekumaran <jsreekum@codeaurora.org>
* Merge "cnss2: Handle USB disconnect scenario"Linux Build Service Account2018-11-17
|\
| * cnss2: Handle USB disconnect scenarioRajasekaran Kalidoss2018-11-16
| | | | | | | | | | | | | | | | | | Clean up cnss during a USB disconnect scenario and call driver_ops remove if wlan driver is registered with CNSS. Change-Id: I72e6e42609724c9c5e0e07f381d2455d2631cc22 Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
* | cnss2: cnss_bus_get_wake_irq should return intRajasekaran Kalidoss2018-11-13
|/ | | | | | | | | For error conditions,this api returns negative value. currently the return type is unsigned int, this should be changed to integer type. Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org> Change-Id: Ifaeea4d76f5d2c2e8f0f67eab97df50dae09462c
* cnss2: call remove driver_ops in cnss_wlan_unregisterRajasekaran Kalidoss2018-10-30
| | | | | | | | | rmmod of wlan triggers cnss_wlan_unregister. wlan driver_ops remove should be called for QCN7605 standalone and composite devices to finish the rmmod path. Change-Id: I0047eb65b68b7e81b9b9c9fd79825a0d3f27c640 Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
* Merge "cnss2: Update QMI files with cold cal data changes"Linux Build Service Account2018-10-22
|\
| * cnss2: Update QMI files with cold cal data changesRajasekaran Kalidoss2018-10-19
| | | | | | | | | | | | | | | | | | QCN7605 supports cold boot cal data upload/download over QMI for HL transports. QMI structures are updated to support this. Change-Id: Ic91f856ced8d30ab31cb305396ec476c6ca55f40 Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
* | cnss2: Update WLAN composite USB I/F number for QCN7605Rajasekaran Kalidoss2018-10-18
|/ | | | | | | | | For QCN7605 composite usb ,the WLAN interface number is 2. update this number to register CNSS as driver for WLAN I/F. Change-Id: I8dd97d18bf57e4268f194f846ad7c2e7b77afe50 Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
* cnss2: Add support for USB transportRajasekaran Kalidoss2018-10-16
| | | | | | | | | Changes in state machine and boot flow to support usb bus based behaviour. Handler functions added to support USB boot flow. Change-Id: I51c4751c8d8669a8b54ae692ae3ec1bb32d1e7be Signed-off-by: Rajasekaran Kalidoss <rkalidos@codeaurora.org>
* Merge "cnss2: Add QMI updates for Genoa PCIe"Linux Build Service Account2018-10-11
|\
| * cnss2: Add QMI updates for Genoa PCIeJayachandran Sreekumaran2018-10-09
| | | | | | | | | | | | | | | | Add qmi updates to pass the msi config for copy engine and host memory information for CE to update the read index. Change-Id: I8861659e54cfb25ae64a23a3f02f1e0fce6d372d Signed-off-by: Jayachandran Sreekumaran <jsreekum@codeaurora.org>