[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <481268aa-c8e9-4475-bd5c-8d0f82a6652a@lunn.ch>
Date: Tue, 18 Mar 2025 17:49:05 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: linux-usb@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org, Andrew Lunn <andrew+netdev@...n.ch>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>
Subject: Re: [PATCH net v1 1/1] net: usb: asix: ax88772: Increase phy_name
size
> struct ax88172a_private {
> struct mii_bus *mdio;
> struct phy_device *phydev;
> - char phy_name[20];
> + char phy_name[MII_BUS_ID_SIZE + 5];
Could you explain the + 5?
https://elixir.bootlin.com/linux/v6.13.7/source/drivers/net/ethernet/davicom/dm9051.c#L1156
https://elixir.bootlin.com/linux/v6.13.7/source/drivers/net/ethernet/freescale/fec_main.c#L2454
https://elixir.bootlin.com/linux/v6.13.7/source/drivers/net/ethernet/xilinx/ll_temac.h#L348
The consensus seems to be + 3.
Andrew
Powered by blists - more mailing lists