Re: [PATCH] stmmac: pci: Add support for LS7A bridge chip

2020-11-24 Thread Zhi Li
E_DATA(LOONGSON, GMAC, &loongson_pci_info) }, +{} +}; +MODULE_DEVICE_TABLE(pci, loongson_gmac_table); + +struct pci_driver loongson_gmac_driver = { +.name = "loongson gmac", +.id_table = loongson_gmac_table, +.probe = loongson_gmac_probe, +.remove = loongson_gmac_remove, +.driver = { +.pm = &loongson_eth_pm_ops, +}, +}; + +module_pci_driver(loongson_gmac_driver); + +MODULE_DESCRIPTION("Loongson DWMAC PCI driver"); +MODULE_AUTHOR("Zhi Li "); +MODULE_LICENSE("GPL v2"); Thanks - Jiaxun

[PATCH] stmmac: pci: Add support for LS7A bridge chip

2020-07-10 Thread Zhi Li
Add gmac platform data to support LS7A bridge chip. Co-developed-by: Hongbin Li Signed-off-by: Hongbin Li Signed-off-by: Zhi Li --- drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/net/ethernet/stmicro/stmmac

Re: [PATCH net-next V2 04/16] net: fec: reduce interrupts

2016-03-02 Thread Zhi Li
On Wed, Mar 2, 2016 at 4:32 PM, Troy Kisky wrote: > FEC_ENET_TS_TIMER I think so. TS_TIMER should never be triggered. best regards Frank Li

Re: [PATCH] MAINTAINERS: add maintainer entry for FREESCALE FEC ethernet driver

2016-03-02 Thread Zhi Li
On Wed, Mar 2, 2016 at 3:38 AM, Fugang Duan wrote: > From: Fugang Duan Sent: Wednesday, March 02, 2016 5:25 > PM >> To: da...@davemloft.net >> Cc: netdev@vger.kernel.org; Fugang Duan >> Subject: [PATCH] MAINTAINERS: add maintainer entry for FREESCALE FEC >> ethernet driver >> >> Add a maintaine

Re: [PATCH net-next V2 04/16] net: fec: reduce interrupts

2016-03-02 Thread Zhi Li
On Wed, Mar 2, 2016 at 10:12 AM, Troy Kisky wrote: > On 3/2/2016 8:13 AM, Fugang Duan wrote: >> From: Troy Kisky Sent: Thursday, February >> 25, 2016 8:37 AM >>> To: netdev@vger.kernel.org; da...@davemloft.net; b38...@freescale.com >>> Cc: fabio.este...@freescale.com; l.st...@pengutronix.de; and

Re: [PATCH net-next V2 04/16] net: fec: reduce interrupts

2016-03-02 Thread Zhi Li
On Wed, Mar 2, 2016 at 10:12 AM, Troy Kisky wrote: > it is going to be delayed for a very long time. > Should it be moved to the napi routine? No! irq can generate. Compared irq enable is not controlled by EIMR, but TCSR. Original code is correct. best regards Frank Li

Re: [PATCH] MAINTAINERS: add maintainer entry for FREESCALE FEC ethernet driver

2016-03-02 Thread Zhi Li
On Wed, Mar 2, 2016 at 3:38 AM, Fugang Duan wrote: > From: Fugang Duan Sent: Wednesday, March 02, 2016 5:25 > PM >> To: da...@davemloft.net >> Cc: netdev@vger.kernel.org; Fugang Duan >> Subject: [PATCH] MAINTAINERS: add maintainer entry for FREESCALE FEC >> ethernet driver >> >> Add a maintaine

Re: [PATCH net-next V2 03/16] net: fec: pass txq to fec_enet_tx_queue instead of queue_id

2016-03-01 Thread Zhi Li
On Tue, Mar 1, 2016 at 3:51 PM, Troy Kisky wrote: > True, but fec_txq/fec_rxq is called in a loop. netdev_priv(ndev) is that pointer move. dev + ALIGN(sizeof(struct net_device), NETDEV_ALIGN) Modem compiler can handle it greatly. You can't get any valuable performance gain by that. The main ti

Re: [PATCH net-next V2 03/16] net: fec: pass txq to fec_enet_tx_queue instead of queue_id

2016-03-01 Thread Zhi Li
On Wed, Feb 24, 2016 at 6:36 PM, Troy Kisky wrote: > queue_id is the qid member of struct bufdesc_prop. > > Signed-off-by: Troy Kisky > --- > drivers/net/ethernet/freescale/fec_main.c | 17 ++--- > 1 file changed, 6 insertions(+), 11 deletions(-) > > diff --git a/drivers/net/ethernet

Re: [PATCH net-next V2 02/16] net: fec: pass rxq to fec_enet_rx_queue instead of queue_id

2016-03-01 Thread Zhi Li
On Wed, Feb 24, 2016 at 6:36 PM, Troy Kisky wrote: > The queue_id is the qid member of struct bufdesc_prop. > > Signed-off-by: Troy Kisky > --- > drivers/net/ethernet/freescale/fec_main.c | 13 + > 1 file changed, 5 insertions(+), 8 deletions(-) > > diff --git a/drivers/net/ethernet/