netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH V5 net-next 00/11] Add support of HIBMCGE Ethernet Driver
@ 2024-08-27 13:14 Jijie Shao
  2024-08-27 13:14 ` [PATCH V5 net-next 01/11] net: hibmcge: Add pci table supported in this module Jijie Shao
                   ` (10 more replies)
  0 siblings, 11 replies; 28+ messages in thread
From: Jijie Shao @ 2024-08-27 13:14 UTC (permalink / raw)
  To: davem, edumazet, kuba, pabeni
  Cc: shenjian15, wangpeiyang1, liuyonglong, chenhao418, shaojijie,
	sudongming1, xujunsheng, shiyongbang, libaihan, andrew, jdamato,
	horms, jonathan.cameron, shameerali.kolothum.thodi, salil.mehta,
	netdev, linux-kernel

This patch set adds the support of Hisilicon BMC Gigabit Ethernet Driver.

This patch set includes basic Rx/Tx functionality. It also includes
the registration and interrupt codes.

This work provides the initial support to the HIBMCGE and
would incrementally add features or enhancements.

---
ChangeLog:
v4 -> v5:
  - Delete unnecessary semicolon, suggested by Jakub.
  v4: https://lore.kernel.org/all/20240826081258.1881385-1-shaojijie@huawei.com/
v3 -> v4:
  - Delete INITED_STATE in priv, suggested by Andrew.
  - Delete unnecessary defensive code in hbg_phy_start()
    and hbg_phy_stop(), suggested by Andrew.
  v3: https://lore.kernel.org/all/20240822093334.1687011-1-shaojijie@huawei.com/
v2 -> v3:
  - Add "select PHYLIB" in Kconfig, reported by Jakub.
  - Use ndo_validate_addr() instead of is_valid_ether_addr()
    in dev_set_mac_address(), suggested by Jakub and Andrew.
  v2: https://lore.kernel.org/all/20240820140154.137876-1-shaojijie@huawei.com/
v1 -> v2:
  - fix build errors reported by kernel test robot <lkp@intel.com>
    Closes: https://lore.kernel.org/oe-kbuild-all/202408192219.zrGff7n1-lkp@intel.com/
    Closes: https://lore.kernel.org/oe-kbuild-all/202408200026.q20EuSHC-lkp@intel.com/
  v1: https://lore.kernel.org/all/20240819071229.2489506-1-shaojijie@huawei.com/
RFC v2 -> v1:
  - Use FIELD_PREP/FIELD_GET instead of union, suggested by Andrew.
  - Delete unnecessary defensive code, suggested by Andrew.
  - A few other minor changes.
  RFC v2: https://lore.kernel.org/all/20240813135640.1694993-1-shaojijie@huawei.com/
RFC v1 -> RFC v2:
  - Replace linkmode_copy() with phy_remove_link_mode() to
    simplify the PHY configuration process, suggested by Andrew.
  - Delete hbg_get_link_status() from the scheduled task, suggested by Andrew.
  - Delete validation for mtu in hbg_net_change_mtu(), suggested by Andrew.
  - Delete validation for mac address in hbg_net_set_mac_address(),
    suggested by Andrew.
  - Use napi_complete_done() to simplify the process, suggested by Joe Damato.
  - Use ethtool_op_get_link(), phy_ethtool_get_link_ksettings(),
    and phy_ethtool_set_link_ksettings() to simplify the code, suggested by Andrew.
  - Add the null pointer check on the return value of pcim_iomap_table(),
    suggested by Jonathan.
  - Add the check on the return value of phy_connect_direct(),
    suggested by Jonathan.
  - Adjusted the layout to place the fields and register definitions
    in one place, suggested by Jonathan.
  - Replace request_irq with devm_request_irq, suggested by Jonathan.
  - Replace BIT_MASK() with BIT(), suggested by Jonathan.
  - Introduce irq_handle in struct hbg_irq_info in advance to reduce code changes,
    suggested by Jonathan.
  - Delete workqueue for this patch set, suggested by Jonathan.
  - Support to compile this driver on all arch in Kconfig,
    suggested by Andrew and Jonathan.
  - Add a patch to add is_valid_ether_addr check in dev_set_mac_address,
    suggested by Andrew.
  - Use macro instead of inline to fix the warning about compile-time constant
    in FIELD_PREP(), reported by Simon Horman.
  - A few other minor changes.
  RFC v1: https://lore.kernel.org/all/20240731094245.1967834-1-shaojijie@huawei.com/
---

