[PATCH v3 11/23] net: designware: Extract bbmiiphy initialization into dedicated function
Paul Barker
paul.barker.ct at bp.renesas.com
Wed Feb 26 18:16:35 CET 2025
On 22/02/2025 20:33, Marek Vasut wrote:
> Pull the bbmiiphy initialization code from designware_eth_probe() into
> dedicated function, dw_bb_mdio_init(), just like all the other MDIO
> initialization functions.
>
> Keep check for "snps,bitbang-mii" in the designware_eth_probe(), so the
> driver can initialize this MDIO only in case the property is present,
> and initialize regular DW MDIO in case it is not present.
>
> The dw_bb_mdio_init() allocates its own MDIO instance, because thus far
> code gated behind "snps,bitbang-mii" did depend on allocation of MDIO bus
> by the other two MDIO bus options and then rewrote the newly allocated
> MDIO bus callbacks, which is wrong, instead allocate proper MDIO bus with
> the correct callbacks outright.
>
> Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
Reviewed-by: Paul Barker <paul.barker.ct at bp.renesas.com>
--
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/20250226/e7711064/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/20250226/e7711064/attachment.sig>
More information about the U-Boot
mailing list