[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <8735wnf2uk.fsf@kmk-computers.de>
Date: Mon, 22 Mar 2021 19:41:23 +0100
From: Kurt Kanzenbach <kurt@...-computers.de>
To: Andrew Lunn <andrew@...n.ch>
Cc: Vivien Didelot <vivien.didelot@...il.com>,
Florian Fainelli <f.fainelli@...il.com>,
Vladimir Oltean <olteanv@...il.com>,
"David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>, netdev@...r.kernel.org
Subject: Re: [PATCH net-next] net: dsa: hellcreek: Report switch name and ID
On Sat Mar 20 2021, Andrew Lunn wrote:
>> +static int hellcreek_devlink_info_get(struct dsa_switch *ds,
>> + struct devlink_info_req *req,
>> + struct netlink_ext_ack *extack)
>> +{
>> + struct hellcreek *hellcreek = ds->priv;
>> + int ret;
>> +
>> + ret = devlink_info_driver_name_put(req, "hellcreek");
>> + if (ret)
>> + return ret;
>> +
>> + return devlink_info_version_fixed_put(req,
>> + DEVLINK_INFO_VERSION_GENERIC_ASIC_ID,
>> + hellcreek->pdata->name);
>
>> static const struct hellcreek_platform_data de1soc_r1_pdata = {
>> + .name = "Hellcreek r4c30",
>
> Hi Kurt
>
> The two other DSA drivers which implement this keep the
> DEVLINK_INFO_VERSION_GENERIC_ASIC_ID just the model name, mv88e6390,
> SJA1105E for example. You have hellcreek in the driver name, so i
> don't see a need to repeat it.
I see, makes sense.
Thanks,
Kurt
Download attachment "signature.asc" of type "application/pgp-signature" (866 bytes)
Powered by blists - more mailing lists