Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions drivers/net/wireless/ath/ath11k/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ config ATH11K_AHB
tristate "Atheros ath11k AHB support"
depends on ATH11K
depends on REMOTEPROC
select RPMSG
select QRTR
select QRTR_SMD
help
This module adds support for AHB bus

Expand Down
8 changes: 6 additions & 2 deletions drivers/net/wireless/ath/ath11k/ahb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1268,14 +1268,17 @@ static void ath11k_ahb_remove(struct platform_device *pdev)
{
struct ath11k_base *ab = platform_get_drvdata(pdev);

if (test_bit(ATH11K_FLAG_QMI_FAIL, &ab->dev_flags)) {
ath11k_ahb_remove_prepare(ab);

if (test_bit(ATH11K_FLAG_QMI_FAIL, &ab->dev_flags) ||
!test_bit(ATH11K_FLAG_REGISTERED, &ab->dev_flags)) {
ath11k_ahb_power_down(ab, false);
ath11k_debugfs_soc_destroy(ab);
ath11k_qmi_deinit_service(ab);
ath11k_core_pm_notifier_unregister(ab);
goto qmi_fail;
}

ath11k_ahb_remove_prepare(ab);
ath11k_core_deinit(ab);

qmi_fail:
Expand Down Expand Up @@ -1315,5 +1318,6 @@ static struct platform_driver ath11k_ahb_driver = {

module_platform_driver(ath11k_ahb_driver);

MODULE_SOFTDEP("pre: qrtr_smd");
MODULE_DESCRIPTION("Driver support for Qualcomm Technologies 802.11ax WLAN AHB devices");
MODULE_LICENSE("Dual BSD/GPL");
Loading