> When using the SIOC[SG]MIIREG ioctl() call, how does one control > whether the fake fixed-link bus is accessed or the real macb-mdio bus > is accessed?
As far as i remember, that ioctl is based on the interface name. So it will access the MDIO bus of the PHY that is attached to the MAC. I guess you have user space drivers using the IOCTL to access devices on the real bus? A switch? Can you swap to a DSA driver? > How does the macb driver decide which bus/id combination to use as > "the phy" that controls the link duplex/speed settting the the MAC? phy-handle points to a PHY. Andrew