Skip to content

Commit

Permalink
ath10k: temp support qca6164
Browse files Browse the repository at this point in the history
  • Loading branch information
vvanpo committed Aug 7, 2015
1 parent 3773712 commit 22f8a40
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
6 changes: 6 additions & 0 deletions drivers/net/wireless/ath/ath10k/core.c
Expand Up @@ -231,6 +231,12 @@ static int ath10k_init_configure_target(struct ath10k *ar)
return ret;
}

ret = ath10k_bmi_write32(ar, hi_hci_uart_pwr_mgmt_params_ext, ar->dev_id);
if (ret) {
ath10k_err(ar, "failed to set pwr_mgmt_params: %d\n", ret);
return ret;
}

return 0;
}

Expand Down
1 change: 1 addition & 0 deletions drivers/net/wireless/ath/ath10k/core.h
Expand Up @@ -554,6 +554,7 @@ struct ath10k {
u8 mac_addr[ETH_ALEN];

enum ath10k_hw_rev hw_rev;
u16 dev_id;
u32 chip_id;
u32 target_version;
u8 fw_version_major;
Expand Down
3 changes: 2 additions & 1 deletion drivers/net/wireless/ath/ath10k/pci.c
Expand Up @@ -58,7 +58,7 @@ MODULE_PARM_DESC(reset_mode, "0: auto, 1: warm only (default: 0)");
#define ATH10K_PCI_NUM_WARM_RESET_ATTEMPTS 3

#define QCA988X_2_0_DEVICE_ID (0x003c)
#define QCA6174_2_1_DEVICE_ID (0x003e)
#define QCA6174_2_1_DEVICE_ID (0x0041)
#define QCA99X0_2_0_DEVICE_ID (0x0040)

static const struct pci_device_id ath10k_pci_id_table[] = {
Expand Down Expand Up @@ -2922,6 +2922,7 @@ static int ath10k_pci_probe(struct pci_dev *pdev,
ar_pci->pdev = pdev;
ar_pci->dev = &pdev->dev;
ar_pci->ar = ar;
ar->dev_id = pci_dev->device;

if (pdev->subsystem_vendor || pdev->subsystem_device)
scnprintf(ar->spec_board_id, sizeof(ar->spec_board_id),
Expand Down

0 comments on commit 22f8a40

Please sign in to comment.