Purpose of the patch series is to extract a portion of PCIe driver sources that is common among Quantenna wifi devices. It will later be used to add support for additional wifi card. As a result, majority of changes here are moving code blocks around and renaming without functional changes + several minor improvements. Changelist V1->V2: PATCH 6: 1. Add SPDX license tag to a new file pcie_priv.h PATCH 7: 1. Fix line over 80 character and opening bracket on a wrong line. PATCH 9: 1. Add SPDX license tag to a new file pcie.c Igor Mitsyanko (11): qtnfmac_pcie: do not store FW name in driver state structure qtnfmac_pcie: move Pearl pcie sources to pcie-specific directory qtnfmac_pcie: rename private Pearl PCIe state structure qtnfmac_pcie: indicate pearl-specific structures by their names qtnfmac_pcie: pearl: rename spinlock tx0_lock to tx_lock qtnfmac_pcie: separate platform-independent PCIe structure qtnfmac_pcie: rename platform-specific functions qtnfmac: add missing header includes to bus.h qtnfmac_pcie: extract platform-independent PCIe code qtnfmac: wait for FW load work to finish at PCIe remove qtnfmac_pcie: check for correct CHIP ID at pcie probe drivers/net/wireless/quantenna/qtnfmac/Makefile | 3 +- drivers/net/wireless/quantenna/qtnfmac/bus.h | 5 +- drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c | 391 +++++ .../wireless/quantenna/qtnfmac/pcie/pcie_priv.h | 85 ++ .../wireless/quantenna/qtnfmac/pcie/pearl_pcie.c | 1262 +++++++++++++++++ .../{pearl/pcie_ipc.h => pcie/pearl_pcie_ipc.h} | 58 - .../pcie_regs_pearl.h => pcie/pearl_pcie_regs.h} | 0 .../net/wireless/quantenna/qtnfmac/pearl/pcie.c | 1494 -------------------- .../quantenna/qtnfmac/pearl/pcie_bus_priv.h | 91 -- .../net/wireless/quantenna/qtnfmac/qtn_hw_ids.h | 14 + 10 files changed, 1757 insertions(+), 1646 deletions(-) create mode 100644 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c create mode 100644 drivers/net/wireless/quantenna/qtnfmac/pcie/pcie_priv.h create mode 100644 drivers/net/wireless/quantenna/qtnfmac/pcie/pearl_pcie.c rename drivers/net/wireless/quantenna/qtnfmac/{pearl/pcie_ipc.h => pcie/pearl_pcie_ipc.h} (68%) rename drivers/net/wireless/quantenna/qtnfmac/{pearl/pcie_regs_pearl.h => pcie/pearl_pcie_regs.h} (100%) delete mode 100644 drivers/net/wireless/quantenna/qtnfmac/pearl/pcie.c delete mode 100644 drivers/net/wireless/quantenna/qtnfmac/pearl/pcie_bus_priv.h -- 2.9.5