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=1796395921; b=5fkeuiutKTLMuecUK1Yy1R8fQFW7+KjkNCJoBSYCp4iYqJAk82AA27C4yx4VBNJ0plUZ y4cacUrqco+4HkwXref7xSecS7DkalxwZclESABzP8vg9433Ak14Gsnw8UTdgSSfhpVgj sccd9q1cxyYnwsFF5Cuq6QfaElrD3SQysWyRWYGMaxU8aWs5uZi6fxFqHJy76pwp1LYGP yFbI9KEPFZYhcqmvyUU0ekKw6ET2q6XUYnuMJfKcRWRF/JlmQnAyGnBhcu6jgpcK8Ts77 qXRhK+Sz1NVaW3rK3eG1UrXVDWESzn4yQrN0eyYJKj6pDFUeEHZXKehH5QebS73W2gg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796395921; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=2MXZnkEwcjpN92vV1ZXrsxQzRlxXj/02oLsVqLH2fZw=; b=Rq84k/tywLbBe8b19CpGvK06LsAVQMF1ixtV3EQAm6cemjQDO8ttO9UMPhW3eL0svIB/ kn4EyXB/iMHmZjqWbXz0k4FySXe6B7IvHTOJtoVhaL1KmjlUSUJNx+5+WkJkzt8pmo44I AZHNtsZQM373CyIUoVgM8q0/RzJKDVu57uP0QWSQwmZ2J+lRtth20SM9igEDfmTIuOW7J 1+VgKZKEPd1UcXOQqYYk1bGLTW/kWd6OZ3sAI/L5+hg9dsPoap5u9V+OJtFY35fwGEWQt 8CDTayog12YgGk1P2Rod4TsFdqqWuZqPD/k9eSR5KbD1mOXg8OIhKOPgsDLN32Y2hnQ== 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=IADOYhEq; 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 C04A1606A32F; Fri, 4 Dec 2026 14:52:01 +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=IADOYhEq Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16F171F000CE; Fri, 4 Dec 2026 14:52:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796395921; bh=2MXZnkEwcjpN92vV1ZXrsxQzRlxXj/02oLsVqLH2fZw=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=IADOYhEqwT6FzhZe6VXHDGMDVikRUgnIV9lWsWiFytNxToXDhK4vSSPCphmN1p63A 4cpMdbXDO+OAemH7ZIDU+NZ7e3rb68ogUgXBV7XMciaHsR734e7PETeMZfVgCZ9E3m ZZWwTSn4mIu8mOPRTECBNoLGYhbgQgm6+2AL142WNXHW/jyLWyvqYHgUWWw2FVQqGO kDtlpaf3g6qZ3nLGYiLu9PkjZ4kveUYhdyVJxnyQs6WoOp1BwVG1HPZbpCxeIp+RlA 0ZfwB1MgHxj+X7Kzy+hoxMtyXpeFXhKWqpN3wLn0hWqU/Ft58LWzyR/43XLWr2NBDs MW+AGVCU0s5dQ== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH 2/2] clk: mediatek: mt8196: Add clocks needed for Ethernet Reply-To: sashiko-reviews@lists.linux.dev To: "Arnaud Ferraris" Cc: linux-clk@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261203-mt8196-net-clocks-v1-2-c23567b55dff@collabora.com> References: <20261203-mt8196-net-clocks-v1-0-c23567b55dff@collabora.com> <20261203-mt8196-net-clocks-v1-2-c23567b55dff@collabora.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 14:52:00 +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: - [Medium] clk: mediatek: mt8196 gmac_125m uses 1/5 divider net1pll_d5 instead of 1/10 - [Low] clk: mediatek: duplicate SGMII parent arrays in clk-mt8196-topckgen.c -- commit a6333bb8a54b98bb2785eda186ab22038a6646f2 Author: Arnaud Ferraris clk: mediatek: mt8196: Add clocks needed for Ethernet This commit adds the fixed-factor dividers and topckgen/vlpckgen muxes needed for the MT8196 Ethernet MAC and HSGMII PHYs. > diff --git a/drivers/clk/mediatek/clk-mt8196-topckgen.c b/drivers/clk/med= iatek/clk-mt8196-topckgen.c > index 6ace11ef6b694..90d03bdd426b7 100644 > --- a/drivers/clk/mediatek/clk-mt8196-topckgen.c > +++ b/drivers/clk/mediatek/clk-mt8196-topckgen.c [ ... ] > @@ -612,6 +630,48 @@ static const char * const sflash_parents[] =3D { > "univpll_d6_d8" > }; > =20 > +static const char * const sgmii0_ref_325m_parents[] =3D { > + "clk26m", > + "sgmiipll" > +}; > + > +static const char * const sgmii0_reg_parents[] =3D { > + "clk26m", > + "mainpll_d7_d4" > +}; > + > +static const char * const sgmii1_ref_325m_parents[] =3D { > + "clk26m", > + "sgmiipll" > +}; > + > +static const char * const sgmii1_reg_parents[] =3D { > + "clk26m", > + "mainpll_d7_d4" > +}; [Severity: Low] This isn't a bug, but sgmii1_ref_325m_parents and sgmii1_reg_parents duplicate the sgmii0 arrays verbatim. Could these share sgmii_ref_325m_parents and sgmii_reg_parents to match spu_parents and tl_parents in this driver? > + > +static const char * const gmac_312p5m_parents[] =3D { > + "clk26m", > + "net1pll_d4" > +}; > + > +static const char * const gmac_125m_parents[] =3D { > + "clk26m", > + "net1pll_d5" > +}; > + > +static const char * const gmac_rmii_parents[] =3D { > + "clk26m", > + "net1pll_d5_d5" > +}; [Severity: Medium] Should gmac_125m use a 1/10 divider (such as net1pll_d5_d2) instead of net1pll_d5? gmac_312p5m uses net1pll_d4 (1/4) and gmac_rmii uses net1pll_d5_d5 (1/25), which both require net1pll to run at 1250 MHz. At 1250 MHz, net1pll_d5 (1/5) produces 250 MHz rather than 125 MHz. Because CLK_TOP_GMAC_125M uses mtk_clk_mux_determine_rate(), which calls clk_mux_determine_rate_flags() with flags =3D 0, only parents at or below the requested rate are considered. A 125 MHz clk_set_rate() call on gmac_125m will therefore reject net1pll_d5 and fall back to clk26m. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-mt8196-net= -clocks-v1-0-c23567b55dff@collabora.com?part=3D2