Re: [PATCH net-next v17 5/5] net: dsa: motorcomm: Add support for Motorcomm YT922x

From: David Yang

Date: Wed Nov 11 2026 - 12:00:21 EST


On Thu, Nov 5, 2026 at 11:14 AM Kyle Switch <kyle.switch@xxxxxxxxxxxxxx> wrote:
> @@ -2608,15 +3104,13 @@ static int yt92xx_register_switch(struct dsa_switch *ds)
> mutex_lock(&priv->reg_lock);
> res = yt921x_reg_read(priv, YT921X_CHIP_ID, &chipid);
> mutex_unlock(&priv->reg_lock);
> - if (res) {
> - dev_err(dev, "Unexpected chipid 0x%x\n", chipid);
> + if (res)
> return res;
> - }
>
> major = FIELD_GET(YT921X_CHIP_ID_MAJOR, chipid);
> series = yt92xx_series_lookup(major);
> if (!series) {
> - dev_err(dev, "Undefined series info for the corresponding major\n");
> + dev_err(dev, "Chip ID: 0x%x, and Unknown major.\n", chipid);
> return -ENODEV;
> }
> priv->series = series;

You are fixing your own code in the same series. Is there any
particular reason for this?