Re: [PATCH net-next v2 2/2] net: dsa: motorcomm: Add devlink info and resources

From: Andrew Lunn

Date: Tue Nov 10 2026 - 08:52:24 EST


> +int
> +yt921x_dsa_devlink_info_get(struct dsa_switch *ds, struct devlink_info_req *req,
> + struct netlink_ext_ack *extack)
> +{
> + struct yt921x_priv *priv = dsa_to_yt921x_priv(ds);
> + int res;
> +
> + if (!priv->info)
> + return -ENODEV;

Can that happen?

Andrew