ath10k: various usb related definitions
authorErik Stromdahl <erik.stromdahl@gmail.com>
Fri, 28 Jul 2017 12:15:37 +0000 (15:15 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 3 Aug 2017 11:30:55 +0000 (14:30 +0300)
Definitions for USB based chipsets

Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.c
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath10k/debug.h

index 8ff47458207c6c336c323e03f489e6c64c23c475..2aa320a223af4001b66cc7d75989d970718998c7 100644 (file)
@@ -1454,6 +1454,7 @@ static void ath10k_core_get_fw_name(struct ath10k *ar, char *fw_name,
 {
        switch (ar->hif.bus) {
        case ATH10K_BUS_SDIO:
+       case ATH10K_BUS_USB:
                scnprintf(fw_name, fw_name_len, "%s-%s-%d.bin",
                          ATH10K_FW_FILE_BASE, ath10k_bus_str(ar->hif.bus),
                          fw_api);
index d74e8980b96e2f4c007c9dff7d11bba67195ca1f..34b713c5e02282952e21ab219944e3abc887a94f 100644 (file)
@@ -92,6 +92,7 @@ enum ath10k_bus {
        ATH10K_BUS_PCI,
        ATH10K_BUS_AHB,
        ATH10K_BUS_SDIO,
+       ATH10K_BUS_USB,
 };
 
 static inline const char *ath10k_bus_str(enum ath10k_bus bus)
@@ -103,6 +104,8 @@ static inline const char *ath10k_bus_str(enum ath10k_bus bus)
                return "ahb";
        case ATH10K_BUS_SDIO:
                return "sdio";
+       case ATH10K_BUS_USB:
+               return "usb";
        }
 
        return "unknown";
index 257d10985c6e21ae5a27d7408666f783576e8235..548ad5483a4a2d3d284d8c84120060f1cacf06f8 100644 (file)
@@ -40,6 +40,8 @@ enum ath10k_debug_mask {
        ATH10K_DBG_AHB          = 0x00008000,
        ATH10K_DBG_SDIO         = 0x00010000,
        ATH10K_DBG_SDIO_DUMP    = 0x00020000,
+       ATH10K_DBG_USB          = 0x00040000,
+       ATH10K_DBG_USB_BULK     = 0x00080000,
        ATH10K_DBG_ANY          = 0xffffffff,
 };