qtnfmac: add support for QSR1000/QSR2000 (aka Topaz) chipsets
cover qtnfmac: add support for QSR1000/QSR2000 (aka Topaz) chipsets
Hello Kalle and all,
Here is the next update for qtnfmac driver. This patch set adds support for the previous generation of Quantenna wireless cards, namely QSR1000/QSR2000 family of devices.
The summary of changes is as follows:
- the last bits of pcie layer unification work:
-- extract remaining code that can be shared across various PCIe chips -- cleanup/rename: get ready to support another chipset
- add support for QSR1000/QSR2000 devices
- minor cleanups: Kconfig, SPDX, unused register definitions
Regards,
Sergey
Kconfig | 2 qtnfmac/Kconfig | 31 - qtnfmac/Makefile | 11 qtnfmac/pcie/pcie.c | 286 ++++++--- qtnfmac/pcie/pcie_priv.h | 20 qtnfmac/pcie/pearl_pcie.c | 228 ++----- qtnfmac/pcie/pearl_pcie_ipc.h | 22 qtnfmac/pcie/pearl_pcie_regs.h | 245 -------- qtnfmac/pcie/topaz_pcie.c | 1219 +++++++++++++++++++++++++++++++++++++++++ qtnfmac/pcie/topaz_pcie_ipc.h | 94 +++ qtnfmac/pcie/topaz_pcie_regs.h | 45 + qtnfmac/qtn_hw_ids.h | 3 qtnfmac/util.c | 18 qtnfmac/util.h | 2 14 files changed, 1697 insertions(+), 529 deletions(-)
PATCH 1/5 qtnfmac: use 'help' in Kconfig
Fix checkpatch warning: use preferred 'help' option in Kconfig.
--- drivers/net/wireless/quantenna/Kconfig | 2 +- drivers/net/wireless/quantenna/qtnfmac/Kconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/wireless/quantenna/Kconfig +1 -1
@@ -1,7 +1,7 @@ config WLAN_VENDOR_QUANTENNA bool "Quantenna wireless cards support" default y - ---help--- + help If you have a wireless card belonging to this class, say Y. Note that the answer to this question doesn't directly affect the
drivers/net/wireless/quantenna/qtnfmac/Kconfig +1 -1
@@ -11,7 +11,7 @@ config QTNFMAC_PEARL_PCIE select QTNFMAC select FW_LOADER select CRC32 - ---help--- + help This option adds support for wireless adapters based on Quantenna 802.11ac QSR10g (aka Pearl) FullMAC chipset running over PCIe.
Signature · 1 line
2.11.0
PATCH 2/5 qtnfmac: use SPDX identifier for pcie bus layer files
In reply to Sergey MatyukevichChange pcie bus layer licensing information to SPDX format.
--- .../net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c | 17 ++--------------- .../wireless/quantenna/qtnfmac/pcie/pearl_pcie_ipc.h | 17 ++--------------- .../wireless/quantenna/qtnfmac/pcie/pearl_pcie_regs.h | 17 ++--------------- 3 files changed, 6 insertions(+), 45 deletions(-)
drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c +2 -15
@@ -1,18 +1,5 @@ -/* -* Copyright (c) 2015-2016 Quantenna Communications, Inc. -* All rights reserved. -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License -* as published by the Free Software Foundation; either version 2 -* of the License, or (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -*/ +// SPDX-License-Identifier: GPL-2.0+ +/* Copyright (c) 2018 Quantenna Communications */ #include <linux/kernel.h> #include <linux/module.h>
drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie_ipc.h +2 -15
@@ -1,18 +1,5 @@ -/* -* Copyright (c) 2015-2016 Quantenna Communications, Inc. -* All rights reserved. -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License -* as published by the Free Software Foundation; either version 2 -* of the License, or (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -*/ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* Copyright (c) 2015-2016 Quantenna Communications */ #ifndef _QTN_FMAC_PCIE_IPC_H_#define _QTN_FMAC_PCIE_IPC_H_
drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie_regs.h +2 -15
@@ -1,18 +1,5 @@ -/* -* Copyright (c) 2015 Quantenna Communications, Inc. -* All rights reserved. -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License -* as published by the Free Software Foundation; either version 2 -* of the License, or (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -*/ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* Copyright (c) 2015 Quantenna Communications */ #ifndef __PEARL_PCIE_H#define __PEARL_PCIE_H
Signature · 1 line
2.11.0
PATCH 3/5 qtnfmac_pcie: cleanup Pearl platform headers
In reply to Sergey MatyukevichRemove redundant information from Pearl platform headers.
--- .../quantenna/qtnfmac/pcie/pearl_pcie_ipc.h | 5 - .../quantenna/qtnfmac/pcie/pearl_pcie_regs.h | 228 +-------------------- 2 files changed, 3 insertions(+), 230 deletions(-)
drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie_ipc.h +0 -5
@@ -72,11 +72,6 @@#define QTN_EP_LHOST_TQE_PORT 4 -enum qtnf_pcie_bda_ipc_flags { -QTN_PCIE_IPC_FLAG_HBM_MAGIC =BIT (0 ), -QTN_PCIE_IPC_FLAG_SHM_PIO =BIT (1 ), -}; -enum qtnf_fw_loadtype {QTN_FW_DBEGIN ,QTN_FW_DSUB ,
drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie_regs.h +3 -225
252 lines not on this page · raw message
Signature · 1 line
2.11.0
PATCH 4/5 qtnfmac_pcie: use single PCIe driver for all platforms
In reply to Sergey MatyukevichFrom: Igor Mitsyanko <[email protected]>
Single PCIe driver can identify hardware type by reading CHIP ID at probe time and invoking a correct initialization sequence.
--- drivers/net/wireless/quantenna/qtnfmac/Kconfig | 8 +- drivers/net/wireless/quantenna/qtnfmac/Makefile | 10 +- drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c | 281 +++++++++++++++------ .../wireless/quantenna/qtnfmac/pcie/pcie_priv.h | 19 +- .../wireless/quantenna/qtnfmac/pcie/pearl_pcie.c | 211 +++++----------- drivers/net/wireless/quantenna/qtnfmac/util.c | 16 ++ drivers/net/wireless/quantenna/qtnfmac/util.h | 2 + 7 files changed, 298 insertions(+), 249 deletions(-)
drivers/net/wireless/quantenna/qtnfmac/Kconfig +7 -1
@@ -4,6 +4,12 @@ config QTNFMAC default m if QTNFMAC_PEARL_PCIE=m default y if QTNFMAC_PEARL_PCIE=y +config QTNFMAC_PCIE + tristate + depends on QTNFMAC_PEARL_PCIE + default m if QTNFMAC_PEARL_PCIE=m + default y if QTNFMAC_PEARL_PCIE=y + config QTNFMAC_PEARL_PCIE tristate "Quantenna QSR10g PCIe support" default n
@@ -16,4 +22,4 @@ config QTNFMAC_PEARL_PCIE 802.11ac QSR10g (aka Pearl) FullMAC chipset running over PCIe. If you choose to build it as a module, two modules will be built: - qtnfmac.ko and qtnfmac_pearl_pcie.ko. + qtnfmac.ko and qtnfmac_pcie.ko.
drivers/net/wireless/quantenna/qtnfmac/Makefile +5 -5
@@ -19,11 +19,11 @@ qtnfmac-objs += \ # -obj-$(CONFIG_QTNFMAC_PEARL_PCIE) += qtnfmac_pearl_pcie.o +obj-$(CONFIG_QTNFMAC_PCIE) += qtnfmac_pcie.o -qtnfmac_pearl_pcie-objs += \ +qtnfmac_pcie-objs += \ shm_ipc.o \ - pcie/pcie.o \ - pcie/pearl_pcie.o + pcie/pcie.o -qtnfmac_pearl_pcie-$(CONFIG_DEBUG_FS) += debug.o +qtnfmac_pcie-$(CONFIG_DEBUG_FS) += debug.o +qtnfmac_pcie-$(CONFIG_QTNFMAC_PEARL_PCIE) += pcie/pearl_pcie.o
drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c +197 -84
411 lines not on this page · raw message
drivers/net/wireless/quantenna/qtnfmac/pcie/pcie_priv.h +11 -8
@@ -23,9 +23,14 @@struct qtnf_pcie_bus_priv {struct pci_dev *pdev; +int (*probe_cb)(struct qtnf_bus *bus,unsigned int tx_bd_size); +void (*remove_cb)(struct qtnf_bus *bus); +int (*suspend_cb)(struct qtnf_bus *bus); +int (*resume_cb)(struct qtnf_bus *bus); +u64 (*dma_mask_get_cb)(void ); +spinlock_t tx_reclaim_lock;spinlock_t tx_lock; -int mps;struct workqueue_struct *workqueue;struct tasklet_struct reclaim_tq;
@@ -43,6 +48,8 @@ struct qtnf_pcie_bus_priv {struct sk_buff **tx_skb;struct sk_buff **rx_skb; +unsigned int fw_blksize; +u32 rx_bd_w_index;u32 rx_bd_r_index;
@@ -58,21 +65,17 @@ struct qtnf_pcie_bus_priv {u8 msi_enabled;u8 tx_stopped; +bool flashboot; };int qtnf_pcie_control_tx (struct qtnf_bus *bus,struct sk_buff *skb);int qtnf_pcie_alloc_skb_array (struct qtnf_pcie_bus_priv *priv); -void qtnf_pcie_bringup_fw_async (struct qtnf_bus *bus); -void qtnf_pcie_fw_boot_done (struct qtnf_bus *bus,bool boot_success, -const char *drv_name); +void qtnf_pcie_fw_boot_done (struct qtnf_bus *bus,bool boot_success);void qtnf_pcie_init_shm_ipc (struct qtnf_pcie_bus_priv *priv,struct qtnf_shm_ipc_region __iomem *ipc_tx_reg,struct qtnf_shm_ipc_region __iomem *ipc_rx_reg,const struct qtnf_shm_ipc_int *ipc_int); -int qtnf_pcie_probe (struct pci_dev *pdev,size_t priv_size, -const struct qtnf_bus_ops *bus_ops,u64 dma_mask, -bool use_msi); -void qtnf_pcie_remove (struct qtnf_bus *bus,struct qtnf_pcie_bus_priv *priv); +struct qtnf_bus *qtnf_pcie_pearl_alloc (struct pci_dev *pdev);static inline void qtnf_non_posted_write (u32 val,void __iomem *basereg) {
drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c +60 -151
317 lines not on this page · raw message
drivers/net/wireless/quantenna/qtnfmac/util.c +16 -0
@@ -15,6 +15,7 @@*/ #include "util.h" +#include "qtn_hw_ids.h" void qtnf_sta_list_init (struct qtnf_sta_list *list) {
@@ -116,3 +117,18 @@ void qtnf_sta_list_free(struct qtnf_sta_list *list)INIT_LIST_HEAD (&list->head); } + +const char *qtnf_chipid_to_string (unsigned long chip_id) +{ +switch (chip_id) { +case QTN_CHIP_ID_PEARL : +return "Pearl revA" ; +case QTN_CHIP_ID_PEARL_B : +return "Pearl revB" ; +case QTN_CHIP_ID_PEARL_C : +return "Pearl revC" ; +default : +return "unknown" ; + } +} +EXPORT_SYMBOL_GPL (qtnf_chipid_to_string);
drivers/net/wireless/quantenna/qtnfmac/util.h +2 -0
@@ -20,6 +20,8 @@#include <linux/kernel.h> #include "core.h" +const char *qtnf_chipid_to_string (unsigned long chip_id); +void qtnf_sta_list_init (struct qtnf_sta_list *list); struct qtnf_sta_node *qtnf_sta_list_lookup(struct qtnf_sta_list *list,
Signature · 1 line
2.11.0
PATCH 5/5 qtnfmac: add support for Topaz chipsets
In reply to Sergey MatyukevichThis patch adds support for QSR1000/QSR2000 family of chipsets to qtnfmac_pcie platform driver.
QSR1000/QSR2000 (aka Topaz) is a family of 80MHz, 11ac Wave2, 4x4/2x4/2x2 chips, including single and dual band devices. Depending on specific chip model and firmware in use, either STA or both STA and AP modes are supported.
Patch adds Topaz support to qtnfmac_pcie driver. It is possible to enable both Topaz and Pearl support in kernel configuration. In that case proper platform bus will be selected on probing based on chip ID.
--- drivers/net/wireless/quantenna/qtnfmac/Kconfig | 27 +- drivers/net/wireless/quantenna/qtnfmac/Makefile | 1 + drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c | 5 + .../wireless/quantenna/qtnfmac/pcie/pcie_priv.h | 1 + .../wireless/quantenna/qtnfmac/pcie/topaz_pcie.c | 1219 ++++++++++++++++++++ .../quantenna/qtnfmac/pcie/topaz_pcie_ipc.h | 94 ++ .../quantenna/qtnfmac/pcie/topaz_pcie_regs.h | 45 + .../net/wireless/quantenna/qtnfmac/qtn_hw_ids.h | 3 + drivers/net/wireless/quantenna/qtnfmac/util.c | 2 + 9 files changed, 1391 insertions(+), 6 deletions(-) create mode 100644 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c create mode 100644 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie_ipc.h create mode 100644 drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie_regs.h
drivers/net/wireless/quantenna/qtnfmac/Kconfig +21 -6
@@ -1,14 +1,14 @@ config QTNFMAC tristate - depends on QTNFMAC_PEARL_PCIE - default m if QTNFMAC_PEARL_PCIE=m - default y if QTNFMAC_PEARL_PCIE=y + depends on QTNFMAC_PEARL_PCIE || QTNFMAC_TOPAZ_PCIE + default m if QTNFMAC_PEARL_PCIE=m || QTNFMAC_TOPAZ_PCIE=m + default y if QTNFMAC_PEARL_PCIE=y || QTNFMAC_TOPAZ_PCIE=y config QTNFMAC_PCIE tristate - depends on QTNFMAC_PEARL_PCIE - default m if QTNFMAC_PEARL_PCIE=m - default y if QTNFMAC_PEARL_PCIE=y + depends on QTNFMAC_PEARL_PCIE || QTNFMAC_TOPAZ_PCIE + default m if QTNFMAC_PEARL_PCIE=m || QTNFMAC_TOPAZ_PCIE=m + default y if QTNFMAC_PEARL_PCIE=y || QTNFMAC_TOPAZ_PCIE=y config QTNFMAC_PEARL_PCIE tristate "Quantenna QSR10g PCIe support"
@@ -23,3 +23,18 @@ config QTNFMAC_PEARL_PCIE If you choose to build it as a module, two modules will be built: qtnfmac.ko and qtnfmac_pcie.ko. + +config QTNFMAC_TOPAZ_PCIE + tristate "Quantenna QSR1000/QSR2000 PCIe support" + default n + depends on PCI && CFG80211 + select QTNFMAC + select FW_LOADER + select CRC32 + help + This option adds support for wireless adapters based on Quantenna + 802.11ac QSR1000/QSR2000 (aka Topaz) FullMAC chipset + running over PCIe. + + If you choose to build it as a module, two modules will be built: + qtnfmac.ko and qtnfmac_pcie.ko.
drivers/net/wireless/quantenna/qtnfmac/Makefile +1 -0
@@ -27,3 +27,4 @@ qtnfmac_pcie-objs += \ qtnfmac_pcie-$(CONFIG_DEBUG_FS) += debug.o qtnfmac_pcie-$(CONFIG_QTNFMAC_PEARL_PCIE) += pcie/pearl_pcie.o +qtnfmac_pcie-$(CONFIG_QTNFMAC_TOPAZ_PCIE) += pcie/topaz_pcie.o
drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c +5 -0
@@ -332,6 +332,11 @@ static int qtnf_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *id) bus =qtnf_pcie_pearl_alloc (pdev);break ;#endif +#if IS_ENABLED (CONFIG_QTNFMAC_TOPAZ_PCIE ) +case QTN_CHIP_ID_TOPAZ : + bus =qtnf_pcie_topaz_alloc (pdev); +break ; +#endif default :pr_err ("unsupported chip ID 0x%x\n" , chipid);return -ENOTSUPP ;
drivers/net/wireless/quantenna/qtnfmac/pcie/pcie_priv.h +1 -0
@@ -76,6 +76,7 @@ void qtnf_pcie_init_shm_ipc(struct qtnf_pcie_bus_priv *priv,struct qtnf_shm_ipc_region __iomem *ipc_rx_reg, const struct qtnf_shm_ipc_int *ipc_int);struct qtnf_bus *qtnf_pcie_pearl_alloc (struct pci_dev *pdev); +struct qtnf_bus *qtnf_pcie_topaz_alloc (struct pci_dev *pdev);static inline void qtnf_non_posted_write (u32 val,void __iomem *basereg) {
drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie.c new file +1219 -0
1,219 lines not on this page · raw message
drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie_ipc.h new file +94 -0
94 lines not on this page · raw message
drivers/net/wireless/quantenna/qtnfmac/pcie/topaz_pcie_regs.h new file +45 -0
45 lines not on this page · raw message
drivers/net/wireless/quantenna/qtnfmac/qtn_hw_ids.h +3 -0
@@ -24,6 +24,7 @@/* PCIE Device IDs */ #define PCIE_DEVICE_ID_QTN_PEARL (0x0008) +#define PCIE_DEVICE_ID_QTN_TOPAZ (0x0008)#define QTN_REG_SYS_CTRL_CSR 0x14#define QTN_CHIP_ID_MASK 0xF0
@@ -35,6 +36,8 @@/* FW names */ #define QTN_PCI_PEARL_FW_NAME "qtn/fmac_qsr10g.img" +#define QTN_PCI_TOPAZ_FW_NAME "qtn/fmac_qsr1000.img" +#define QTN_PCI_TOPAZ_BOOTLD_NAME "qtn/uboot_qsr1000.img"static inline unsigned int qtnf_chip_id_get (const void __iomem *regs_base) {
drivers/net/wireless/quantenna/qtnfmac/util.c +2 -0
@@ -121,6 +121,8 @@ void qtnf_sta_list_free(struct qtnf_sta_list *list)const char *qtnf_chipid_to_string (unsigned long chip_id) {switch (chip_id) { +case QTN_CHIP_ID_TOPAZ : +return "Topaz" ;case QTN_CHIP_ID_PEARL :return "Pearl revA" ;case QTN_CHIP_ID_PEARL_B :
Signature · 1 line
2.11.0
Re: [PATCH 5/5] qtnfmac: add support for Topaz chipsets
Quoted 16 lines · Sergey Matyukevich
This patch adds support for QSR1000/QSR2000 family of chipsets to
qtnfmac_pcieplatform driver.QSR1000/QSR2000 (aka Topaz) is a family of 80MHz, 11ac Wave2, 4x4/2x4/2x2 chips, including single and dual band devices. Depending on specific chip model and firmware in use, either STA or both STA and AP modes are supported.
Patch adds Topaz support to
qtnfmac_pciedriver. It is possible to enable both Topaz and Pearl support in kernel configuration. In that case proper platform bus will be selected on probing based on chip ID.Signed-off-by Igor Mitsyanko <[email protected]>Signed-off-by Sergey Matyukevich <[email protected]>Signed-off-by Andrey Shevchenko <[email protected]>
[...]
drivers/net/wireless/quantenna/qtnfmac/qtn_hw_ids.h line 27
Quoted 7 lines
drivers/net/wireless/quantenna/qtnfmac/qtn_hw_ids.h +1
-0@@ -24,6 +24,7 @@/* PCIE Device IDs */ #define PCIE_DEVICE_ID_QTN_PEARL (0x0008) +#define PCIE_DEVICE_ID_QTN_TOPAZ (0x0008)
Same ids for both, is this really correct?
Signature · 1 line
Kalle Valo
Re: [PATCH 5/5] qtnfmac: add support for Topaz chipsets
Quoted 24 lines
Quoted 16 lines
This patch adds support for QSR1000/QSR2000 family of chipsets to
qtnfmac_pcieplatform driver.QSR1000/QSR2000 (aka Topaz) is a family of 80MHz, 11ac Wave2, 4x4/2x4/2x2 chips, including single and dual band devices. Depending on specific chip model and firmware in use, either STA or both STA and AP modes are supported.
Patch adds Topaz support to
qtnfmac_pciedriver. It is possible to enable both Topaz and Pearl support in kernel configuration. In that case proper platform bus will be selected on probing based on chip ID.Signed-off-by Igor Mitsyanko <[email protected]>Signed-off-by Sergey Matyukevich <[email protected]>Signed-off-by Andrey Shevchenko <[email protected]>[...]
Quoted 5 lines
drivers/net/wireless/quantenna/qtnfmac/qtn_hw_ids.h +0
-0@@ -24,6 +24,7 @@/* PCIE Device IDs */
Quoted 4 lines
drivers/net/wireless/quantenna/qtnfmac/qtn_hw_ids.h line 27
Quoted 2 lines
drivers/net/wireless/quantenna/qtnfmac/qtn_hw_ids.h +1
-0#define PCIE_DEVICE_ID_QTN_PEARL (0x0008) +#define PCIE_DEVICE_ID_QTN_TOPAZ (0x0008)Same ids for both, is this really correct?
Yes, that is correct. This is one of the reasons why we switched to chip ID for card identification. In fact, it can be configured in firmware, but default PCI ID values are the same for both chipsets.
Regards,
Sergey
Re: [PATCH 5/5] qtnfmac: add support for Topaz chipsets
In reply to Sergey MatyukevichQuoted 16 lines · Sergey Matyukevich
This patch adds support for QSR1000/QSR2000 family of chipsets to
qtnfmac_pcieplatform driver.QSR1000/QSR2000 (aka Topaz) is a family of 80MHz, 11ac Wave2, 4x4/2x4/2x2 chips, including single and dual band devices. Depending on specific chip model and firmware in use, either STA or both STA and AP modes are supported.
Patch adds Topaz support to
qtnfmac_pciedriver. It is possible to enable both Topaz and Pearl support in kernel configuration. In that case proper platform bus will be selected on probing based on chip ID.Signed-off-by Igor Mitsyanko <[email protected]>Signed-off-by Sergey Matyukevich <[email protected]>Signed-off-by Andrey Shevchenko <[email protected]>
[...]
Quoted 4 lines
drivers/net/wireless/quantenna/qtnfmac/Kconfig +4
-0+config QTNFMAC_TOPAZ_PCIE + tristate "Quantenna QSR1000/QSR2000 PCIe support" + default n + depends on PCI && CFG80211
drivers/net/wireless/quantenna/qtnfmac/Kconfig config QTNFMAC_PEARL_PCIE · line 40
Quoted 10 lines
drivers/net/wireless/quantenna/qtnfmac/Kconfig +10
-0+ select QTNFMAC + select FW_LOADER + select CRC32 + help + This option adds support for wireless adapters based on Quantenna + 802.11ac QSR1000/QSR2000 (aka Topaz) FullMAC chipset + running over PCIe. + + If you choose to build it as a module, two modules will be built: + qtnfmac.ko and qtnfmac_pcie.ko.
I'm not really fond of adding a Kconfig option for every supported hardware version unless there are very good reasons (memory savings etc). So is this really needed?
A much better approach would be to have a generic QTNFMAC_PCIE option which can be used to include or exclude all PCI code.
Signature · 1 line
Kalle Valo
Re: [PATCH 1/5] qtnfmac: use 'help' in Kconfig
In reply to Sergey MatyukevichQuoted 3 lines · Sergey Matyukevich
Fix checkpatch warning: use preferred 'help' option in
Kconfig.Signed-off-by Sergey Matyukevich <[email protected]>
3 patches applied to wireless-drivers-next.git, thanks.
db62abe51853 qtnfmac: use 'help' in Kconfig b458a033ca2f qtnfmac: use SPDX identifier for pcie bus layer files 4cb5054957b2 qtnfmac_pcie: cleanup Pearl platform headers
Signature · 3 lines
https://patchwork.kernel.org/patch/10630323/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Re: [PATCH 5/5] qtnfmac: add support for Topaz chipsets
In reply to Kalle ValoQuoted 10 lines
Quoted 10 lines
drivers/net/wireless/quantenna/qtnfmac/Kconfig +10
-0+config QTNFMAC_TOPAZ_PCIE + tristate "Quantenna QSR1000/QSR2000 PCIe support" + default n + depends on PCI && CFG80211 + select QTNFMAC + select FW_LOADER + select CRC32 + help + This option adds support for wireless adapters based on Quantenna + 802.11ac QSR1000/QSR2000 (aka Topaz) FullMAC chipset
Quoted 8 lines
drivers/net/wireless/quantenna/qtnfmac/Kconfig config QTNFMAC_PEARL_PCIE · line 40
Quoted 4 lines
drivers/net/wireless/quantenna/qtnfmac/Kconfig +4
-0+ running over PCIe. + + If you choose to build it as a module, two modules will be built: + qtnfmac.ko and qtnfmac_pcie.ko.I'm not really fond of adding a
Kconfigoption for every supported hardware version unless there are very good reasons (memory savings etc). So is this really needed?
Yes, the idea was to save some memory building pcie backend for the requested chip family only.
Quoted 2 lines
A much better approach would be to have a generic
QTNFMAC_PCIEoption which can be used to include or exclude all PCI code.
Ok, sounds reasonable. Three Kconfig options for the single qtnfmac_pcie module is way too much. We will drop chipset specific Kconfig knobs in v2, keeping single Kconfig option for qtnfmac_pcie backend as a whole.
Thanks,
Sergey
Re: [PATCH 5/5] qtnfmac: add support for Topaz chipsets
Quoted 22 lines · Sergey Matyukevich
Quoted 10 lines
Quoted 10 lines
drivers/net/wireless/quantenna/qtnfmac/Kconfig +10
-0+config QTNFMAC_TOPAZ_PCIE + tristate "Quantenna QSR1000/QSR2000 PCIe support" + default n + depends on PCI && CFG80211 + select QTNFMAC + select FW_LOADER + select CRC32 + help + This option adds support for wireless adapters based on Quantenna + 802.11ac QSR1000/QSR2000 (aka Topaz) FullMAC chipsetQuoted 8 lines
drivers/net/wireless/quantenna/qtnfmac/Kconfig config QTNFMAC_PEARL_PCIE · line 40
Quoted 4 lines
drivers/net/wireless/quantenna/qtnfmac/Kconfig +4
-0+ running over PCIe. + + If you choose to build it as a module, two modules will be built: + qtnfmac.ko and qtnfmac_pcie.ko.I'm not really fond of adding a
Kconfigoption for every supported hardware version unless there are very good reasons (memory savings etc). So is this really needed?Yes, the idea was to save some memory building pcie backend for the requested chip family only.
Quoted 6 lines
Quoted 2 lines
A much better approach would be to have a generic
QTNFMAC_PCIEoption which can be used to include or exclude all PCI code.Ok, sounds reasonable. Three
Kconfigoptions for the singleqtnfmac_pciemodule is way too much. We will drop chipset specificKconfigknobs in v2, keeping singleKconfigoption forqtnfmac_pciebackend as a whole.
Great, thanks.
Signature · 1 line
Kalle Valo