On Wed, Jul 15, 2020 at 09:31:12AM +0200, Helmut Grohne wrote: > You seem to be in favour of more deeply encoding the "there can be only > one CPU port" assumption. Based on that assumption, the rest of what you > write makes very much sense to me. Is that the direction to go? >From what i understand, there is only one port which can do RGMII. It does not really matter if that is the CPU port, or a user port. Ideally, whatever port it is, should have the phy-mode property in its port node. How you store that information until you need it is up to the driver. But KISS is generally best, reuse what you have, unless there is a good reason to change it. If you see this code being reused when more than one port supports RGMII, then adding a per port members makes sense. But if that is unlikely, keep with the global. Andrew