mbox series

[v2,00/24] add mt76x0e hw initialization support

Message ID 20180928064017.26870-1-lorenzo.bianconi@redhat.com (mailing list archive)
Headers show
Series add mt76x0e hw initialization support | expand

Message

Lorenzo Bianconi Sept. 28, 2018, 6:39 a.m. UTC
Add hw initialization support for mt76x0e driver.
Remove usb dependency from generic init code (there is a
usb dependency in tx generic code not fixed yet).
Fix memory leak in mt76x0u_probe

Changes since v1:
- rename mt76x02_wait_for_bbp in mt76x02_wait_for_txrx_active
- drop patch 15/16: mt76x0: init: reset beacon offset during bootstrap
- move mt76x02_dma_enable/mt76x02_dma_disable in mt76x02_mmio.c
- move mt76x02_set_beacon_offsets in mt76x02_util.c
- move mt76x02_mac_start in mt76x02_mmio.c
- merge patch 23/26 (mt76x0: pci: add mt76x0e_start callback)
  and patch 24/26 (mt76x0: pci: add mt76x0e_stop callback)
- move {pci/usb} init code in {pci.c/usb.c}
- load eeprom data from mtd memory dy default
- add "mt76x0: usb: move mt76x0u_tx_prepare_skb in usb.c" to remove
  last usb dependency from generic code

Lorenzo Bianconi (24):
  mt76x0: use mt76_poll in mt76x0_set_wlan_state
  mt76: move wait_for_wpdma in mt76x02_dma.h
  mt76: add mt76x02_dma_enable/mt76x02_dma_disable utility routines
  mt76: move mt76x02_set_irq_mask in mt76x02_mmio.c
  mt76: move queue initialization in mt76x02_mmio.c
  mt76: move mt76x02_beacon_offset in mt76x02_util.c
  mt76: mmio: add implementation of wr_rp and rd_rp
  mt76: move mt76x2_wait_for_bbp in mt76x02-lib module
  mt76x0: update initvals to latest version of vendor driver
  mt76x0: pci: move mcu code in pci_mcu.c
  mt76x0: usb: move mcu code in usb_mcu.c
  mt76x0: use mt76x02 utility routines in mt76x0 init code
  mt76x0: init: remove duplicated initialization
  mt76x0: init: remove MT_PBF_SYS_CTRL configuration in
    mt76x0_reset_csr_bbp
  mt76x0: init rx filter in mt76x0_init_hardware
  mt76: add mt76x02_mac_start routine
  mt76x0: usb: move initialization code in usb.c
  mt76x0: pci: add hw initialization at bootstrap
  mt76x0: phy: set antenna parameter according to wireless band
  mt76: move set_{tx,rx}_path routines in mt76x02-lib module
  mt76x0: add ieee80211_ops ops pointer to mt76x0_alloc_device signature
  mt76x0: pci: add mt76x0e_{start/stop} callbacks
  mt76x0: eeprom: load eeprom data from mtd by default
  mt76x0: usb: move mt76x0u_tx_prepare_skb in usb.c

 drivers/net/wireless/mediatek/mt76/Makefile   |   2 +-
 drivers/net/wireless/mediatek/mt76/mmio.c     |  27 ++
 drivers/net/wireless/mediatek/mt76/mt76.h     |   7 +-
 .../wireless/mediatek/mt76/mt76x0/Makefile    |   4 +-
 .../wireless/mediatek/mt76/mt76x0/eeprom.c    |  58 ++-
 .../net/wireless/mediatek/mt76/mt76x0/init.c  | 191 ++-------
 .../wireless/mediatek/mt76/mt76x0/initvals.h  | 405 ++++++++----------
 .../net/wireless/mediatek/mt76/mt76x0/main.c  |  91 +---
 .../net/wireless/mediatek/mt76/mt76x0/mcu.h   |   2 +
 .../wireless/mediatek/mt76/mt76x0/mt76x0.h    |  28 +-
 .../net/wireless/mediatek/mt76/mt76x0/pci.c   | 178 ++++----
 .../wireless/mediatek/mt76/mt76x0/pci_mcu.c   | 146 +++++++
 .../net/wireless/mediatek/mt76/mt76x0/phy.c   |  62 +--
 .../net/wireless/mediatek/mt76/mt76x0/tx.c    |  24 +-
 .../net/wireless/mediatek/mt76/mt76x0/usb.c   | 297 ++++++-------
 .../wireless/mediatek/mt76/mt76x0/usb_mcu.c   | 176 ++++++++
 .../net/wireless/mediatek/mt76/mt76x02_dma.h  |  17 +
 .../wireless/mediatek/mt76/mt76x02_eeprom.h   |   1 +
 .../net/wireless/mediatek/mt76/mt76x02_mmio.c | 161 +++++++
 .../net/wireless/mediatek/mt76/mt76x02_phy.c  |  38 ++
 .../net/wireless/mediatek/mt76/mt76x02_phy.h  |   2 +
 .../net/wireless/mediatek/mt76/mt76x02_util.c |  38 ++
 .../net/wireless/mediatek/mt76/mt76x02_util.h |  24 ++
 drivers/net/wireless/mediatek/mt76/mt76x2.h   |  39 +-
 .../net/wireless/mediatek/mt76/mt76x2_core.c  |  28 +-
 .../net/wireless/mediatek/mt76/mt76x2_dfs.c   |   7 +-
 .../net/wireless/mediatek/mt76/mt76x2_dma.c   |  91 +---
 .../net/wireless/mediatek/mt76/mt76x2_init.c  |  75 +---
 .../mediatek/mt76/mt76x2_init_common.c        |  17 +-
 .../net/wireless/mediatek/mt76/mt76x2_mac.c   |  14 +-
 .../net/wireless/mediatek/mt76/mt76x2_main.c  |   2 +-
 .../mediatek/mt76/mt76x2_mcu_common.c         |   2 +-
 drivers/net/wireless/mediatek/mt76/mt76x2u.h  |   2 -
 .../net/wireless/mediatek/mt76/mt76x2u_init.c |  16 +-
 .../net/wireless/mediatek/mt76/mt76x2u_mac.c  |   2 +-
 .../net/wireless/mediatek/mt76/mt76x2u_phy.c  |  33 --
 36 files changed, 1226 insertions(+), 1081 deletions(-)
 create mode 100644 drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c
 create mode 100644 drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c
 create mode 100644 drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c