Re: RFC: symmetric SET_MODULE_EEPROM_BY_PAGE with i2c_address for non-SFF pages
From: Andrew Lunn <andrew@lunn.ch>
Date: 2026-07-15 14:49:09
That does not sound reasonable, given that the only interface needed to the SFP/PHY is the I2C bus which the kernel could access directly (to read EEPROM for example)
The MAC driver needs to know what the PHY has negotiated. Should it be sending packets at 10Mbps half duplex, or 1G full duplex. Has the PHY negotiated pause? sync or async pause? The configuration API via netlink is via the top of the MAC driver. So the MAC driver needs to ask the PHY to advertise what the user wants it to advertise. Enabling loopback again comes via the MAC driver. There are all sorts of APIs between the MAC and the PHY. The firmware needs to implement all these. You cannot drive the PHY independent of the MAC. And when you consider this is an SFP, ideally you need access to the GPIO lines. You want to know when a module is inserted. For a copper SFP, LOS has less meaning, so you can probably do without it. You could maybe use TX_ENABLE to save power when the MAC is admin down. I'm actually surprised you are interested in ice. You seem to be targeting automotive. I would of expected a more embedded SoC, probably ARM based, and those do tend to have Linux driving the hardware. Andrew