Skip to content

Commit 5813912

Browse files
committed
Merge: wifi: ath12k: fix unbind operation
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/78 JIRA: https://issues.redhat.com/browse/RHEL-70414 ath12k driver to handle new WiFi 7 devices by Qualcomm was already enabled. This MR includes the necessary fixes to able to unbind and use the workaround to allow working from VMs (https://gitlab.com/jtornosm/jtornosm_tools). Final development for that is being long and could require firmware support. Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com> Approved-by: Desnes Nunes <desnesn@redhat.com> Approved-by: Michal Schmidt <mschmidt@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Jan Stancek <jstancek@redhat.com>
2 parents ef65726 + d017eb2 commit 5813912

File tree

1 file changed

+4
-1
lines changed
  • drivers/net/wireless/ath/ath12k

1 file changed

+4
-1
lines changed

drivers/net/wireless/ath/ath12k/dp.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1247,6 +1247,7 @@ static void ath12k_dp_cc_cleanup(struct ath12k_base *ab)
12471247
}
12481248

12491249
kfree(dp->spt_info);
1250+
dp->spt_info = NULL;
12501251
}
12511252

12521253
static void ath12k_dp_reoq_lut_cleanup(struct ath12k_base *ab)
@@ -1282,8 +1283,10 @@ void ath12k_dp_free(struct ath12k_base *ab)
12821283

12831284
ath12k_dp_rx_reo_cmd_list_cleanup(ab);
12841285

1285-
for (i = 0; i < ab->hw_params->max_tx_ring; i++)
1286+
for (i = 0; i < ab->hw_params->max_tx_ring; i++) {
12861287
kfree(dp->tx_ring[i].tx_status);
1288+
dp->tx_ring[i].tx_status = NULL;
1289+
}
12871290

12881291
ath12k_dp_rx_free(ab);
12891292
/* Deinit any SOC level resource */

0 commit comments

Comments
 (0)