All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Horman <horms@kernel.org>
To: Yanteng Si <siyanteng@loongson.cn>
Cc: andrew@lunn.ch, hkallweit1@gmail.com, peppe.cavallaro@st.com,
	alexandre.torgue@foss.st.com, joabreu@synopsys.com,
	fancer.lancer@gmail.com, Jose.Abreu@synopsys.com,
	chenhuacai@loongson.cn, linux@armlinux.org.uk,
	guyinggang@loongson.cn, netdev@vger.kernel.org,
	chris.chenfeiyang@gmail.com
Subject: Re: [PATCH net-next v7 1/9] net: stmmac: Pass stmmac_priv and chan in some callbacks
Date: Wed, 20 Dec 2023 16:08:46 +0100	[thread overview]
Message-ID: <20231220150846.GL882741@kernel.org> (raw)
In-Reply-To: <8414049581ed11a2466dc75e0e1f2ef4be7d0fd9.1702990507.git.siyanteng@loongson.cn>

On Tue, Dec 19, 2023 at 10:17:04PM +0800, Yanteng Si wrote:
> Loongson GMAC and GNET have some special features. To prepare for that,
> pass stmmac_priv and chan to more callbacks, and adjust the callbacks
> accordingly.
> 
> Signed-off-by: Yanteng Si <siyanteng@loongson.cn>
> Signed-off-by: Feiyang Chen <chenfeiyang@loongson.cn>
> Signed-off-by: Yinggang Gu <guyinggang@loongson.cn>
> ---
>  drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c   |  2 +-
>  drivers/net/ethernet/stmicro/stmmac/dwmac1000_dma.c |  2 +-
>  drivers/net/ethernet/stmicro/stmmac/dwmac100_dma.c  |  2 +-
>  drivers/net/ethernet/stmicro/stmmac/dwmac4_dma.c    |  2 +-
>  drivers/net/ethernet/stmicro/stmmac/dwmac_dma.h     |  3 ++-
>  drivers/net/ethernet/stmicro/stmmac/dwmac_lib.c     |  3 ++-
>  drivers/net/ethernet/stmicro/stmmac/dwxgmac2_dma.c  |  2 +-
>  drivers/net/ethernet/stmicro/stmmac/hwif.h          | 11 ++++++-----
>  drivers/net/ethernet/stmicro/stmmac/stmmac_main.c   |  6 +++---
>  9 files changed, 18 insertions(+), 15 deletions(-)
> 
> diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
> index 137741b94122..7cdfa0bdb93a 100644
> --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
> +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-sun8i.c
> @@ -395,7 +395,7 @@ static void sun8i_dwmac_dma_start_tx(struct stmmac_priv *priv,
>  	writel(v, ioaddr + EMAC_TX_CTL1);
>  }
>  
> -static void sun8i_dwmac_enable_dma_transmission(void __iomem *ioaddr)
> +static void sun8i_dwmac_enable_dma_transmission(void __iomem *ioaddr, u32 chan)
>  {
>  	u32 v;
>  

Hi Yanteng Si,

perhaps dwmac-sun8i.c needs to be further updated for this change?

  .../dwmac-sun8i.c:568:10: error: incompatible function pointer types initializing 'void (*)(struct stmmac_priv *, void *, struct stmmac_dma_cfg *, int)' with an expression of type 'void (void *, struct stmmac_dma_cfg *, int)' [-Wincompatible-function-pointer-types]
    568 |         .init = sun8i_dwmac_dma_init,
        |                 ^~~~~~~~~~~~~~~~~~~~
  .../dwmac-sun8i.c:574:29: error: incompatible function pointer types initializing 'void (*)(struct stmmac_priv *, void *, u32)' (aka 'void (*)(struct stmmac_priv *, void *, unsigned int)') with an expression of type 'void (void *, u32)' (aka 'void (void *, unsigned int)') [-Wincompatible-function-pointer-types]
    574 |         .enable_dma_transmission = sun8i_dwmac_enable_dma_transmission,
        |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  2 errors generated.

  reply	other threads:[~2023-12-20 15:08 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231220150846.GL882741@kernel.org \
    --to=horms@kernel.org \
    --cc=Jose.Abreu@synopsys.com \
    --cc=alexandre.torgue@foss.st.com \
    --cc=andrew@lunn.ch \
    --cc=chenhuacai@loongson.cn \
    --cc=chris.chenfeiyang@gmail.com \
    --cc=fancer.lancer@gmail.com \
    --cc=guyinggang@loongson.cn \
    --cc=hkallweit1@gmail.com \
    --cc=joabreu@synopsys.com \
    --cc=linux@armlinux.org.uk \
    --cc=netdev@vger.kernel.org \
    --cc=peppe.cavallaro@st.com \
    --cc=siyanteng@loongson.cn \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.