net: wwan: t7xx: Add port proxy infrastructure
authorHaijun Liu <haijun.liu@mediatek.com>
Fri, 6 May 2022 18:13:01 +0000 (11:13 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 May 2022 09:51:59 +0000 (10:51 +0100)
commit48cc2f5ef846e76dc3bb1501a4014be18c644c1b
treef1e8b9222eafb61e5c8c852bbefa898ccc68d36c
parent13e920d93e37fcaef4a9309515798a3cae9dcf19
net: wwan: t7xx: Add port proxy infrastructure

Port-proxy provides a common interface to interact with different types
of ports. Ports export their configuration via `struct t7xx_port` and
operate as defined by `struct port_ops`.

Signed-off-by: Haijun Liu <haijun.liu@mediatek.com>
Co-developed-by: Chandrashekar Devegowda <chandrashekar.devegowda@intel.com>
Signed-off-by: Chandrashekar Devegowda <chandrashekar.devegowda@intel.com>
Co-developed-by: Ricardo Martinez <ricardo.martinez@linux.intel.com>
Signed-off-by: Ricardo Martinez <ricardo.martinez@linux.intel.com>
Reviewed-by: Loic Poulain <loic.poulain@linaro.org>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wwan/t7xx/Makefile
drivers/net/wwan/t7xx/t7xx_hif_cldma.c
drivers/net/wwan/t7xx/t7xx_modem_ops.c
drivers/net/wwan/t7xx/t7xx_port.h [new file with mode: 0644]
drivers/net/wwan/t7xx/t7xx_port_proxy.c [new file with mode: 0644]
drivers/net/wwan/t7xx/t7xx_port_proxy.h [new file with mode: 0644]
drivers/net/wwan/t7xx/t7xx_state_monitor.c