On 11/12/26 00:57, David Yang wrote:
> On Thu, Nov 5, 2026 at 11:14 AM Kyle Switch <kyle…@motor-comm.com> 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?
Sorry for late response. No particular reason — I'll fold this change into the same patch in the next version, so each commit stands on its own.