Skip to content

Commit 657237f

Browse files
committed
Merge tag 'wireless-drivers-2020-07-24' of git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers
Kalle Valo says: ==================== wireless-drivers fixes for v5.8 Second set of fixes for v5.8, and hopefully also the last. Three important regressions fixed. ath9k * fix a regression which broke support for all ath9k usb devices ath10k * fix a regression which broke support for all QCA4019 AHB devices iwlwifi * fix a regression which broke support for some Killer Wireless-AC 1550 cards ==================== Signed-off-by: David S. Miller <[email protected]>
2 parents c2c6331 + 1cfd342 commit 657237f

File tree

4 files changed

+43
-43
lines changed

4 files changed

+43
-43
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ static int ath10k_ahb_probe(struct platform_device *pdev)
820820
ath10k_ahb_release_irq_legacy(ar);
821821

822822
err_free_pipes:
823-
ath10k_pci_free_pipes(ar);
823+
ath10k_pci_release_resource(ar);
824824

825825
err_resource_deinit:
826826
ath10k_ahb_resource_deinit(ar);

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

Lines changed: 37 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -3473,25 +3473,60 @@ int ath10k_pci_setup_resource(struct ath10k *ar)
34733473

34743474
timer_setup(&ar_pci->rx_post_retry, ath10k_pci_rx_replenish_retry, 0);
34753475

3476+
ar_pci->attr = kmemdup(pci_host_ce_config_wlan,
3477+
sizeof(pci_host_ce_config_wlan),
3478+
GFP_KERNEL);
3479+
if (!ar_pci->attr)
3480+
return -ENOMEM;
3481+
3482+
ar_pci->pipe_config = kmemdup(pci_target_ce_config_wlan,
3483+
sizeof(pci_target_ce_config_wlan),
3484+
GFP_KERNEL);
3485+
if (!ar_pci->pipe_config) {
3486+
ret = -ENOMEM;
3487+
goto err_free_attr;
3488+
}
3489+
3490+
ar_pci->serv_to_pipe = kmemdup(pci_target_service_to_ce_map_wlan,
3491+
sizeof(pci_target_service_to_ce_map_wlan),
3492+
GFP_KERNEL);
3493+
if (!ar_pci->serv_to_pipe) {
3494+
ret = -ENOMEM;
3495+
goto err_free_pipe_config;
3496+
}
3497+
34763498
if (QCA_REV_6174(ar) || QCA_REV_9377(ar))
34773499
ath10k_pci_override_ce_config(ar);
34783500

34793501
ret = ath10k_pci_alloc_pipes(ar);
34803502
if (ret) {
34813503
ath10k_err(ar, "failed to allocate copy engine pipes: %d\n",
34823504
ret);
3483-
return ret;
3505+
goto err_free_serv_to_pipe;
34843506
}
34853507

34863508
return 0;
3509+
3510+
err_free_serv_to_pipe:
3511+
kfree(ar_pci->serv_to_pipe);
3512+
err_free_pipe_config:
3513+
kfree(ar_pci->pipe_config);
3514+
err_free_attr:
3515+
kfree(ar_pci->attr);
3516+
return ret;
34873517
}
34883518

34893519
void ath10k_pci_release_resource(struct ath10k *ar)
34903520
{
3521+
struct ath10k_pci *ar_pci = ath10k_pci_priv(ar);
3522+
34913523
ath10k_pci_rx_retry_sync(ar);
34923524
netif_napi_del(&ar->napi);
34933525
ath10k_pci_ce_deinit(ar);
34943526
ath10k_pci_free_pipes(ar);
3527+
kfree(ar_pci->attr);
3528+
kfree(ar_pci->pipe_config);
3529+
kfree(ar_pci->serv_to_pipe);
34953530
}
34963531

