From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796495382; b=XPIaSfLuI7QqfeTDpcDYxQv9v3ZNrGD5mccogCrfd5ayZ3Y3G8u9/idJng9K98ADvrqm A2MWxSDSQFQwXW5raNNYO3iJbUeIq5h4EVQSjqpWLpFWumx2iNTTIr7FwvgThF5a5IMbh plJdH4ib7BNr+IOX1bh1KfH+piyB6c5gTrZzA28HwS+RUrOM2mfIRrAt3ozNfhcQo4U10 oRn0dcPU9JI6Zmg0+rlB3KEJyHbBjm8zUotteHD8FO5/aBSsmcYi4EXxqkfUnzD91SUU4 iancEEyKrwbVAL1Yzs86aRtbtTVqSmCtOz2uOEZOoXtfSPxzmcXpRRw0DAnn+Niq+aQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796495382; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=0I/M1o3snPL2DnfnhUt3+eyDlRziMoGNoqu5KhIIMQU=; b=5YzkOB/YTawB19GQxbm8B+wwputqcDGZYvX8qVnQJ+6l/wrZ0we3G+qmhOHOvnw+j/6C HryxfM/A1hBgSAEbki0gY/TwK0a2ltJRM4dYtgUBWReVg4BeFOcZqOaDgBRS14DAjQQBS JcZH1Dq/b0+05vC8lO7jjzMiEoyruTczpgfGRMGRGGMZrJDCwIDfb5tSDyEHQqkySzG2A rQSq2Hl0LglLN21WSvAJy4A+T9yjxEpwM/dKphyH+6HntgvM3NkpslemUl5ovMch0xcpU 1Hb0ZsSQu3SBcSNz8mySmR+wwRRnDTZA4Ct/q1eUfUHMze8menOVKUHavJeHwgUyRuQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=I7edMdpc; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6B639606A31F for ; Sat, 5 Dec 2026 18:29:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=I7edMdpc Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1D4D41F0092B; Sat, 5 Dec 2026 18:29:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796495382; bh=0I/M1o3snPL2DnfnhUt3+eyDlRziMoGNoqu5KhIIMQU=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=I7edMdpchkdHW0xBANJCPWWSUwWtLiWMF9qGBhksjBBTfJC52pXQ5nt8rcpiDwPQz D1bZm/Sh8S/k/gRE9xoOb9ews5RMuGZnv/Aj5U6KT9TNCMdrob9/Bk2oa0xtZsKV5E 7Jb/JVU/tLGezQ6dpmZ8Wl4ojo0OxxC8oWtKhjh/2bOzoPTZ9k1NAnJb+ze3LrWYq3 ABLp64P2uhgC8CHyLStlFzX7jHXifs2msjJ2FLUwybBuDlKwJMPwd1afh0ZzMuzsxa mTjxiYfvufITPTeAtbl7E7ERBL+38BWS79Elvk/rK8NvNKKiKIXgKpHtIcr/4OPvNN vsVrl4FLwqcEQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [RFC PATCH net-next 2/6] net: dsa: realtek: add new mmio interface for drivers Reply-To: sashiko-reviews@lists.linux.dev To: "Rustam Adilov" , devicetree@vger.kernel.org Cc: robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261204182553.33952-3-adilov@disroot.org> References: <20261204182553.33952-1-adilov@disroot.org> <20261204182553.33952-3-adilov@disroot.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Sat, 05 Dec 2026 18:29:41 +0000 X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list Thank you for your contribution! Sashiko AI review found 2 potential issues to consider: - [High] net: dsa: realtek: typo ev_err in rtl83xx_probe() breaks compilation - [Medium] net: dsa: realtek: syscon_node_to_regmap() conflicts with reset_ctl -- commit a99121781fa35662391557be96c8afc97592c136 Author: Rustam Adilov net: dsa: realtek: add new mmio interface for drivers This commit adds a platform driver interface for MMIO-connected Realtek switches using syscon to obtain the regmap, and updates rtl83xx_probe() to support syscon-backed regmaps. > diff --git a/drivers/net/dsa/realtek/rtl83xx.c b/drivers/net/dsa/realtek/= rtl83xx.c > index ad42c05d0a88d..f8b8d16003a93 100644 > --- a/drivers/net/dsa/realtek/rtl83xx.c > +++ b/drivers/net/dsa/realtek/rtl83xx.c [ ... ] > @@ -189,20 +188,29 @@ rtl83xx_probe(struct device *dev, > if (ret) > return ERR_PTR(ret); > =20 > - rc.lock_arg =3D priv; > - priv->map =3D devm_regmap_init(dev, NULL, priv, &rc); > - if (IS_ERR(priv->map)) { > - ret =3D PTR_ERR(priv->map); > - dev_err(dev, "regmap init failed: %d\n", ret); > - return ERR_PTR(ret); > - } > + if (interface_info->syscon) { > + priv->map =3D syscon_node_to_regmap(dev->of_node); > + if (IS_ERR(priv->map)) > + return dev_err_cast_probe(dev, priv->map, > + "regmap init failed\n"); [Severity: Medium] Can this syscon_node_to_regmap() call conflict with priv->reset_ctl later in rtl83xx_probe()? When a syscon-compatible MMIO switch DT node defines a resets property, syscon_node_to_regmap() -> of_syscon_register() acquires the reset line via of_reset_control_get_optional_exclusive() and keeps it held. Later in rtl83xx_probe(), devm_reset_control_get_optional() requests the same exclusive reset control again, which triggers WARN_ON(!rstc->shared || !shared) in __reset_control_get_internal() and fails probe with -EBUSY. of_syscon_register() also deasserts the reset immediately, which happens before rtl83xx_probe() enables var->supplies. > + } else { > + rc.reg_read =3D interface_info->reg_read; > + rc.reg_write =3D interface_info->reg_write; > + rc.lock_arg =3D priv; > + priv->map =3D devm_regmap_init(dev, NULL, priv, &rc); > + if (IS_ERR(priv->map)) { > + ret =3D PTR_ERR(priv->map); > + ev_err(dev, "regmap init failed: %d\n", ret); > + return ERR_PTR(ret); > + } [Severity: High] Typo: ev_err() should be dev_err(). This breaks compilation whenever CONFIG_NET_DSA_REALTEK is enabled. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204182553.3395= 2-1-adilov@disroot.org?part=3D2