Re: [PATCH v2 net-next 1/3] net: hibmcge: support scenario without PHY.

From: Jijie Shao
Date: Mon Jun 23 2025 - 21:06:59 EST



on 2025/6/23 15:32, Andrew Lunn wrote:
On Mon, Jun 23, 2025 at 11:41:27AM +0800, Jijie Shao wrote:
Currently, the driver uses phylib to operate PHY by default.

On some boards, the PHY device is separated from the MAC device.
As a result, the hibmcge driver cannot operate the PHY device.

In this patch, the driver determines whether a PHY is available
based on register configuration. If no PHY is available,
the driver intercepts phylib operations and operates only MAC device.

The standard way to handle a MAC without a PHY is to use
fixed_link. It is a fake PHY which follows the usual API, so your MAC
driver does not need to care there is no PHY.


Andrew


Thank you for the guidance,
I will study and use it.

Thanks
Jijie Shao