Re: [PATCH] net: phy: marvell-88q2xxx: add driver for the Marvell 88Q2220 PHY
From: Andrew Lunn <andrew@lunn.ch>
Date: 2024-01-05 16:07:02
Also in:
lkml
From: Andrew Lunn <andrew@lunn.ch>
Date: 2024-01-05 16:07:02
Also in:
lkml
Hi Andrew,quoted
Do we need to reduce the init sequence? Since this is all undocumented magic which nobody understands, it would be safer to just keep with the Marvell vendor crap code dump. Unless we really do need to change it.You are right, it would be safer to use the vendor code. But when looking at the vendor code, the init sequence changed a lot from rev. B0 to rev. B1 of the PHY. There are some additional register writes, but mostly the order of the register writes changed. I don't know if this is going to be worse in the future. Maintaining different revisions will probably take some effort or at least result in bloated code. We probably don't need all of the init sequence. I'm not sure how to deal with it, keeping the init sequence at a minimum is probably a good idea.
Is the revision in the lower nibble of the ID register? We can handle them as different PHYs, each gets its own init code, and share what can be shared in helper functions. Andrew