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=1796371881; b=QIaWopyj72dT1ps2Lwo2lmdhjIBohn+6EKZ57aFfeum1YNHzT5znihkX/Gdd05DDQ8vf 9xEvs6IDWw/v290rIhN8KNCv9IiwcsfaPG4QFKDOzRtG/KY4gXuje1HUbJEY6ftEyy9Cn mmmrvpoPwkF8UXu90dVDogBjKEgAmzRBjqSl23gIDKMEE3X92iFyqIb7qghYCb8d2rG/s VJSRCairfMTSGwbYfe/itEulDVSLKlEDajqc+WeZuwKqp3buvy7Yrmpvxg43MIVddZ1kd A+WI4p6ZMOsm1TRk26e4woe+utXSW/jaIbSSxt8vdSrFkxI2+c1zhZb56v2EY6QmoDQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796371881; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=p4fhY3FcoFh3Mjd56nUjwynMLxoetxVamKPWwL4Fo3E=; b=L62kDvKSTIaY3E8sNCvOjSZoI+xyIGMoZvF/tVbM1pCWOO/ft3THKvlREPct7lAfPV+3 e1y2GlEA1cy/oENqTLCyV9jC7QafkETrggckoI8a28YgaUmFJQrdWydwP3CACD4uq2LP2 D1mj0zXBk5vc229x5qYLpji3SsTVBf+5iPdFNHloB2vGvkoY7c6ROZjVthEsqWsUP1XwM Jn+a5LtFPMDLt6oM1KDSWPc1QVa9TI2j7lmk8DbsrwbCGzzEActnobBOONq8+baYLrQl8 wLsg6K41F+2WxqT9Afvpt+WdJydUJrN7Kvl25h4f17vVKKaZRzsXgQ6/Wak2WoUVvjA== 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=j9icD9r4; 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 92795606A322 for ; Fri, 4 Dec 2026 08:11:21 +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=j9icD9r4 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0711E1F000C2; Fri, 4 Dec 2026 08:11:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796371881; bh=p4fhY3FcoFh3Mjd56nUjwynMLxoetxVamKPWwL4Fo3E=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=j9icD9r42aPJ7PZnJ6oP6P37Atht0lUF0Idbobo/qGsFdBHBhgYebaFQyosk38IMg XV/8aVPYNZJzaYb0s6HWEq7MwavVYOKBM0Eb9P2HCRvl3UNNBGEyoCgMDgCFxjKb6u Hfg/sI4sUcxrYAMJa1VlrGDr1DSb7Z8QMwI0dsU1kDKDNpgHhPGG4NlWCr2XYGgar3 K4/9HFUYXv1KHIX/vw4JH0fDCkLHsxqEhsDrlEXQLj/7eJIKfMJjXSTomD7f6hkfmX hqT5xpv1TGNt1Sa2Et+9bXk+wmUa4O4CeVdcv93xaO6U8KXN7hWIHYY8CAVs3cVGH1 S7GtmwehVVN5Q== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH] arm64: dts: ti: k3-am62l-main: Fix sdhci0 clock parent and DDR52/HS200 properties Reply-To: sashiko-reviews@lists.linux.dev To: "Frank Obergfell" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261204075104.335817-1-frank.obergfell@bytesatwork.ch> References: <20261204075104.335817-1-frank.obergfell@bytesatwork.ch> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 08:11:20 +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] arm64: dts: ti: unverified DDR52 mode enabled on ti,am62-sdhci sdhci0 - [Medium] arm64: dts: ti: sdhci0 clock reparenting risks non-glitch-free mux switch -- commit c1764e321366ef73142d6ff4b2003c2fdc9b94e3 Author: Frank Obergfell arm64: dts: ti: k3-am62l-main: Fix sdhci0 clock parent and DDR52/HS200 prop= erties This commit assigns <&scmi_clk 124> as the parent of sdhci0's clk_xin clock and adds DDR52/HS200 capability flags and TAP delay properties to sdhci0 in k3-am62l-main.dtsi. > diff --git a/arch/arm64/boot/dts/ti/k3-am62l-main.dtsi b/arch/arm64/boot/= dts/ti/k3-am62l-main.dtsi > index 80615ca1e01a2..cb894b571dd51 100644 > --- a/arch/arm64/boot/dts/ti/k3-am62l-main.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-am62l-main.dtsi > @@ -286,11 +286,16 @@ sdhci0: mmc@fa10000 { > clocks =3D <&scmi_clk 122>, <&scmi_clk 125>; > clock-names =3D "clk_ahb", "clk_xin"; > assigned-clocks =3D <&scmi_clk 125>; > + assigned-clock-parents =3D <&scmi_clk 124>; [Severity: Medium] Is reparenting sdhci0's clk_xin via assigned-clock-parents glitch-free on AM62L? platform_probe() calls of_clk_set_defaults() before sdhci_am654_probe(), and clk-scmi does not set CLK_SET_PARENT_GATE, so Linux requests SCMI CLOCK_PARENT_SET without gating clk_xin. Since k3-am62l3-evm.dts marks sdhci0 bootph-all, early boot can leave the clock running. On sibling AM62-family SoCs, assigned-clock-parents was removed from sdhci0 because the MMC clock mux is not glitch-free, as in commit 3a71cdfec944 ("arm64: dts: ti: k3-am62-main: Set eMMC clock parent to default") and the matching AM62A/AM62P commits. If AM62L shares that mux and TF-A does not quiesce clk_xin during CLOCK_PARENT_SET, reparenting can glitch the eMMC clock and cause lockups or I/O errors. The commit message also omits what scmi_clk 124 and the default parent of scmi_clk 125 are, and whether TF-A switches them safely. > bus-width =3D <8>; > + mmc-ddr-1_8v; > + mmc-hs200-1_8v; > ti,clkbuf-sel =3D <0x7>; > ti,otap-del-sel-legacy =3D <0x0>; > ti,otap-del-sel-mmc-hs =3D <0x0>; > + ti,otap-del-sel-ddr52 =3D <0x5>; > ti,otap-del-sel-hs200 =3D <0x6>; > + ti,itap-del-sel-ddr52 =3D <0x2>; [Severity: Medium] Does AM62L's ti,am62-sdhci controller support eMMC DDR52 mode with mmc-ddr-1_8v and these DDR52 TAP delays? No other ti,am62-sdhci node enables DDR52: AM62A omits it, and on AM62 commit 265f70af805f ("arm64: dts: ti: k3-am62-main: Remove eMMC High Speed DDR support") removed mmc-ddr-1_8v because High Speed DDR is unsupported on that controller. Once both mmc-ddr-1_8v and ti,otap-del-sel-ddr52 are present, sdhci_am654_get_otap_delay() keeps MMC_CAP_1_8V_DDR with no driver guard, so the MMC core can select DDR52 on DDR52-only eMMC parts or HS200 fallback, risking initialization failures or data corruption. Could the commit message cite the AM62L datasheet confirming DDR52 support and the 0x5/0x2 TAP values, and should the DDR52/HS200 enablement be split from the clock-parent timeout fix? --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204075104.3358= 17-1-frank.obergfell@bytesatwork.ch?part=3D1