[PATCH] net: miiphybb: Fix short name length
Marek Vasut
marek.vasut at mailbox.org
Sat Jan 25 13:29:40 CET 2025
On 1/21/25 12:56 PM, Paul Barker wrote:
> On 18/01/2025 06:15, Marek Vasut wrote:
>> Multiple drivers copy MDIO name into struct bb_miiphy_bus name, but
>> these two name fields have different length, the bb_miiphy_bus one
>> is 16 bytes, the source one is 32 bytes. Make sure these two lengths
>> are always synchronized, use MDIO_NAME_LEN for both.
>>
>> Signed-off-by: Marek Vasut <marek.vasut+renesas at mailbox.org>
>
> I would prefer something like the following so that it's clear which
> source struct we're referring to:
>
> Multiple drivers copy the MDIO instance name from struct mii_phy to
> struct bb_miiphy_bus, but the name field in these two structs have
> different lengths...
>
> With that changed,
>
> Reviewed-by: Paul Barker <paul.barker.ct at bp.renesas.com>
Fixed in V2 , thanks.
More information about the U-Boot
mailing list