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

Andrew Lunn andrew at lunn.ch
Wed May 24 10:30:51 PDT 2023


> +	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



More information about the linux-arm-kernel mailing list