[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v12 04/10] hw/net: Add NPCMXXX GMAC device
From: |
Peter Maydell |
Subject: |
Re: [PATCH v12 04/10] hw/net: Add NPCMXXX GMAC device |
Date: |
Sat, 13 Jan 2024 12:27:23 +0000 |
On Wed, 10 Jan 2024 at 23:42, Nabih Estefan <nabihestefan@google.com> wrote:
>
> From: Hao Wu <wuhaotsh@google.com>
>
> This patch implements the basic registers of GMAC device and sets
> registers for networking functionalities.
>
> Tested:
> The following message shows up with the change:
> Broadcom BCM54612E stmmac-0:00: attached PHY driver [Broadcom BCM54612E]
> (mii_bus:phy_addr=stmmac-0:00, irq=POLL)
> stmmaceth f0802000.eth eth0: Link is Up - 1Gbps/Full - flow control rx/tx
>
> Change-Id: If71c6d486b95edcccba109ba454870714d7e0940
> Signed-off-by: Hao Wu <wuhaotsh@google.com>
> Signed-off-by: Nabih Estefan Diaz <nabihestefan@google.com>
> Reviewed-by: Tyrone Ting <kfting@nuvoton.com>
> ---
This patch doesn't compile at this point in the series, because:
> +static void npcm_gmac_write(void *opaque, hwaddr offset,
> + uint64_t v, unsigned size)
> +{
> + NPCMGMACState *gmac = opaque;
...
> +
> + gmac_update_irq(gmac);
the function gmac_update_irq() isn't defined until
later in the series.
The easy fix is to squash "include/hw/net: General GMAC Implementation"
(which incidentally still has a commit message subject that
doesn't match its contents) into this one, since it's
not very large.
-- PMM
- [PATCH v12 00/10] Implementation of NPI Mailbox and GMAC Networking Module, Nabih Estefan, 2024/01/10
- [PATCH v12 02/10] hw/arm: Add PCI mailbox module to Nuvoton SoC, Nabih Estefan, 2024/01/10
- [PATCH v12 03/10] hw/misc: Add qtest for NPCM7xx PCI Mailbox, Nabih Estefan, 2024/01/10
- [PATCH v12 01/10] hw/misc: Add Nuvoton's PCI Mailbox Module, Nabih Estefan, 2024/01/10
- [PATCH v12 04/10] hw/net: Add NPCMXXX GMAC device, Nabih Estefan, 2024/01/10
- Re: [PATCH v12 04/10] hw/net: Add NPCMXXX GMAC device,
Peter Maydell <=
- [PATCH v12 05/10] hw/arm: Add GMAC devices to NPCM7XX SoC, Nabih Estefan, 2024/01/10
- [PATCH v12 06/10] tests/qtest: Creating qtest for GMAC Module, Nabih Estefan, 2024/01/10
- [PATCH v12 07/10] include/hw/net: General GMAC Implementation, Nabih Estefan, 2024/01/10
- [PATCH v12 08/10] hw/net: GMAC Rx Implementation, Nabih Estefan, 2024/01/10
- [PATCH v12 10/10] tests/qtest: Adding PCS Module test to GMAC Qtest, Nabih Estefan, 2024/01/10
- [PATCH v12 09/10] hw/net: GMAC Tx Implementation, Nabih Estefan, 2024/01/10
- Re: [PATCH v12 00/10] Implementation of NPI Mailbox and GMAC Networking Module, Peter Maydell, 2024/01/13