Jijie Shao (11):
  net: hibmcge: Add pci table supported in this module
  net: hibmcge: Add read/write registers supported through the bar space
  net: hibmcge: Add mdio and hardware configuration supported in this
    module
  net: hibmcge: Add interrupt supported in this module
  net: hibmcge: Implement some .ndo functions
  net: hibmcge: Implement .ndo_start_xmit function
  net: hibmcge: Implement rx_poll function to receive packets
  net: hibmcge: Implement some ethtool_ops functions
  net: hibmcge: Add a Makefile and update Kconfig for hibmcge
  net: hibmcge: Add maintainer for hibmcge
  net: add ndo_validate_addr check in dev_set_mac_address

 MAINTAINERS                                   |   7 +
 drivers/net/ethernet/hisilicon/Kconfig        |  16 +-
 drivers/net/ethernet/hisilicon/Makefile       |   1 +
 .../net/ethernet/hisilicon/hibmcge/Makefile   |  10 +
 .../ethernet/hisilicon/hibmcge/hbg_common.h   | 136 ++++++
 .../ethernet/hisilicon/hibmcge/hbg_ethtool.c  |  17 +
 .../ethernet/hisilicon/hibmcge/hbg_ethtool.h  |  11 +
 .../net/ethernet/hisilicon/hibmcge/hbg_hw.c   | 285 ++++++++++++
 .../net/ethernet/hisilicon/hibmcge/hbg_hw.h   |  57 +++
 .../net/ethernet/hisilicon/hibmcge/hbg_irq.c  | 124 +++++
 .../net/ethernet/hisilicon/hibmcge/hbg_irq.h  |  11 +
 .../net/ethernet/hisilicon/hibmcge/hbg_main.c | 240 ++++++++++
 .../net/ethernet/hisilicon/hibmcge/hbg_mdio.c | 245 ++++++++++
 .../net/ethernet/hisilicon/hibmcge/hbg_mdio.h |  12 +
 .../net/ethernet/hisilicon/hibmcge/hbg_reg.h  | 143 ++++++
 .../net/ethernet/hisilicon/hibmcge/hbg_txrx.c | 429 ++++++++++++++++++
 .../net/ethernet/hisilicon/hibmcge/hbg_txrx.h |  37 ++
 net/core/dev.c                                |   5 +
 18 files changed, 1785 insertions(+), 1 deletion(-)
 create mode 100644 drivers/net/ethernet/hisilicon/hibmcge/Makefile
 create mode 100644 drivers/net/ethernet/hisilicon/hibmcge/hbg_common.h
 create mode 100644 drivers/net/ethernet/hisilicon/hibmcge/hbg_ethtool.c
 create mode 100644 drivers/net/ethernet/hisilicon/hibmcge/hbg_ethtool.h
 create mode 100644 drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.c
 create mode 100644 drivers/net/ethernet/hisilicon/hibmcge/hbg_hw.h
 create mode 100644 drivers/net/ethernet/hisilicon/hibmcge/hbg_irq.c
 create mode 100644 drivers/net/ethernet/hisilicon/hibmcge/hbg_irq.h
 create mode 100644 drivers/net/ethernet/hisilicon/hibmcge/hbg_main.c
 create mode 100644 drivers/net/ethernet/hisilicon/hibmcge/hbg_mdio.c
 create mode 100644 drivers/net/ethernet/hisilicon/hibmcge/hbg_mdio.h
 create mode 100644 drivers/net/ethernet/hisilicon/hibmcge/hbg_reg.h
 create mode 100644 drivers/net/ethernet/hisilicon/hibmcge/hbg_txrx.c
 create mode 100644 drivers/net/ethernet/hisilicon/hibmcge/hbg_txrx.h

-- 
2.33.0


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

end of thread, other threads:[~2024-08-30 12:27 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-27 13:14 [PATCH V5 net-next 00/11] Add support of HIBMCGE Ethernet Driver Jijie Shao
2024-08-27 13:14 ` [PATCH V5 net-next 01/11] net: hibmcge: Add pci table supported in this module Jijie Shao
2024-08-27 13:14 ` [PATCH V5 net-next 02/11] net: hibmcge: Add read/write registers supported through the bar space Jijie Shao
2024-08-27 13:14 ` [PATCH V5 net-next 03/11] net: hibmcge: Add mdio and hardware configuration supported in this module Jijie Shao
2024-08-27 13:14 ` [PATCH V5 net-next 04/11] net: hibmcge: Add interrupt " Jijie Shao
2024-08-29  1:35   ` Jakub Kicinski
2024-08-29  1:54     ` Jijie Shao
2024-08-29  2:12       ` Jakub Kicinski
2024-08-29 13:02         ` Jijie Shao
2024-08-27 13:14 ` [PATCH V5 net-next 05/11] net: hibmcge: Implement some .ndo functions Jijie Shao
2024-08-29  1:39   ` Jakub Kicinski
2024-08-29  2:40     ` Jijie Shao
2024-08-29 14:43       ` Jakub Kicinski
2024-08-29 14:59         ` Andrew Lunn
2024-08-30  2:27           ` Jijie Shao
2024-08-27 13:14 ` [PATCH V5 net-next 06/11] net: hibmcge: Implement .ndo_start_xmit function Jijie Shao
2024-08-29  1:41   ` Jakub Kicinski
2024-08-29  2:32     ` Jijie Shao
2024-08-29  3:02       ` Andrew Lunn
2024-08-29 12:57         ` Jijie Shao
     [not found]         ` <f64c04a6-8c3d-46f5-a2dd-a9864de12169@huawei.com>
2024-08-29 13:16           ` Andrew Lunn
2024-08-30 12:27             ` Jijie Shao
2024-08-29 14:51       ` Jakub Kicinski
2024-08-27 13:14 ` [PATCH V5 net-next 07/11] net: hibmcge: Implement rx_poll function to receive packets Jijie Shao
2024-08-27 13:14 ` [PATCH V5 net-next 08/11] net: hibmcge: Implement some ethtool_ops functions Jijie Shao
2024-08-27 13:14 ` [PATCH V5 net-next 09/11] net: hibmcge: Add a Makefile and update Kconfig for hibmcge Jijie Shao
2024-08-27 13:14 ` [PATCH V5 net-next 10/11] net: hibmcge: Add maintainer " Jijie Shao
2024-08-27 13:14 ` [PATCH V5 net-next 11/11] net: add ndo_validate_addr check in dev_set_mac_address Jijie Shao

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).