Re: [PATCH net-next 2/2] net: phy: mxl-gpy: add MxL862xx support
From: Andrew Lunn
Date: Mon Nov 10 2025 - 20:45:38 EST
On Mon, Nov 10, 2025 at 10:35:00PM +0000, Daniel Golle wrote:
> Add PHY driver support for Maxlinear 86252 and 86282 switches.
> The PHYs built-into those switches are just like any other GPY 2.5G PHYs
> with the exception of the temperature sensor data being encoded in a
> different way.
Is there a temperature sensor per PHY, or just one for the whole
package?
Marvell did something similar for there SoHo switches. The temperature
sensor is mapped to each of internal PHYs register space, but in fact
there is a single sensor, not one per PHY.
> @@ -541,7 +581,7 @@ static int gpy_update_interface(struct phy_device *phydev)
> /* Interface mode is fixed for USXGMII and integrated PHY */
> if (phydev->interface == PHY_INTERFACE_MODE_USXGMII ||
> phydev->interface == PHY_INTERFACE_MODE_INTERNAL)
> - return -EINVAL;
> + return 0;
This change is not obvious. There is no mention of it in the commit
message. Why has something which was an error become not an error?
Andrew
---
pw-bot: cr