net: wwan: t7xx: PCIe reset rescan
authorHaijun Liu <haijun.liu@mediatek.com>
Tue, 16 Aug 2022 04:23:53 +0000 (09:53 +0530)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Aug 2022 10:53:53 +0000 (11:53 +0100)
commit140424d90165d83c75b23ead7c3573bb6dd74f50
treef6999fc5ddee49287cc19a4d5c762ccf578a7fdf
parent007f26f0d68e28509d369fe0e71845e095bdd955
net: wwan: t7xx: PCIe reset rescan

PCI rescan module implements "rescan work queue". In firmware flashing
or coredump collection procedure WWAN device is programmed to boot in
fastboot mode and a work item is scheduled for removal & detection.
The WWAN device is reset using APCI call as part driver removal flow.
Work queue rescans pci bus at fixed interval for device detection,
later when device is detect work queue exits.

Signed-off-by: Haijun Liu <haijun.liu@mediatek.com>
Co-developed-by: Madhusmita Sahu <madhusmita.sahu@intel.com>
Signed-off-by: Madhusmita Sahu <madhusmita.sahu@intel.com>
Signed-off-by: Ricardo Martinez <ricardo.martinez@linux.intel.com>
Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
Signed-off-by: Devegowda Chandrashekar <chandrashekar.devegowda@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wwan/t7xx/Makefile
drivers/net/wwan/t7xx/t7xx_modem_ops.c
drivers/net/wwan/t7xx/t7xx_pci.c
drivers/net/wwan/t7xx/t7xx_pci.h
drivers/net/wwan/t7xx/t7xx_pci_rescan.c [new file with mode: 0644]
drivers/net/wwan/t7xx/t7xx_pci_rescan.h [new file with mode: 0644]
drivers/net/wwan/t7xx/t7xx_port_wwan.c
drivers/net/wwan/t7xx/t7xx_state_monitor.c