netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next v7 0/9] stmmac: Add Loongson platform support
@ 2023-12-19 14:17 Yanteng Si
  2023-12-19 14:17 ` [PATCH net-next v7 1/9] net: stmmac: Pass stmmac_priv and chan in some callbacks Yanteng Si
                   ` (8 more replies)
  0 siblings, 9 replies; 48+ messages in thread
From: Yanteng Si @ 2023-12-19 14:17 UTC (permalink / raw)
  To: andrew, hkallweit1, peppe.cavallaro, alexandre.torgue, joabreu
  Cc: Yanteng Si, fancer.lancer, Jose.Abreu, chenhuacai, linux,
	guyinggang, netdev, chris.chenfeiyang

v7:
* Refer to andrew's suggestion:
  - Add DMA_INTR_ENA_NIE_RX and DMA_INTR_ENA_NIE_TX #define's, etc.

* Others:
  - Using --subject-prefix="PATCH net-next vN" to indicate that the
    patches are for the networking tree.
  - Rebase to the latest networking tree:
    <git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git>


v6:

* Refer to Serge's suggestion:
  - Add new platform feature flag:
    include/linux/stmmac.h:
    +#define STMMAC_FLAG_HAS_LGMAC			BIT(13)

  - Add the IRQs macros specific to the Loongson Multi-channels GMAC:
     drivers/net/ethernet/stmicro/stmmac/dwmac_dma.h:
     +#define DMA_INTR_ENA_NIE_LOONGSON 0x00060000	/* Normal Loongson Tx/Rx Summary */
     #define DMA_INTR_ENA_NIE 0x00010000	/* Normal Summary */
     ...

  - Drop all of redundant changes that don't require the
    prototypes being converted to accepting the stmmac_priv
    pointer.

* Refer to andrew's suggestion:
  - Drop white space changes.
  - break patch up into lots of smaller parts.
     Some small patches have been put into another series as a preparation
     see <https://lore.kernel.org/loongarch/cover.1702289232.git.siyanteng@loongson.cn/T/#t>
     
     *note* : This series of patches relies on the three small patches above.
* others
  - Drop irq_flags changes.
  - Changed patch order.


v4 -> v5:

* Remove an ugly and useless patch (fix channel number).
* Remove the non-standard dma64 driver code, and also remove
  the HWIF entries, since the associated custom callbacks no
  longer exist.
* Refer to Serge's suggestion: Update the dwmac1000_dma.c to
  support the multi-DMA-channels controller setup.

See:
v4: <https://lore.kernel.org/loongarch/cover.1692696115.git.chenfeiyang@loongson.cn/>
v3: <https://lore.kernel.org/loongarch/cover.1691047285.git.chenfeiyang@loongson.cn/>
v2: <https://lore.kernel.org/loongarch/cover.1690439335.git.chenfeiyang@loongson.cn/>
v1: <https://lore.kernel.org/loongarch/cover.1689215889.git.chenfeiyang@loongson.cn/>

Yanteng Si (9):
  net: stmmac: Pass stmmac_priv and chan in some callbacks
  net: stmmac: dwmac-loongson: Refactor code for loongson_dwmac_probe()
  net: stmmac: dwmac-loongson: Add full PCI support
  net: stmmac: Add multi-channel supports
  net: stmmac: Add Loongson-specific register definitions
  net: stmmac: dwmac-loongson: Add MSI support
  net: stmmac: dwmac-loongson: Add GNET support
  net: stmmac: dwmac-loongson: Disable flow control for GMAC
  net: stmmac: Disable coe for some Loongson GNET

 drivers/net/ethernet/stmicro/stmmac/common.h  |   1 +
 .../ethernet/stmicro/stmmac/dwmac-loongson.c  | 296 ++++++++++++++----
 .../net/ethernet/stmicro/stmmac/dwmac-sun8i.c |   2 +-
 .../ethernet/stmicro/stmmac/dwmac1000_dma.c   |  61 +++-
 .../ethernet/stmicro/stmmac/dwmac100_dma.c    |   2 +-
 .../net/ethernet/stmicro/stmmac/dwmac4_dma.c  |   2 +-
 .../net/ethernet/stmicro/stmmac/dwmac_dma.h   |  55 +++-
 .../net/ethernet/stmicro/stmmac/dwmac_lib.c   |  68 ++--
 .../ethernet/stmicro/stmmac/dwxgmac2_dma.c    |   2 +-
 drivers/net/ethernet/stmicro/stmmac/hwif.c    |   8 +-
 drivers/net/ethernet/stmicro/stmmac/hwif.h    |  11 +-
 .../ethernet/stmicro/stmmac/stmmac_ethtool.c  |   6 +
 .../net/ethernet/stmicro/stmmac/stmmac_main.c |  13 +-
 include/linux/stmmac.h                        |   4 +
 14 files changed, 424 insertions(+), 107 deletions(-)

