Skip to content

Commit 4dddbad

Browse files
author
Kalle Valo
committed
Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
ath.git patches for v6.6. No major changes, only smaller fixes and cleanups this time.
2 parents e8afebb + 4c2964e commit 4dddbad

40 files changed

Lines changed: 195 additions & 268 deletions

drivers/net/wireless/ath/ath10k/ahb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ static int ath10k_ahb_probe(struct platform_device *pdev)
733733
int ret;
734734
struct ath10k_bus_params bus_params = {};
735735

736-
hw_rev = (enum ath10k_hw_rev)of_device_get_match_data(&pdev->dev);
736+
hw_rev = (uintptr_t)of_device_get_match_data(&pdev->dev);
737737
if (!hw_rev) {
738738
dev_err(&pdev->dev, "OF data missing\n");
739739
return -EINVAL;

drivers/net/wireless/ath/ath10k/htt.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ struct htt_ver_req {
6969
* The HTT tx descriptor is defined in two manners: by a struct with
7070
* bitfields, and by a series of [dword offset, bit mask, bit shift]
7171
* definitions.
72-
* The target should use the struct def, for simplicitly and clarity,
72+
* The target should use the struct def, for simplicity and clarity,
7373
* but the host shall use the bit-mast + bit-shift defs, to be endian-
7474
* neutral. Specifically, the host shall use the get/set macros built
7575
* around the mask + shift defs.
@@ -2086,7 +2086,7 @@ static inline bool ath10k_htt_rx_proc_rx_frag_ind(struct ath10k_htt *htt,
20862086
* for correctly accessing rx descriptor data.
20872087
*/
20882088

2089-
/* base struct used for abstracting the rx descritor representation */
2089+
/* base struct used for abstracting the rx descriptor representation */
20902090
struct htt_rx_desc {
20912091
union {
20922092
/* This field is filled on the host using the msdu buffer

drivers/net/wireless/ath/ath10k/pci.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1636,7 +1636,7 @@ static int ath10k_pci_dump_memory_generic(struct ath10k *ar,
16361636
buf,
16371637
current_region->len);
16381638

1639-
/* No individiual memory sections defined so we can
1639+
/* No individual memory sections defined so we can
16401640
* copy the entire memory region.
16411641
*/
16421642
ret = ath10k_pci_diag_read_mem(ar,

drivers/net/wireless/ath/ath10k/sdio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2389,7 +2389,7 @@ static int ath10k_sdio_dump_memory_generic(struct ath10k *ar,
23892389
buf,
23902390
current_region->len);
23912391

2392-
/* No individiual memory sections defined so we can
2392+
/* No individual memory sections defined so we can
23932393
* copy the entire memory region.
23942394
*/
23952395
if (fast_dump)

drivers/net/wireless/ath/ath10k/wmi.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3854,9 +3854,9 @@ enum wmi_pdev_param {
38543854
* retransmitting frames.
38553855
*/
38563856
WMI_PDEV_PARAM_DYNAMIC_BW,
3857-
/* Non aggregrate/ 11g sw retry threshold.0-disable */
3857+
/* Non aggregate/ 11g sw retry threshold.0-disable */
38583858
WMI_PDEV_PARAM_NON_AGG_SW_RETRY_TH,
3859-
/* aggregrate sw retry threshold. 0-disable*/
3859+
/* aggregate sw retry threshold. 0-disable*/
38603860
WMI_PDEV_PARAM_AGG_SW_RETRY_TH,
38613861
/* Station kickout threshold (non of consecutive failures).0-disable */
38623862
WMI_PDEV_PARAM_STA_KICKOUT_TH,
@@ -3953,9 +3953,9 @@ enum wmi_10x_pdev_param {
39533953
WMI_10X_PDEV_PARAM_PROTECTION_MODE,
39543954
/* Dynamic bandwidth 0: disable 1: enable */
39553955
WMI_10X_PDEV_PARAM_DYNAMIC_BW,
3956-
/* Non aggregrate/ 11g sw retry threshold.0-disable */
3956+
/* Non aggregate/ 11g sw retry threshold.0-disable */
39573957
WMI_10X_PDEV_PARAM_NON_AGG_SW_RETRY_TH,
3958-
/* aggregrate sw retry threshold. 0-disable*/
3958+
/* aggregate sw retry threshold. 0-disable*/
39593959
WMI_10X_PDEV_PARAM_AGG_SW_RETRY_TH,
39603960
/* Station kickout threshold (non of consecutive failures).0-disable */
39613961
WMI_10X_PDEV_PARAM_STA_KICKOUT_TH,

drivers/net/wireless/ath/ath11k/ahb.c

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ static int ath11k_ahb_probe(struct platform_device *pdev)
10961096
return -EINVAL;
10971097
}
10981098

1099-
hw_rev = (enum ath11k_hw_rev)of_id->data;
1099+
hw_rev = (uintptr_t)of_id->data;
11001100

11011101
switch (hw_rev) {
11021102
case ATH11K_HW_IPQ8074:
@@ -1306,17 +1306,7 @@ static struct platform_driver ath11k_ahb_driver = {
13061306
.shutdown = ath11k_ahb_shutdown,
13071307
};
13081308

1309-
static int ath11k_ahb_init(void)
1310-
{
1311-
return platform_driver_register(&ath11k_ahb_driver);
1312-
}
1313-
module_init(ath11k_ahb_init);
1314-
1315-
static void ath11k_ahb_exit(void)
1316-
{
1317-
platform_driver_unregister(&ath11k_ahb_driver);
1318-
}
1319-
module_exit(ath11k_ahb_exit);
1309+
module_platform_driver(ath11k_ahb_driver);
13201310

13211311
MODULE_DESCRIPTION("Driver support for Qualcomm Technologies 802.11ax WLAN AHB devices");
13221312
MODULE_LICENSE("Dual BSD/GPL");

drivers/net/wireless/ath/ath11k/ce.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,6 @@ int ath11k_ce_alloc_pipes(struct ath11k_base *ab);
203203
void ath11k_ce_free_pipes(struct ath11k_base *ab);
204204
int ath11k_ce_get_attr_flags(struct ath11k_base *ab, int ce_id);
205205
void ath11k_ce_poll_send_completed(struct ath11k_base *ab, u8 pipe_id);
206-
int ath11k_ce_map_service_to_pipe(struct ath11k_base *ab, u16 service_id,
207-
u8 *ul_pipe, u8 *dl_pipe);
208-
int ath11k_ce_attr_attach(struct ath11k_base *ab);
209206
void ath11k_ce_get_shadow_config(struct ath11k_base *ab,
210207
u32 **shadow_cfg, u32 *shadow_cfg_len);
211208
void ath11k_ce_stop_shadow_timers(struct ath11k_base *ab);

drivers/net/wireless/ath/ath11k/dp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -635,7 +635,7 @@ enum htt_ppdu_stats_tag_type {
635635
* b'24 - status_swap: 1 is to swap status TLV
636636
* b'25 - pkt_swap: 1 is to swap packet TLV
637637
* b'26:31 - rsvd1: reserved for future use
638-
* dword1 - b'0:16 - ring_buffer_size: size of bufferes referenced by rx ring,
638+
* dword1 - b'0:16 - ring_buffer_size: size of buffers referenced by rx ring,
639639
* in byte units.
640640
* Valid only for HW_TO_SW_RING and SW_TO_HW_RING
641641
* - b'16:31 - rsvd2: Reserved for future use

drivers/net/wireless/ath/ath11k/dp_rx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3423,7 +3423,7 @@ static int ath11k_dp_rx_h_defrag_reo_reinject(struct ath11k *ar, struct dp_rx_ti
34233423
ath11k_hal_rx_buf_addr_info_set(msdu0, paddr, cookie,
34243424
ab->hw_params.hal_params->rx_buf_rbm);
34253425

3426-
/* Fill mpdu details into reo entrace ring */
3426+
/* Fill mpdu details into reo entrance ring */
34273427
srng = &ab->hal.srng_list[ab->dp.reo_reinject_ring.ring_id];
34283428

34293429
spin_lock_bh(&srng->lock);

drivers/net/wireless/ath/ath11k/dp_tx.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ int ath11k_dp_tx(struct ath11k *ar, struct ath11k_vif *arvif,
238238
spin_unlock_bh(&tcl_ring->lock);
239239
ret = -ENOMEM;
240240

241-
/* Checking for available tcl descritors in another ring in
241+
/* Checking for available tcl descriptors in another ring in
242242
* case of failure due to full tcl ring now, is better than
243243
* checking this ring earlier for each pkt tx.
244244
* Restart ring selection if some rings are not checked yet.
@@ -344,7 +344,7 @@ ath11k_dp_tx_htt_tx_complete_buf(struct ath11k_base *ab,
344344
dma_unmap_single(ab->dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE);
345345

346346
if (!skb_cb->vif) {
347-
dev_kfree_skb_any(msdu);
347+
ieee80211_free_txskb(ar->hw, msdu);
348348
return;
349349
}
350350

@@ -369,7 +369,7 @@ ath11k_dp_tx_htt_tx_complete_buf(struct ath11k_base *ab,
369369
"dp_tx: failed to find the peer with peer_id %d\n",
370370
ts->peer_id);
371371
spin_unlock_bh(&ab->base_lock);
372-
dev_kfree_skb_any(msdu);
372+
ieee80211_free_txskb(ar->hw, msdu);
373373
return;
374374
}
375375
spin_unlock_bh(&ab->base_lock);
@@ -566,12 +566,12 @@ static void ath11k_dp_tx_complete_msdu(struct ath11k *ar,
566566
dma_unmap_single(ab->dev, skb_cb->paddr, msdu->len, DMA_TO_DEVICE);
567567

568568
if (unlikely(!rcu_access_pointer(ab->pdevs_active[ar->pdev_idx]))) {
569-
dev_kfree_skb_any(msdu);
569+
ieee80211_free_txskb(ar->hw, msdu);
570570
return;
571571
}
572572

573573
if (unlikely(!skb_cb->vif)) {
574-
dev_kfree_skb_any(msdu);
574+
ieee80211_free_txskb(ar->hw, msdu);
575575
return;
576576
}
577577

@@ -624,7 +624,7 @@ static void ath11k_dp_tx_complete_msdu(struct ath11k *ar,
624624
"dp_tx: failed to find the peer with peer_id %d\n",
625625
ts->peer_id);
626626
spin_unlock_bh(&ab->base_lock);
627-
dev_kfree_skb_any(msdu);
627+
ieee80211_free_txskb(ar->hw, msdu);
628628
return;
629629
}
630630
arsta = (struct ath11k_sta *)peer->sta->drv_priv;

0 commit comments

Comments
 (0)