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=1796345305; b=CVzehCfUPBX+lcCvH5kACmqCQEFhgiW4V9JX1QtYKWHNp0tEk0Zl6n0xwNVcmxgTqyMZ fT+jcct0/jwPC5Y6YKfVd1gJKUg+/nxg/UmV7jI3o5w4t9c45LlGmF+r/otMRbMg/fzaP 1XqUOrmJxo0G0lRsj3JjEx8a2VNRhpdeuYq1z2UpngXIt7c+N5JXVnUC39hi6Z/mMezil 4HejxXRKXtOPd8e0AXiW10YrRsSb/ossb+XA7q8d5XuZpN4wlZ0pQ8yw2gUIEsbPjhhBy HjLxOtXanIh6zbZHPreAgZjrlboXpiysUXWtnXdCaMw2gc8Mcuz1NbfS+5tOU19WRew== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796345305; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=HSZLZPPSoXVx4KilVR+YmdnPXUpQ6ZC3kr5AiNsN/ao=; b=Rtrtd41zg4GDG72zZO0KmSlg8i1c7oLJ8tUHzlyg+1+mqWBYFJ6NSKa7pOVc9vpWRaUl GgcfB/TtWLlmzMgdExovTQ9hLw986MJB0i1mHmh0g4kRjkDuW/PQ85IHlqOohmflYrGyX xR+GRfsCX1eCPJ8CiHyF202YU2pvgwmhsBUxEI9/9j+N4DHiViyeNJLjKmaUp1UFSs1o7 nQ+Y9ztnPXx5jT3v0O5TfYNhdNI7XfZak1AS18NMe7pLgbIeBnEdeE62ZCP6Jp/QabPzI NPkhaVphaesTHeEGvkUTEYBdop2ffJ7GCCZUnTLc3X2/CMBMxMNMD6+hT3GkqXYLlIw== 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=oDNP11SS; 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 D88B4606A322; Fri, 4 Dec 2026 00:48:25 +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=oDNP11SS Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2832F1F000C2; Fri, 4 Dec 2026 00:48:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796345305; bh=HSZLZPPSoXVx4KilVR+YmdnPXUpQ6ZC3kr5AiNsN/ao=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=oDNP11SSAHfBqHBtXRhjcHG1Uubt+13Dt11k8FxAz/qIcxp/N4T9BhiLOPyI0jrnK bW7akvHrxwqvCtN/Btuem11dIsqGYDIWupb9/srSukDSGW0+BdogNgOgRUa8yaWRQS g04sgvwxzfkVX8xaW9FOZynbNZZG4XpSmCFVsOpmU4JrN5HyXYGhhPpaoUubHQp4ZR WF8KSzlYN2k4pjBZktX9j9hUWzZHZbObGQbDQfj5OPprHo+dPbvzdQPyhCRKlPpeOU 484nddyhT9B/g3gP96md1tITiB9PDbFARW/4goXqMs+436nGj1js+HDmePpl9dSnpH yQQNoLPMDzT/g== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v4 2/3] leds: rgb: lp5860: Consolidate common probe setup in lp5860_device_init() Reply-To: sashiko-reviews@lists.linux.dev To: "Peter LaDow" Cc: linux-leds@vger.kernel.org, devicetree@vger.kernel.org, robh@kernel.org, conor+dt@kernel.org, lee@kernel.org In-Reply-To: <20261203-add-i2c-support-for-lp5860-v4-2-dd84962336b1@gmail.com> References: <20261203-add-i2c-support-for-lp5860-v4-0-dd84962336b1@gmail.com> <20261203-add-i2c-support-for-lp5860-v4-2-dd84962336b1@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 00:48:24 +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 1 potential issue to consider: - [Low] leds: lp5860: redundant undocumented spi_setup() call in lp5860_probe() -- commit 28b32b8370a90029a12f16f94635e9e60d510abd Author: Peter LaDow leds: rgb: lp5860: Consolidate common probe setup in lp5860_device_init() This commit moves child-node validation, struct lp5860 allocation, mutex initialization, and driver data setup from the SPI probe function into lp5860_device_init() in preparation for I2C support. > diff --git a/drivers/leds/rgb/leds-lp5860-spi.c b/drivers/leds/rgb/leds-l= p5860-spi.c > index 6bf6a625c28af..94b645556c32d 100644 > --- a/drivers/leds/rgb/leds-lp5860-spi.c > +++ b/drivers/leds/rgb/leds-lp5860-spi.c [ ... ] > @@ -36,40 +34,19 @@ static const struct regmap_config lp5860_regmap_confi= g =3D { > static int lp5860_probe(struct spi_device *spi) > { > struct device *dev =3D &spi->dev; > - struct lp5860 *lp5860; > - unsigned int multi_leds; > + struct regmap *regmap; > int ret; > =20 [ ... ] > - ret =3D devm_mutex_init(dev, &lp5860->lock); > + ret =3D spi_setup(spi); > if (ret) > - return ret; > + return dev_err_probe(dev, ret, "Failed to setup SPI.\n"); [Severity: Low] Is this spi_setup() call needed in lp5860_probe()? The SPI core already calls __spi_setup() in __spi_add_device() before binding the driver, and lp5860_probe() does not modify spi->mode, spi->bits_per_word, or spi->max_speed_hz. Calling spi_setup() again just repeats controller setup on every probe. The commit message also does not mention or justify this change. Unless specific SPI parameters need to be configured here, can this call be dropped? --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261203-add-i2c-su= pport-for-lp5860-v4-0-dd84962336b1@gmail.com?part=3D2