-- 
2.31.4


^ permalink raw reply	[flat|nested] 48+ messages in thread

end of thread, other threads:[~2024-01-29 11:45 UTC | newest]

Thread overview: 48+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-19 14:17 [PATCH net-next v7 0/9] stmmac: Add Loongson platform support Yanteng Si
2023-12-19 14:17 ` [PATCH net-next v7 1/9] net: stmmac: Pass stmmac_priv and chan in some callbacks Yanteng Si
2023-12-20 15:08   ` Simon Horman
2023-12-21  9:40     ` Yanteng Si
2023-12-20 18:18   ` Serge Semin
2023-12-21 11:50     ` Yanteng Si
2023-12-21 12:53       ` Serge Semin
2023-12-21 13:21         ` Yanteng Si
2023-12-19 14:17 ` [PATCH net-next v7 2/9] net: stmmac: dwmac-loongson: Refactor code for loongson_dwmac_probe() Yanteng Si
2024-01-02 10:37   ` Russell King (Oracle)
2024-01-18 12:53     ` Yanteng Si
2023-12-19 14:17 ` [PATCH net-next v7 3/9] net: stmmac: dwmac-loongson: Add full PCI support Yanteng Si
2024-01-02 10:40   ` Russell King (Oracle)
2024-01-12  9:42     ` Yanteng Si
2024-01-18 12:56     ` Yanteng Si
2023-12-19 14:17 ` [PATCH net-next v7 4/9] net: stmmac: Add multi-channel supports Yanteng Si
2023-12-20 22:36   ` Serge Semin
2023-12-29 10:33     ` Yanteng Si
2023-12-30 11:25       ` Serge Semin
2024-01-01  6:57         ` Yanteng Si
2024-01-02  1:04           ` Serge Semin
2023-12-19 14:26 ` [PATCH net-next v7 5/9] net: stmmac: Add Loongson-specific register definitions Yanteng Si
2023-12-21  2:14   ` Serge Semin
2024-01-01  8:31     ` Yanteng Si
2024-01-01 12:26       ` Serge Semin
2024-01-12 10:08         ` Yanteng Si
2024-01-23 13:08         ` Yanteng Si
2024-01-24 13:59           ` Serge Semin
2023-12-19 14:26 ` [PATCH net-next v7 6/9] net: stmmac: dwmac-loongson: Add MSI support Yanteng Si
2023-12-19 14:26 ` [PATCH net-next v7 7/9] net: stmmac: dwmac-loongson: Add GNET support Yanteng Si
2023-12-21  2:34   ` Serge Semin
2024-01-01  7:27     ` Yanteng Si
2024-01-02  1:22       ` Serge Semin
2024-01-25  6:57         ` Yanteng Si
2024-01-29 11:45         ` Yanteng Si
2024-01-24  9:21       ` Yanteng Si
2024-01-24 13:51         ` Serge Semin
2024-01-25  8:36           ` Yanteng Si
2024-01-25 18:38             ` Serge Semin
2024-01-25 18:41               ` Russell King (Oracle)
2024-01-25 20:12                 ` Serge Semin
2024-01-29 11:18                   ` Yanteng Si
2023-12-19 14:28 ` [PATCH net-next v7 8/9] net: stmmac: dwmac-loongson: Disable flow control for GMAC Yanteng Si
2023-12-21  2:35   ` Serge Semin
2024-01-24 10:54     ` Yanteng Si
2023-12-19 14:28 ` [PATCH net-next v7 9/9] net: stmmac: Disable coe for some Loongson GNET Yanteng Si
2023-12-21  2:36   ` Serge Semin
2024-01-23 12:47     ` Yanteng Si

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).