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=1796329919; b=4cPyaILe2GjuaOfNMSbIX3arF4foq5ZR1klsEfo1PLbZ+2dF5LMN1/ANreyEwJmFUg/p mSCmgNmctD8WLQur5RdJORe0CleSKzRCfVjsbD3+mPcMtiYI8AHw+S3j3qdZhLj3Z3Q0y LS9+KEddQVbhnS5E4kOkCN1XFy4kuREsWyuo8OmcDGtvymF5LFFOUZJB0giqkHNzY/sox AlWk507q0AYnFhxhu+JKbvuHiHGmJGA2pQ2OCbhoAThKc1MbJreYNnF6oz/iJz6bdUWTi URWmxOl5pawIYhpv08liVHAcWfJaNG68kY+MmnLUbEONv0W5+L+05uoQIZofRy6i6Hw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796329919; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=qbiHhHWB+bLV0n+At3/N8q63TzM1KctCkQ3V4FurI0o=; b=TIZil2e8fiQ56SLgDyFUcQZ1vzcraW5SLLtd9JhB/rSc8mqsgYew0mgg0fkstir3pX4i bnY1O72TZgj+p97DafI3IZvjS8LDJL43AAnsVGa5FzaLf2r++Yqg84/z+YcK5LaoZO7gT goU6rWxYYMWp4G1hZ86dbxfKil/7dTrDXXDkZ0acFgVPifherbHZRfzMdp1lPH2fOnvoK svKng4AkxZbC5Nl45lKktBLjUP1pG3UCrc/tYHJSqiEq1nWEaGhNEzA6kfaJkfnd/dcj0 4xKy+3tHcy0768+p4SvF3Dzm2uQJ6Djfip0+LayBqrxMP/N6GZ1LmYLMX9LEwy/t49Q== 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=mfN6THT1; 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 9F097606A322 for ; Thu, 3 Dec 2026 20:31:59 +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=mfN6THT1 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 210BB1F000CE; Thu, 3 Dec 2026 20:31:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796329919; bh=qbiHhHWB+bLV0n+At3/N8q63TzM1KctCkQ3V4FurI0o=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=mfN6THT1JRoejF3tlhqWkedFAGS+r/vnQQYjmpiO6qUqX4airdsdbQJhrA6Noaxe5 Duu8oHrPyvwTuqhSdcfEmohnSz0a4piVwhJZXLzYA/DGLDzv9S0yOD1CyUX+J9gj2b iaXs5AP1GxCloFrgkrE0mmQzt5RgCtDK8TDZo7P7WKFpSyy8anHFFGxs9CGhzyvHMB 2+X5JogjXLs/ino+8c4kKEM+5UyLDMu5yvIHERHEV+DI3neEmBuwbTlTNeJGUJdhu7 E5Z1NUOz6VuOBcuRujlwVo4EjATpjvdos4cCr5O/oqJdq2A71ONftfKfaUZQ0vUSSq kuus7TMBBSu/A== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v3] leds: rgb: lp5860: Add I2C interface support Reply-To: sashiko-reviews@lists.linux.dev To: "Peter LaDow" Cc: linux-leds@vger.kernel.org, lee@kernel.org In-Reply-To: <20261203-add-i2c-support-for-lp5860-v3-1-eb466df3300a@gmail.com> References: <20261203-add-i2c-support-for-lp5860-v3-1-eb466df3300a@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Thu, 03 Dec 2026 20:31:58 +0000 X-Mailing-List: linux-leds@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: - [Low] leds: lp5860: missing I2C interface and reg contract in DT binding - [Low] leds: lp5860: duplicate core probe setup in lp5860_i2c_probe() -- commit 4d964912338fc686818afe035b061a2a5a66a794 Author: Peter LaDow leds: rgb: lp5860: Add I2C interface support This commit adds an I2C bus front-end driver for the TI LP5860 RGB LED matr= ix controller, mapping its 10-bit register space across four consecutive 7-bit I2C addresses via dummy clients and a custom regmap. > diff --git a/drivers/leds/rgb/leds-lp5860-i2c.c b/drivers/leds/rgb/leds-l= p5860-i2c.c > new file mode 100644 > index 0000000000000..1fd08691d2628 > --- /dev/null > +++ b/drivers/leds/rgb/leds-lp5860-i2c.c [ ... ] > +static int lp5860_i2c_probe(struct i2c_client *client) > +{ > + struct device *dev =3D &client->dev; > + struct i2c_client **clients; > + struct lp5860 *lp5860; > + unsigned int multi_leds; > + int ret; > + > + if ((client->flags & I2C_CLIENT_TEN) || (client->addr & LP5860_I2C_PAGE= _MASK)) > + return dev_err_probe(dev, -EINVAL, > + "Invalid I2C address: must be a 7-bit page-zero base address.\n= "); [Severity: Low] Should Documentation/devicetree/bindings/leds/leds-lp5860.yaml be updated alongside this driver to document I2C usage and the reg address contract? The binding currently includes spi-peripheral-props.yaml unconditionally and only has an SPI example. Since lp5860_i2c_probe() requires a 4-aligned 7-b= it base address whereas sibling ti,lp5812.yaml uses a 5-bit shifted address, t= he I2C reg convention needs to be documented explicitly. [ ... ] > + multi_leds =3D device_get_child_node_count(dev); > + if (!multi_leds) > + return dev_err_probe(dev, -ENODEV, "LEDs are not defined in Device Tre= e!\n"); > + > + if (multi_leds > LP5860_MAX_LED) > + return dev_err_probe(dev, -EINVAL, "Too many LEDs specified.\n"); > + > + lp5860 =3D devm_kzalloc(dev, struct_size(lp5860, leds, multi_leds), GFP= _KERNEL); > + if (!lp5860) > + return -ENOMEM; [Severity: Low] Could the child-node validation, struct lp5860 allocation, mutex setup, and drvdata assignment be consolidated into lp5860_device_init() instead of duplicating them from leds-lp5860-spi.c? Passing the initialized struct regmap * directly into lp5860_device_init(dev, regmap) in leds-lp5860-core.c would keep that setup in one place for both bus front-ends. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-add-i2c-su= pport-for-lp5860-v3-1-eb466df3300a@gmail.com?part=3D1