mirror_ubuntu-kernels/drivers/net/wwan/t7xx
Kai-Heng Feng ab87603b25 net: wwan: t7xx: Ensure init is completed before system sleep
When the system attempts to sleep while mtk_t7xx is not ready, the driver
cannot put the device to sleep:
[   12.472918] mtk_t7xx 0000:57:00.0: [PM] Exiting suspend, modem in invalid state
[   12.472936] mtk_t7xx 0000:57:00.0: PM: pci_pm_suspend(): t7xx_pci_pm_suspend+0x0/0x20 [mtk_t7xx] returns -14
[   12.473678] mtk_t7xx 0000:57:00.0: PM: dpm_run_callback(): pci_pm_suspend+0x0/0x1b0 returns -14
[   12.473711] mtk_t7xx 0000:57:00.0: PM: failed to suspend async: error -14
[   12.764776] PM: Some devices failed to suspend, or early wake event detected

Mediatek confirmed the device can take a rather long time to complete
its initialization, so wait for up to 20 seconds until init is done.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-05-17 13:02:25 +01:00
..
Makefile net: wwan: t7xx: do not compile with -Werror 2023-03-31 09:34:53 +01:00
t7xx_cldma.c
t7xx_cldma.h
t7xx_dpmaif.c net: wwan: t7xx: Fix return type of t7xx_dl_add_timedout() 2022-05-16 11:41:50 +01:00
t7xx_dpmaif.h net: wwan: t7xx: Data path HW layer 2022-05-09 10:51:59 +01:00
t7xx_hif_cldma.c net: wwan: t7xx: Add port for modem logging 2022-11-02 11:39:49 +00:00
t7xx_hif_cldma.h Revert "Merge branch 'wwan-t7xx-fw-flashing-and-coredump-support'" 2022-08-19 15:30:05 -07:00
t7xx_hif_dpmaif_rx.c net: wwan: t7xx: Fix Runtime PM resume sequence 2023-01-28 13:20:20 +00:00
t7xx_hif_dpmaif_rx.h net: wwan: t7xx: Add NAPI support 2022-11-07 09:34:12 +00:00
t7xx_hif_dpmaif_tx.c net: wwan: t7xx: Device deep sleep lock/unlock 2022-05-09 10:51:59 +01:00
t7xx_hif_dpmaif_tx.h net: wwan: t7xx: Add data path interface 2022-05-09 10:51:59 +01:00
t7xx_hif_dpmaif.c net: wwan: t7xx: Fix Runtime PM resume sequence 2023-01-28 13:20:20 +00:00
t7xx_hif_dpmaif.h net: wwan: t7xx: Add NAPI support 2022-11-07 09:34:12 +00:00
t7xx_mhccif.c net: wwan: t7xx: Device deep sleep lock/unlock 2022-05-09 10:51:59 +01:00
t7xx_mhccif.h Revert "Merge branch 'wwan-t7xx-fw-flashing-and-coredump-support'" 2022-08-19 15:30:05 -07:00
t7xx_modem_ops.c net: wwan: t7xx: Fix the ACPI memory leak 2022-11-24 08:54:59 +01:00
t7xx_modem_ops.h Revert "Merge branch 'wwan-t7xx-fw-flashing-and-coredump-support'" 2022-08-19 15:30:05 -07:00
t7xx_netdev.c net: wwan: t7xx: Fix Runtime PM resume sequence 2023-01-28 13:20:20 +00:00
t7xx_netdev.h net: wwan: t7xx: Add NAPI support 2022-11-07 09:34:12 +00:00
t7xx_pci.c net: wwan: t7xx: Ensure init is completed before system sleep 2023-05-17 13:02:25 +01:00
t7xx_pci.h net: wwan: t7xx: Ensure init is completed before system sleep 2023-05-17 13:02:25 +01:00
t7xx_pcie_mac.c
t7xx_pcie_mac.h
t7xx_port_ctrl_msg.c Revert "Merge branch 'wwan-t7xx-fw-flashing-and-coredump-support'" 2022-08-19 15:30:05 -07:00
t7xx_port_proxy.c net: wwan: t7xx: Add port for modem logging 2022-11-02 11:39:49 +00:00
t7xx_port_proxy.h net: wwan: t7xx: Add port for modem logging 2022-11-02 11:39:49 +00:00
t7xx_port_trace.c net: wwan: t7xx: Add port for modem logging 2022-11-02 11:39:49 +00:00
t7xx_port_wwan.c wwan: core: Support slicing in port TX flow of WWAN subsystem 2023-03-17 22:38:31 -07:00
t7xx_port.h net: wwan: t7xx: Add port for modem logging 2022-11-02 11:39:49 +00:00
t7xx_reg.h Revert "Merge branch 'wwan-t7xx-fw-flashing-and-coredump-support'" 2022-08-19 15:30:05 -07:00
t7xx_state_monitor.c Revert "Merge branch 'wwan-t7xx-fw-flashing-and-coredump-support'" 2022-08-19 15:30:05 -07:00
t7xx_state_monitor.h Revert "Merge branch 'wwan-t7xx-fw-flashing-and-coredump-support'" 2022-08-19 15:30:05 -07:00