Re: [PATCH net-next 1/4] net: mdio: Introduce a regmap-based mdio driver

From: Andrew Lunn
Date: Wed May 24 2023 - 13:31:00 EST


> + mii->name = DRV_NAME;
> + strscpy(mii->id, config->name, MII_BUS_ID_SIZE);
> + mii->parent = config->parent;
> + mii->read = mdio_regmap_read_c22;
> + mii->write = mdio_regmap_write_c22;

Since there is only one valid address on the bus, you can set
mii->phy_mask to make the scanning of the bus a little faster.

Andrew