OpenCloudOS-Kernel/drivers/net/wwan/t7xx
Jose Ignacio Tornos Martinez ba2274dcfd net: wwan: t7xx: Add AP CLDMA
At this moment with the current status, t7xx is not functional due to
problems like this after connection, if there is no activity:
[   57.370534] mtk_t7xx 0000:72:00.0: [PM] SAP suspend error: -110
[   57.370581] mtk_t7xx 0000:72:00.0: can't suspend
    (t7xx_pci_pm_runtime_suspend [mtk_t7xx] returned -110)
because after this, the traffic no longer works.

The complete series 'net: wwan: t7xx: fw flashing & coredump support'
was reverted because of issues with the pci implementation.
In order to have at least the modem working, it would be enough if just
the first commit of the series is re-applied:
d20ef656f9 net: wwan: t7xx: Add AP CLDMA
With that, the Application Processor would be controlled, correctly
suspended and the commented problems would be fixed (I am testing here
like this with no related issue).

This commit is independent of the others and not related to the
commented pci implementation for the new features: fw flashing and
coredump collection.

Use v2 patch version of d20ef656f9 as JinJian Song suggests
(https://patchwork.kernel.org/project/netdevbpf/patch/20230105154215.198828-1-m.chetan.kumar@linux.intel.com/).

Original text from the commit that would be re-applied:

    d20ef656f9 net: wwan: t7xx: Add AP CLDMA
    Author: Haijun Liu <haijun.liu@mediatek.com>
    Date:   Tue Aug 16 09:53:28 2022 +0530

    The t7xx device contains two Cross Layer DMA (CLDMA) interfaces to
    communicate with AP and Modem processors respectively. So far only
    MD-CLDMA was being used, this patch enables AP-CLDMA.

    Rename small Application Processor (sAP) to AP.

    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: Moises Veleta <moises.veleta@linux.intel.com>
    Signed-off-by: Devegowda Chandrashekar <chandrashekar.devegowda@intel.com>
    Signed-off-by: M Chetan Kumar <m.chetan.kumar@linux.intel.com>
    Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
    Reviewed-by: Sergey Ryazanov <ryazanov.s.a@gmail.com>
    Reviewed-by: Jesse Brandeburg <jesse.brandeburg@intel.com>

Signed-off-by: Jose Ignacio Tornos Martinez <jtornosm@redhat.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230711062817.6108-1-jtornosm@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2023-07-12 17:16:56 -07: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 AP CLDMA 2023-07-12 17:16:56 -07:00
t7xx_hif_cldma.h net: wwan: t7xx: Add AP CLDMA 2023-07-12 17:16:56 -07: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_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: Use alloc_ordered_workqueue() to create ordered workqueues 2023-05-25 12:15:29 -10:00
t7xx_hif_dpmaif_tx.h net: wwan: t7xx: Add data path interface 2022-05-09 10:51:59 +01:00
t7xx_mhccif.c net: wwan: t7xx: Device deep sleep lock/unlock 2022-05-09 10:51:59 +01:00
t7xx_mhccif.h net: wwan: t7xx: Add AP CLDMA 2023-07-12 17:16:56 -07:00
t7xx_modem_ops.c net: wwan: t7xx: Add AP CLDMA 2023-07-12 17:16:56 -07:00
t7xx_modem_ops.h net: wwan: t7xx: Add AP CLDMA 2023-07-12 17:16:56 -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.h net: wwan: t7xx: Add AP CLDMA 2023-07-12 17:16:56 -07:00
t7xx_port_ctrl_msg.c net: wwan: t7xx: Add AP CLDMA 2023-07-12 17:16:56 -07:00
t7xx_port_proxy.c net: wwan: t7xx: Add AP CLDMA 2023-07-12 17:16:56 -07: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_reg.h net: wwan: t7xx: Add AP CLDMA 2023-07-12 17:16:56 -07:00
t7xx_state_monitor.c net: wwan: t7xx: Add AP CLDMA 2023-07-12 17:16:56 -07:00
t7xx_state_monitor.h net: wwan: t7xx: Add AP CLDMA 2023-07-12 17:16:56 -07:00