mbox series

[net-next,v3,0/3] net: wwan: t7xx: Add fastboot interface

Message ID MEYP282MB2697AB1903F289B38F25CC5ABB9EA@MEYP282MB2697.AUSP282.PROD.OUTLOOK.COM (mailing list archive)
Headers show
Series net: wwan: t7xx: Add fastboot interface | expand

Message

Jinjian Song Dec. 28, 2023, 9:44 a.m. UTC
From: Jinjian Song <jinjian.song@fibocom.com>

Add support for t7xx WWAN device firmware flashing & coredump collection
using fastboot interface.

Using fastboot protocol command through /dev/wwan0fastboot0 WWAN port to 
support firmware flashing and coredump collection, userspace get device
mode from /sys/bus/pci/devices/${bdf}/t7xx_mode.

Jinjian Song (3):
  wwan: core: Add WWAN fastboot port type
  net: wwan: t7xx: Add sysfs attribute for device state machine
  net: wwan: t7xx: Add fastboot WWAN port

 drivers/net/wwan/t7xx/Makefile             |   1 +
 drivers/net/wwan/t7xx/t7xx_hif_cldma.c     |  47 +++++--
 drivers/net/wwan/t7xx/t7xx_hif_cldma.h     |  18 ++-
 drivers/net/wwan/t7xx/t7xx_modem_ops.c     |   5 +-
 drivers/net/wwan/t7xx/t7xx_pci.c           |  88 +++++++++++-
 drivers/net/wwan/t7xx/t7xx_pci.h           |  11 ++
 drivers/net/wwan/t7xx/t7xx_port.h          |   4 +
 drivers/net/wwan/t7xx/t7xx_port_fastboot.c | 155 +++++++++++++++++++++
 drivers/net/wwan/t7xx/t7xx_port_proxy.c    |  89 ++++++++++--
 drivers/net/wwan/t7xx/t7xx_port_proxy.h    |  12 ++
 drivers/net/wwan/t7xx/t7xx_port_wwan.c     |   5 +-
 drivers/net/wwan/t7xx/t7xx_reg.h           |  28 +++-
 drivers/net/wwan/t7xx/t7xx_state_monitor.c | 125 ++++++++++++++---
 drivers/net/wwan/t7xx/t7xx_state_monitor.h |   1 +
 drivers/net/wwan/wwan_core.c               |   4 +
 include/linux/wwan.h                       |   2 +
 16 files changed, 537 insertions(+), 58 deletions(-)
 create mode 100644 drivers/net/wwan/t7xx/t7xx_port_fastboot.c

Comments

Jakub Kicinski Jan. 4, 2024, 1:51 a.m. UTC | #1
On Thu, 28 Dec 2023 17:44:08 +0800 Jinjian Song wrote:
> Add support for t7xx WWAN device firmware flashing & coredump collection
> using fastboot interface.
> 
> Using fastboot protocol command through /dev/wwan0fastboot0 WWAN port to 
> support firmware flashing and coredump collection, userspace get device
> mode from /sys/bus/pci/devices/${bdf}/t7xx_mode.

Jiri, do I remember correctly that you were against this functionality
using devlink? If so could you review this now?