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=1796396587; b=ekA7WdmgcCtbO/M/5ahu7hjazDwK7wM+NPnh4fczTYooTaG4AVv78ZHHJPNzkNY7jpMh RgFGk4dGYog4zXMt3/h6IJL8MnM+Wy84ofyMyRnwsWTYtdUlvWTX9vELC4DpAvs85ueBP NjtAIJ1D+Egg/AHv7PAYs+H9veQp8ME5dhfbtCvt43n+gFvllGpY0bMSQfENPrgyKYrFG IPewPWl9ZSB7fC4UFNK2xmeK/nq299xfia2SU2g0SoSlrNC7INZF8Ya2sfBZVnyuqQJqw KiXZIlyLt/TbaaR/pJbZ87aRzfFePTS6EMdbqX8MuqxPfMXLYCxze7WXTkOwcmEXs7g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796396587; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=PUbtBKx8dKkVfXz9dkGsBPJZUzv8I6Jdgq+zJaJbRbg=; b=ZnnkeLiPs5KpO7hAwJVJ2gFuacuR1KneFBB3sPTZKOTUWS+0iJN4piw6EUVtOQPmVX0B O7cVEH5vRv4mnFh3Awa72yNjd0NUkx/O0uJMynu7glbRinwct8wX4ftOCPHeclJ6JJKPn pQdySh/VQoOtQ3LrcYiOUI+4GsGOn33mC5n/32FQeKGcsybMWdiK4ronZozQpjzDmVDav VPlp0Yw0q/O3T4k4Y+SErTKDb2XiPJ5PbU2RfEIzUXxyGFVUCDcO00zqTexeGvoAoxWH/ 4Bcrw3MhdSbEpZrFnBhoCYmcIQwVTbA3iF/b9BEVTIdklcdJA/NjFpkQ6RjfA3ImlHw== 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=coqGR7cX; 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 0624E606A322; Fri, 4 Dec 2026 15:03:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=coqGR7cX Received: by smtp.kernel.org (Postfix) with ESMTPSA id 48F711F000C2; Fri, 4 Dec 2026 15:03:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796396586; bh=PUbtBKx8dKkVfXz9dkGsBPJZUzv8I6Jdgq+zJaJbRbg=; h=From:Subject:Reply-To:To:Cc:In-Reply-To:References:Date; b=coqGR7cXK4tY/pPHIbArXCY130dr4y/iEgoVf3ePBwi+yRbJ9WkL57/Vy7YxqJoyK RJmx/cJFfcT6pJCcwBrDlsOZvQtKUyeJFzGCxk76ICbilIQN9LpNXzrcb9t1WKnC0J UA0AJpEH4y1OfY2vAKfMfgLrLqesJDL1kcX7HzlYp8upnJZ1LKEGQ7X2iRWxyn86hP o+CcrZCvbqO+mJ4jdyzcbJBTcmxxAhOooy4ufvDKb8aYMR1OIXq4L7EKQ9XD/Zm3uP 6Mll6garnvvPcA5XF/nn+keFFZ+ocjCLlSivMej8a7F0fphFWQS5vi4dkzdTJzzj9j ra+47Od45XUfg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v4 03/13] pinctrl: berlin: enable module build support Reply-To: sashiko-reviews@lists.linux.dev To: "Jisheng Zhang" Cc: devicetree@vger.kernel.org, linux-clk@vger.kernel.org, linux-gpio@vger.kernel.org, mfd@lists.linux.dev, robh@kernel.org, conor+dt@kernel.org, lee@kernel.org In-Reply-To: <20261204140732.31223-4-jszhang@kernel.org> References: <20261204140732.31223-1-jszhang@kernel.org> <20261204140732.31223-4-jszhang@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 15:03:05 +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] pinctrl: berlin: PINCTRL_BERLIN remains bool and built via obj-y - [Low] pinctrl: berlin: unrelated pinconf changes mixed into module build commit - [Low] pinctrl: berlin: pinctrl patches not split out as requested by maintainer -- commit 3e5d5d3d1e00faf42d4508d236eb2eb377780414 Author: Jisheng Zhang pinctrl: berlin: enable module build support This commit converts berlin_pinctrl_build_state() allocations to devm_* helpers, exports berlin_pinctrl_probe() and berlin_pinctrl_probe_regmap(), and adds module metadata to drivers/pinctrl/berlin/berlin.c. > diff --git a/drivers/pinctrl/berlin/berlin.c b/drivers/pinctrl/berlin/ber= lin.c > index 8a612ce2d1d36..9337de1973af9 100644 > --- a/drivers/pinctrl/berlin/berlin.c > +++ b/drivers/pinctrl/berlin/berlin.c [ ... ] > @@ -326,6 +322,7 @@ int berlin_pinctrl_probe_regmap(struct platform_devic= e *pdev, > =20 > return 0; > } > +EXPORT_SYMBOL_GPL(berlin_pinctrl_probe_regmap); [Severity: Low] As reported by Linus Walleij on v2 [1], should the pinctrl patches be split out and sent separately for the pinctrl tree? The core Berlin pinctrl patches have no build-time dependencies on the rest of the series, and commit "pinctrl: berlin: add Synaptics SL2610 pin controller support" only references MFD_SL2610_SYSCON in Kconfig. > int berlin_pinctrl_probe(struct platform_device *pdev, > const struct berlin_pinctrl_desc *desc) > @@ -340,3 +337,7 @@ int berlin_pinctrl_probe(struct platform_device *pdev, > =20 > return berlin_pinctrl_probe_regmap(pdev, desc, regmap); > } > +EXPORT_SYMBOL_GPL(berlin_pinctrl_probe); > + > +MODULE_LICENSE("GPL"); > +MODULE_DESCRIPTION("pinctrl library for Synaptics SoCs"); [Severity: Medium] Can berlin.c actually be built as a loadable module with these changes? PINCTRL_BERLIN in drivers/pinctrl/berlin/Kconfig is still bool, so selecting it from a modular SoC driver such as PINCTRL_SL2610 forces berlin.o into vmlinux instead of building berlin.ko. In addition, drivers/pinctrl/berlin/Makefile still uses obj-y +=3D berlin.o instead of obj-$(CONFIG_PINCTRL_BERLIN) +=3D berlin.o. When PINCTRL_BERLIN= is tristate, drivers/pinctrl/Makefile descends via obj-m and drops obj-y, so berlin.ko is never built and modular SoC drivers fail to link. > diff --git a/drivers/pinctrl/berlin/berlin.h b/drivers/pinctrl/berlin/ber= lin.h > index 7e7096842eda0..8ff70d682593a 100644 > --- a/drivers/pinctrl/berlin/berlin.h > +++ b/drivers/pinctrl/berlin/berlin.h > @@ -20,6 +20,8 @@ struct berlin_desc_group { > u16 offset; > u8 bit_width; > u8 lsb; > + u16 conf_offset; > + u8 conf_bits; > struct berlin_desc_function *functions; > }; > =20 > @@ -28,6 +30,19 @@ struct berlin_pinctrl_desc { > unsigned ngroups; > }; > =20 > +#define BERLIN_PINCTRLCONF_GROUP(_name, _offset, _width, _lsb, \ > + _conf_offset, _conf_bits, ...) \ > + { \ > + .name =3D _name, \ > + .offset =3D _offset, \ > + .bit_width =3D _width, \ > + .lsb =3D _lsb, \ > + .conf_offset =3D _conf_offset, \ > + .conf_bits =3D _conf_bits, \ > + .functions =3D (struct berlin_desc_function[]){ \ > + __VA_ARGS__, { } }, \ > + } > + > #define BERLIN_PINCTRL_GROUP(_name, _offset, _width, _lsb, ...) \ > { \ > .name =3D _name, \ [Severity: Low] Do these pinconf additions belong in commit "pinctrl: berlin: add optional pinconf support" instead? conf_offset, conf_bits, and BERLIN_PINCTRLCONF_GROUP are unrelated to module build support and are not mentioned in the commit message. [1] https://lore.kernel.org/r/CAD++jL=3DTE0pF60vR-Y=3D=3Dz2LDfs4n2rvfZ5FMOu= EoFsD2PwMXhw@mail.gmail.com --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204140732.3122= 3-1-jszhang@kernel.org?part=3D3