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=1796359712; b=QlX9j//89Hu9BhsHAJhBlOAPw2sTW1W5jbsB8VlG8cEiGZD1apL9V1/44yyFUUIFkNb0 UEXU/QowCsiElZ0ADSx4GQpABrajegEiIwKpsP/3C0ySV/VP5zbhRnxpkWanl8OmmyVzq nz8OSHwFSqVHYKZusvtP+asCObTxydeWFAeN56HgmIpsTCZr+Ic9gCerNfmoRXD8XHEip 4XLd4klssLdtGw+3q5yXz9jtpfo847w3cy+5IB7W2nrjm95YJe5Hwy/Gq9vMqnYxI/5HD dGmi6meOLskuwsAIbZlkuciOMK/68iYvRQukA9pxvbB+XuV43HGAtaddLJUB11H/oQw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796359712; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=EFUH5eKVi1+b1qJGRuBZA7e99m5BXLVAxjahCIESTLw=; b=yUvIiX0c2gfCOGgtMPLgRkU6AvF1Gsrz64WzAN6WTUMYb7r4vUlPm/0cKM5loul4nKV8 /++rBW/9lnZI1556wOAze4FotF/degKk7pM9T/Sw7/lXFu3v5A+nBQR/lSmTLTuhHQZ4B AyKWxVTcvHq2UwWWyg40cJAtrIwmCkoI7hzaAeSxJHiNpszrTkQwsgx3CeCmJF3JwwC4Y czpDWnMeg2oQjtwj9aSwGrznVgNGku88CroPDPKPflyXUj+YziCMIHQ9SaCEShB1TQ5qM gwAWIadkENFVGeQCNVZqsw/u6ZNo4/gqP1xbUu+P51vX0k8MJDPlsrKNxPf964lYvtA== 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=FbgogqDK; 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 369BA606A322 for ; Fri, 4 Dec 2026 04:48:32 +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=FbgogqDK Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0D341F000C2; Fri, 4 Dec 2026 04:48:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796359712; bh=EFUH5eKVi1+b1qJGRuBZA7e99m5BXLVAxjahCIESTLw=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=FbgogqDKw/trLzVuB/+OWI3/Hxay+P+IebHFAU3l0tYhcs6K0XnyM4fRmnVgsC6Vj IEruqV3Z4tLhu4AoVD228tqya4TdlNPXkYzA/m/70R+Srtfacr//wbUZoQfzIfru1p iDK0WDcPYoUTSOWnUjp5YQ3/lLH0PolNgulbh/Wq5eAHFPw1C09Z709CO3XKgxAKw4 AHld3Tb2k9Ficr//vJViYTf8Q5wudyA4lF5mvIJOt08RX+L3018cZGHROmnQkLMVwu TFiK6mxJbHoBMzudntICHOIMkCTQsVu+N1voxvx8AidNabodnd16haVjb6UX5kWV4H GDNOe+OUO92ig== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v2 11/13] riscv: dts: spacemit: Describe the K3 eSPI controller Reply-To: sashiko-reviews@lists.linux.dev To: "Wang Yang" Cc: devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org In-Reply-To: <20261204042112.2985112-12-yang.wang@deepcomputing.io> References: <20261204042112.2985112-1-yang.wang@deepcomputing.io> <20261204042112.2985112-12-yang.wang@deepcomputing.io> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 04:48:31 +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 3 potential issues to consider: - [Medium] riscv: dts: spacemit: espi0 sets spacemit,pr-mem-base1 to its own MMIO base - [Low] riscv: dts: spacemit: commit message uses revision-delta phrasing - [Low] riscv: dts: spacemit: board-level eSPI flags hardcoded in shared k3.dtsi -- commit f467024ef82df1d6d6bcf1c8b90cb44fb44533de Author: Wang Yang > riscv: dts: spacemit: Describe the K3 eSPI controller > > Describe the controller resources and corrected link properties. > Require explicit MEM1 configuration; retain the BSP value until vendor > register documentation establishes a different interpretation. > > Prepared with OpenAI Codex assistance. > > Signed-off-by: Wang Yang [Severity: Low] Can the commit message be rewritten to stand on its own? This patch adds the espi0 node to k3.dtsi for the first time, so "corrected link properties" reads like revision-changelog wording that belongs below the "---" separator. Similarly, "Require explicit MEM1 configuration" describes a binding and driver policy from earlier patches in the series rather than what this DTS change does. Describing why the K3 eSPI node is added and how its resources are configured would make the permanent commit log clearer. > diff --git a/arch/riscv/boot/dts/spacemit/k3.dtsi b/arch/riscv/boot/dts/s= pacemit/k3.dtsi > index e89d2cc5ca8cc..88a265973d13d 100644 > --- a/arch/riscv/boot/dts/spacemit/k3.dtsi > +++ b/arch/riscv/boot/dts/spacemit/k3.dtsi > @@ -648,6 +648,36 @@ gmac1_axi_setup: stmmac-axi-config { > }; > }; > =20 > + espi0: espi@cac8c000 { > + compatible =3D "spacemit,k3-espi"; > + reg =3D <0x0 0xcac8c000 0x0 0x1000>; > + ranges =3D <0x0 0x0 0x84000000 0x1000>; [ ... ] > + max-frequency =3D <20000000>; > + spacemit,pr-mem-base1 =3D <0xcac8c000>; [Severity: Medium] Should spacemit,pr-mem-base1 point to the controller's own MMIO register base (0xcac8c000)? spacemit_espi_program_window() writes this value directly into ESPI_PR_BASE_ADDR_MEM1, which the binding documents as the second peripheral-channel memory base register. If ESPI_PR_BASE_ADDR_MEM1 configures a second peripheral memory decode window, programming 0xcac8c000 aliases the eSPI controller's own control registers and omits the window from standard DT ranges translation. If the register has different hardware semantics, retaining an unverified BSP value bakes an inaccurate description into the stable Devicetree ABI. > + spacemit,io-mode =3D "single"; > + spacemit,alert-mode =3D "io1"; > + spacemit,alert-type =3D "open-drain"; > + spacemit,watchdog-timeout =3D <0xffff>; > + spacemit,crc-enable; > + spacemit,auto-gating-enable; > + spacemit,peripheral-channel-enable; > + spacemit,vwire-channel-enable; > + spacemit,oob-channel-enable; > + spacemit,flash-channel-enable; [Severity: Low] Should these board-level link and channel properties live in the board DTS rather than k3.dtsi? Because spacemit_espi_parse_dt() reads the six boolean flags with of_property_read_bool(), placing them in the shared SoC file forces boards to inherit them or use /delete-property/ to disable them. In particular, inheriting the vwire, OOB, and flash channel flags causes spacemit_espi_configure_channels() to enable those channels on any EC that advertises them, even though drivers/bus/spacemit-k3-espi.c has no IRQ handler or RX drain path for them. In addition, spacemit,alert-type =3D "open-drain" is ignored when spacemit,alert-mode is "io1", and the five link value properties (max-frequency, io-mode, alert-mode, alert-type, and watchdog-timeout) all duplicate the binding and driver defaults. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204042112.2985= 112-1-yang.wang@deepcomputing.io?part=3D11