> Subject: Re: [PATCH net-next 4/5] net: phy: add Lynx PCS MDIO module > > > Are there really instances where the ethernet driver has to manage > > multiple different types of PCSs? I am not sure this type of snippet > > of code is really going to occur. > > Hi Ioana > > The Marvell mv88e6390 family has three PCS's, one for SGMII/1000BaseX, a > 10Gbase-X4/X2 and a 10GBAse-R. So this sort of code could appear. >
I should have been more clear as I was wondering about different types of PCS IPs (i.e. different vendors and such). We are in the same case as the Marvell mv88e6390 family, it seems, and we treat this directly in the Lynx PCS module by a 'switch case' statement by the interface type. The MAC driver just calls the functions, no choosing necessary on its part, all of that is done by the PCS module. Ioana