34973532
static const struct ath10k_bus_ops ath10k_pci_bus_ops = {
@@ -3601,30 +3636,6 @@ static int ath10k_pci_probe(struct pci_dev *pdev,
36013636

36023637
timer_setup(&ar_pci->ps_timer, ath10k_pci_ps_timer, 0);
36033638

3604-
ar_pci->attr = kmemdup(pci_host_ce_config_wlan,
3605-
sizeof(pci_host_ce_config_wlan),
3606-
GFP_KERNEL);
3607-
if (!ar_pci->attr) {
3608-
ret = -ENOMEM;
3609-
goto err_free;
3610-
}
3611-
3612-
ar_pci->pipe_config = kmemdup(pci_target_ce_config_wlan,
3613-
sizeof(pci_target_ce_config_wlan),
3614-
GFP_KERNEL);
3615-
if (!ar_pci->pipe_config) {
3616-
ret = -ENOMEM;
3617-
goto err_free;
3618-
}
3619-
3620-
ar_pci->serv_to_pipe = kmemdup(pci_target_service_to_ce_map_wlan,
3621-
sizeof(pci_target_service_to_ce_map_wlan),
3622-
GFP_KERNEL);
3623-
if (!ar_pci->serv_to_pipe) {
3624-
ret = -ENOMEM;
3625-
goto err_free;
3626-
}
3627-
36283639
ret = ath10k_pci_setup_resource(ar);
36293640
if (ret) {
36303641
ath10k_err(ar, "failed to setup resource: %d\n", ret);
@@ -3705,10 +3716,9 @@ static int ath10k_pci_probe(struct pci_dev *pdev,
37053716

37063717
err_free_irq:
37073718
ath10k_pci_free_irq(ar);
3708-
ath10k_pci_rx_retry_sync(ar);
37093719

37103720
err_deinit_irq:
3711-
ath10k_pci_deinit_irq(ar);
3721+
ath10k_pci_release_resource(ar);
37123722

37133723
err_sleep:
37143724
ath10k_pci_sleep_sync(ar);
@@ -3720,39 +3730,25 @@ static int ath10k_pci_probe(struct pci_dev *pdev,
37203730
err_core_destroy:
37213731
ath10k_core_destroy(ar);
37223732

3723-
err_free:
3724-
kfree(ar_pci->attr);
3725-
kfree(ar_pci->pipe_config);
3726-
kfree(ar_pci->serv_to_pipe);
3727-
37283733
return ret;
37293734
}
37303735

37313736
static void ath10k_pci_remove(struct pci_dev *pdev)
37323737
{
37333738
struct ath10k *ar = pci_get_drvdata(pdev);
3734-
struct ath10k_pci *ar_pci;
37353739

37363740
ath10k_dbg(ar, ATH10K_DBG_PCI, "pci remove\n");
37373741

37383742
if (!ar)
37393743
return;
37403744

3741-
ar_pci = ath10k_pci_priv(ar);
3742-
3743-
if (!ar_pci)
3744-
return;
3745-
37463745
ath10k_core_unregister(ar);
37473746
ath10k_pci_free_irq(ar);
37483747
ath10k_pci_deinit_irq(ar);
37493748
ath10k_pci_release_resource(ar);
37503749
ath10k_pci_sleep_sync(ar);
37513750
ath10k_pci_release(ar);
37523751
ath10k_core_destroy(ar);
3753-
kfree(ar_pci->attr);
3754-
kfree(ar_pci->pipe_config);
3755-
kfree(ar_pci->serv_to_pipe);
37563752
}
37573753

37583754
MODULE_DEVICE_TABLE(pci, ath10k_pci_id_table);

drivers/net/wireless/ath/ath9k/hif_usb.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,11 +733,13 @@ static void ath9k_hif_usb_reg_in_cb(struct urb *urb)
733733
return;
734734
}
735735

736+
rx_buf->skb = nskb;
737+
736738
usb_fill_int_urb(urb, hif_dev->udev,
737739
usb_rcvintpipe(hif_dev->udev,
738740
USB_REG_IN_PIPE),
739741
nskb->data, MAX_REG_IN_BUF_SIZE,
740-
ath9k_hif_usb_reg_in_cb, nskb, 1);
742+
ath9k_hif_usb_reg_in_cb, rx_buf, 1);
741743
}
742744

743745
resubmit:

drivers/net/wireless/intel/iwlwifi/pcie/drv.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,8 @@ static const struct iwl_dev_info iwl_dev_info_table[] = {
582582
IWL_DEV_INFO(0x30DC, 0x1552, iwl9560_2ac_cfg_soc, iwl9560_killer_1550i_name),
583583
IWL_DEV_INFO(0x31DC, 0x1551, iwl9560_2ac_cfg_soc, iwl9560_killer_1550s_name),
584584
IWL_DEV_INFO(0x31DC, 0x1552, iwl9560_2ac_cfg_soc, iwl9560_killer_1550i_name),
585+
IWL_DEV_INFO(0xA370, 0x1551, iwl9560_2ac_cfg_soc, iwl9560_killer_1550s_name),
586+
IWL_DEV_INFO(0xA370, 0x1552, iwl9560_2ac_cfg_soc, iwl9560_killer_1550i_name),
585587

586588
IWL_DEV_INFO(0x271C, 0x0214, iwl9260_2ac_cfg, iwl9260_1_name),
587589

0 commit comments

Comments
 (0)