net: ngbe: Add ngbe mdio bus driver.
authorMengyuan Lou <mengyuanlou@net-swift.com>
Wed, 11 Jan 2023 11:17:18 +0000 (19:17 +0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 13 Jan 2023 05:31:12 +0000 (21:31 -0800)
commita1cf597b99a7276c2103327b5633ef1d7a0f3a93
tree2f69f00739461227782079838e644319075d1bb5
parent296403f9ec4af0bb3468a9b1535aadfeb1a3b37d
net: ngbe: Add ngbe mdio bus driver.

Add mdio bus register for ngbe.
The internal phy and external phy need to be handled separately.
Add phy changed event detection.

Signed-off-by: Mengyuan Lou <mengyuanlou@net-swift.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20230111111718.40745-1-mengyuanlou@net-swift.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/wangxun/Kconfig
drivers/net/ethernet/wangxun/libwx/wx_type.h
drivers/net/ethernet/wangxun/ngbe/Makefile
drivers/net/ethernet/wangxun/ngbe/ngbe_hw.c
drivers/net/ethernet/wangxun/ngbe/ngbe_hw.h
drivers/net/ethernet/wangxun/ngbe/ngbe_main.c
drivers/net/ethernet/wangxun/ngbe/ngbe_mdio.c [new file with mode: 0644]
drivers/net/ethernet/wangxun/ngbe/ngbe_mdio.h [new file with mode: 0644]
drivers/net/ethernet/wangxun/ngbe/ngbe_type.h