[PATCH] net: miiphybb: Update documentation
Paul Barker
paul.barker.ct at bp.renesas.com
Sat Mar 8 15:50:18 CET 2025
On 06/03/2025 22:12, Marek Vasut wrote:
> Update the miiphybb documentation to match current implementation.
> The static struct bb_miiphy_bus bb_miiphy_buses[] array is removed.
> The example is updated to match current Renesas RAVB driver, which
> is one of the miiphybb users.
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
I have a couple of minor improvements to the sentences below, you can
fix these up while applying.
> -The board code needs to fill the bb_miiphy_buses[] array with a record for
> -each required bus and declare the bb_miiphy_buses_num variable with the
> -number of mii buses. The record (struct bb_miiphy_bus) has the following
> -fields/callbacks (see miiphy.h for details):
> +The driver code needs to allocate regular MDIO device using mdio_alloc()
"... allocate a regular MDIO device ..."
> +and assign .read and .write accessors which wrap bb_miiphy_read() and
> +bb_miiphy_write() functions respectively. The bb_miiphy_read() and
> +bb_miiphy_write() functions have to be passed a point to a callback
"... functions take a pointer to a callback ..."
> +structure, struct bb_miiphy_bus_ops. The struct bb_miiphy_bus_ops has
> +the following fields/callbacks (see miiphy.h for details):
Reviewed-by: Paul Barker <paul.barker.ct at bp.renesas.com>
Thanks!
--
Paul Barker
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_0x27F4B3459F002257.asc
Type: application/pgp-keys
Size: 3520 bytes
Desc: OpenPGP public key
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250308/598200b3/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 236 bytes
Desc: OpenPGP digital signature
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250308/598200b3/attachment.sig>
More information about the U-Boot
mailing list