wifi: mm81x: add mm81x driver
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v3 Latest33 patches 5 repliesIn review
- v231 patches 18 repliesSuperseded
- v135 patches 19 repliesSuperseded
Changes in v3 from the cover letter · 24 lines
- In INIT_CMD_HDR don't init members to 0
- Remove the if (!cmd_q) and subsequent comment as this will never be false with YAPS
- Clamp firmware retcode if outside errno range to prevent erroneous ERR_PTR usage when passing ret code up the stack
- Remove some LE force wrappers
- convert beacon work from tasklet (deprecated) to work item running on system_bh_wq
- mm81x_yaps_hw_status_registers -> mm81x_yaps_status_regs
- Introduce mm81x_yaps_hw_status_regs which is the fw representation of the status registers for DMA target (i.e in little endian)
- Remove macro typedefs over default Elf types
- Introduce mm81x_elf32_ehdr and friends as implementation-specific types to parse fw and bcf
- Use read_poll_timeout for waiting for host table pointer rather then open coding
- Use put_unaligned_le16 for reading the mac address from OTP
- Use tabs for the CHANS1G macro, also enclose chan_flags in braces to prevent checkpatch error
- remove some basic sta member variable wrappers and just call directly
- Remove sta_rc_update entirely, this cannot be reached in S1G
- Free mcast_filter to fix memory leak
- Rename mac2leuint32 to mac2le32 also add a comment
- use block_len and byte_len respectively for unaligned reads in sdio
- Propagate error in sdio_reg32_read
- Fix leaks and cleanups in usb probe
- Fix off by one in pkt->tc_queue check
- Remove some rc.{c/h} code that is unused
- Removed use_1mhz_probes scan param since we unconditionally set it to true, as a result unconditionally set HOST_CMD_HW_SCAN_FLAGS_1MHZ_PROBES
- Implement flush with drop == false
- Move some macros / helper functions into stack that are generic
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/33 | wifi: cfg80211: introduce helper to get S1G primary widthinclude/ | +20 | 0 replies | |
| 2/33 | wifi: ieee80211: introduce generic KHZ_TO_HZ helperinclude/ | +1 | 0 replies | |
| 3/33 | wifi: mm81x: add bus.hdrivers/ | +99 | 0 replies | |
| 4/33 | wifi: mm81x: add command.cdrivers/ | +563 | 0 replies | |
| 5/33 | wifi: mm81x: add command_defs.hdrivers/ | +1658 | 0 replies | |
| 6/33 | wifi: mm81x: add command.hdrivers/ | +85 | 0 replies | |
| 7/33 | wifi: mm81x: add core.cdrivers/ | +142 | 0 replies | |
| 8/33 | wifi: mm81x: add core.hdrivers/ | +464 | 0 replies | |
| 9/33 | wifi: mm81x: add fw.cdrivers/ | +732 | 0 replies | |
| 10/33 | wifi: mm81x: add fw.hdrivers/ | +141 | 0 replies | |
| 11/33 | wifi: mm81x: add hif.hdrivers/ | +117 | 0 replies | |
| 12/33 | wifi: mm81x: add hw.cdrivers/ | +367 | 0 replies | |
| 13/33 | wifi: mm81x: add hw.hdrivers/ | +176 | 0 replies | |
| 14/33 | wifi: mm81x: add mac.cdrivers/ | +2443 | 0 replies | |
| 15/33 | wifi: mm81x: add mac.hdrivers/ | +63 | 0 replies | |
| 16/33 | wifi: mm81x: add mmrc.cdrivers/ | +1354 | 0 replies | |
| 17/33 | wifi: mm81x: add mmrc.hdrivers/ | +193 | 0 replies | |
| 18/33 | wifi: mm81x: add ps.cdrivers/ | +120 | 0 replies | |
| 19/33 | wifi: mm81x: add ps.hdrivers/ | +22 | 0 replies | |
| 20/33 | wifi: mm81x: add rate_code.hdrivers/ | +177 | 0 replies | |
| 21/33 | wifi: mm81x: add rc.cdrivers/ | +494 | 0 replies | |
| 22/33 | wifi: mm81x: add rc.hdrivers/ | +51 | 0 replies | |
| 23/33 | mmc: sdio: add Morse Micro vendor idsinclude/ | +3 | 1 reply | |
| 24/33 | wifi: mm81x: add sdio.cdrivers/ | +613 | 0 replies | |
| 25/33 | wifi: mm81x: add skbq.cdrivers/ | +1065 | 0 replies | |
| 26/33 | wifi: mm81x: add skbq.hdrivers/ | +218 | 0 replies | |
| 27/33 | wifi: mm81x: add usb.cdrivers/ | +943 | 0 replies | |
| 28/33 | wifi: mm81x: add yaps.cdrivers/ | +704 | 0 replies | |
| 29/33 | wifi: mm81x: add yaps.hdrivers/ | +77 | 0 replies | |
| 30/33 | wifi: mm81x: add yaps_hw.cdrivers/ | +702 | 0 replies | |
| 31/33 | wifi: mm81x: add yaps_hw.hdrivers/ | +52 | 0 replies | |
| 32/33 | wifi: mm81x: add Kconfig and Makefiledrivers/ drivers/ drivers/ +3 more | +64 | 0 replies | |
| 33/33 | wifi: mm81x: add MAINTAINERS entryMAINTAINERS | +8 | 0 replies |
Reviews trailers per patch
1 of 33 patches has a Reviewed-by or Acked-by.
| Patch | Ulf Hansson |
|---|---|
| 1/33 | |
| 2/33 | |
| 3/33 | |
| 4/33 | |
| 5/33 | |
| 6/33 | |
| 7/33 | |
| 8/33 | |
| 9/33 | |
| 10/33 | |
| 11/33 | |
| 12/33 | |
| 13/33 | |
| 14/33 | |
| 15/33 | |
| 16/33 | |
| 17/33 | |
| 18/33 | |
| 19/33 | |
| 20/33 | |
| 21/33 | |
| 22/33 | |
| 23/33 | A-b |
| 24/33 | |
| 25/33 | |
| 26/33 | |
| 27/33 | |
| 28/33 | |
| 29/33 | |
| 30/33 | |
| 31/33 | |
| 32/33 | |
| 33/33 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH wireless-next v3 00/33] wifi: mm81x: add mm81x driver
This series adds the first Wi-Fi HaLow driver to support the Morse Micro mm81x chip family via USB and SDIO.
S1G support in the kernel is only new, and as a result this driver has been scoped to be simple and only support station and AP interface. The Wi-Fi specific features only cover the minimum required for basic use such as powersave, aggregation, rate control and so on. The driver will be extended into the future as S1G support for operations such as ACS, channel switching and so on are added into the wireless stack.
The driver contains two checkpatch CHECKs for a static rate array and a line length of 81 using the same ignore list as the wireless checkpatch NIPA bot with the exception of OPEN_ENDED_LINE which has been excluded.
The driver has been build tested on a long list of architectures and compilers via Intels LKP.
The driver currently supports IEEE80211-2024 US channels only, with AU 2020 also available. In order for this to be expanded additional non-trivial kernel work is required which will begin once the driver is upstream.
Changes since v2:
- In INIT_CMD_HDR don't init members to 0
- Remove the if (!cmd_q) and subsequent comment as this will never be false with YAPS
- Clamp firmware retcode if outside errno range to prevent erroneous ERR_PTR usage when passing ret code up the stack
- Remove some LE force wrappers
- convert beacon work from tasklet (deprecated) to work item running on system_bh_wq
- mm81x_yaps_hw_status_registers -> mm81x_yaps_status_regs
- Introduce mm81x_yaps_hw_status_regs which is the fw representation of the status registers for DMA target (i.e in little endian)
- Remove macro typedefs over default Elf types
- Introduce mm81x_elf32_ehdr and friends as implementation-specific types to parse fw and bcf
- Use read_poll_timeout for waiting for host table pointer rather then open coding
- Use put_unaligned_le16 for reading the mac address from OTP
- Use tabs for the CHANS1G macro, also enclose chan_flags in braces to prevent checkpatch error
- remove some basic sta member variable wrappers and just call directly
- Remove sta_rc_update entirely, this cannot be reached in S1G
- Free mcast_filter to fix memory leak
- Rename mac2leuint32 to mac2le32 also add a comment
- use block_len and byte_len respectively for unaligned reads in sdio
- Propagate error in sdio_reg32_read
- Fix leaks and cleanups in usb probe
- Fix off by one in pkt->tc_queue check
- Remove some rc.{c/h} code that is unused
- Removed use_1mhz_probes scan param since we unconditionally set it to true, as a result unconditionally set HOST_CMD_HW_SCAN_FLAGS_1MHZ_PROBES
- Implement flush with drop == false
- Move some macros / helper functions into stack that are generic
v1: https://lore.kernel.org/linux-wireless/[email protected]/
v2: https://lore.kernel.org/linux-wireless/[email protected]/
The driver has had many authors who are listed below in alphabetical order:
Lachlan Hodges (33):
wifi: cfg80211: introduce helper to get S1G primary width
wifi: ieee80211: introduce generic KHZ_TO_HZ helper
wifi: mm81x: add bus.h
wifi: mm81x: add command.c
wifi: mm81x: add command_defs.h
wifi: mm81x: add command.h
wifi: mm81x: add core.c
wifi: mm81x: add core.h
wifi: mm81x: add fw.c
wifi: mm81x: add fw.h
wifi: mm81x: add hif.h
wifi: mm81x: add hw.c
wifi: mm81x: add hw.h
wifi: mm81x: add mac.c
wifi: mm81x: add mac.h
wifi: mm81x: add mmrc.c
wifi: mm81x: add mmrc.h
wifi: mm81x: add ps.c
wifi: mm81x: add ps.h
wifi: mm81x: add rate_code.h
wifi: mm81x: add rc.c
wifi: mm81x: add rc.h
mmc: sdio: add Morse Micro vendor ids
wifi: mm81x: add sdio.c
wifi: mm81x: add skbq.c
wifi: mm81x: add skbq.h
wifi: mm81x: add usb.c
wifi: mm81x: add yaps.c
wifi: mm81x: add yaps.h
wifi: mm81x: add yaps_hw.c
wifi: mm81x: add yaps_hw.h
wifi: mm81x: add Kconfig and Makefile
wifi: mm81x: add MAINTAINERS entry
MAINTAINERS | 8 + drivers/net/wireless/Kconfig | 1 + drivers/net/wireless/Makefile | 1 + drivers/net/wireless/morsemicro/Kconfig | 15 + drivers/net/wireless/morsemicro/Makefile | 2 + drivers/net/wireless/morsemicro/mm81x/Kconfig | 24 + .../net/wireless/morsemicro/mm81x/Makefile | 21 + drivers/net/wireless/morsemicro/mm81x/bus.h | 99 + .../net/wireless/morsemicro/mm81x/command.c | 563 ++++ .../net/wireless/morsemicro/mm81x/command.h | 85 + .../wireless/morsemicro/mm81x/command_defs.h | 1658 +++++++++++ drivers/net/wireless/morsemicro/mm81x/core.c | 142 + drivers/net/wireless/morsemicro/mm81x/core.h | 464 ++++ drivers/net/wireless/morsemicro/mm81x/fw.c | 732 +++++ drivers/net/wireless/morsemicro/mm81x/fw.h | 141 + drivers/net/wireless/morsemicro/mm81x/hif.h | 117 + drivers/net/wireless/morsemicro/mm81x/hw.c | 367 +++ drivers/net/wireless/morsemicro/mm81x/hw.h | 176 ++ drivers/net/wireless/morsemicro/mm81x/mac.c | 2443 +++++++++++++++++ drivers/net/wireless/morsemicro/mm81x/mac.h | 63 + drivers/net/wireless/morsemicro/mm81x/mmrc.c | 1354 +++++++++ drivers/net/wireless/morsemicro/mm81x/mmrc.h | 193 ++ drivers/net/wireless/morsemicro/mm81x/ps.c | 120 + drivers/net/wireless/morsemicro/mm81x/ps.h | 22 + .../net/wireless/morsemicro/mm81x/rate_code.h | 177 ++ drivers/net/wireless/morsemicro/mm81x/rc.c | 494 ++++ drivers/net/wireless/morsemicro/mm81x/rc.h | 51 + drivers/net/wireless/morsemicro/mm81x/sdio.c | 613 +++++ drivers/net/wireless/morsemicro/mm81x/skbq.c | 1065 +++++++ drivers/net/wireless/morsemicro/mm81x/skbq.h | 218 ++ drivers/net/wireless/morsemicro/mm81x/usb.c | 943 +++++++ drivers/net/wireless/morsemicro/mm81x/yaps.c | 704 +++++ drivers/net/wireless/morsemicro/mm81x/yaps.h | 77 + .../net/wireless/morsemicro/mm81x/yaps_hw.c | 702 +++++ .../net/wireless/morsemicro/mm81x/yaps_hw.h | 52 + include/linux/ieee80211.h | 1 + include/linux/mmc/sdio_ids.h | 3 + include/net/cfg80211.h | 20 + 38 files changed, 13931 insertions(+) create mode 100644 drivers/net/wireless/morsemicro/Kconfig create mode 100644 drivers/net/wireless/morsemicro/Makefile create mode 100644 drivers/net/wireless/morsemicro/mm81x/Kconfig create mode 100644 drivers/net/wireless/morsemicro/mm81x/Makefile create mode 100644 drivers/net/wireless/morsemicro/mm81x/bus.h create mode 100644 drivers/net/wireless/morsemicro/mm81x/command.c create mode 100644 drivers/net/wireless/morsemicro/mm81x/command.h create mode 100644 drivers/net/wireless/morsemicro/mm81x/command_defs.h create mode 100644 drivers/net/wireless/morsemicro/mm81x/core.c create mode 100644 drivers/net/wireless/morsemicro/mm81x/core.h create mode 100644 drivers/net/wireless/morsemicro/mm81x/fw.c create mode 100644 drivers/net/wireless/morsemicro/mm81x/fw.h create mode 100644 drivers/net/wireless/morsemicro/mm81x/hif.h create mode 100644 drivers/net/wireless/morsemicro/mm81x/hw.c create mode 100644 drivers/net/wireless/morsemicro/mm81x/hw.h create mode 100644 drivers/net/wireless/morsemicro/mm81x/mac.c create mode 100644 drivers/net/wireless/morsemicro/mm81x/mac.h create mode 100644 drivers/net/wireless/morsemicro/mm81x/mmrc.c create mode 100644 drivers/net/wireless/morsemicro/mm81x/mmrc.h create mode 100644 drivers/net/wireless/morsemicro/mm81x/ps.c create mode 100644 drivers/net/wireless/morsemicro/mm81x/ps.h create mode 100644 drivers/net/wireless/morsemicro/mm81x/rate_code.h create mode 100644 drivers/net/wireless/morsemicro/mm81x/rc.c create mode 100644 drivers/net/wireless/morsemicro/mm81x/rc.h create mode 100644 drivers/net/wireless/morsemicro/mm81x/sdio.c create mode 100644 drivers/net/wireless/morsemicro/mm81x/skbq.c create mode 100644 drivers/net/wireless/morsemicro/mm81x/skbq.h create mode 100644 drivers/net/wireless/morsemicro/mm81x/usb.c create mode 100644 drivers/net/wireless/morsemicro/mm81x/yaps.c create mode 100644 drivers/net/wireless/morsemicro/mm81x/yaps.h create mode 100644 drivers/net/wireless/morsemicro/mm81x/yaps_hw.c create mode 100644 drivers/net/wireless/morsemicro/mm81x/yaps_hw.h
Signature · 1 line
2.43.0