Re: [PATCH v24 04/12] mfd: psci-mfd: Add PSCI MFD driver for cpuidle-psci-domain cell
[email protected] Mon, 03 Aug 2026 10:00:22 +0000
| Newsgroups | dev.linux.lists.mfd,org.kernel.vger.linux-devicetree |
|---|---|
| Message-ID | <[email protected]> |
Thank you for your contribution! Sashiko AI review found 2 potential issue(= s) to consider: - [Medium] The new `psci-mfd` driver lacks a `.remove` callback and does no= t set `.suppress_bind_attrs =3D true`, allowing manual unbinding via sysfs = which leads to resource leaks. - [Low] The newly introduced MFD driver, its file, and its structures inclu= de the string 'mfd' in their names, violating subsystem conventions. -- --- Patch [4]: [PATCH v24 04/12] mfd: psci-mfd: Add PSCI MFD driver for cpu= idle-psci-domain cell --- commit 26907aee3ff3e0a5d7112a9be25ebbebb10e94c7 Author: Shivendra Pratap <[email protected]> mfd: psci-mfd: Add PSCI MFD driver for cpuidle-psci-domain cell This commit introduces a new PSCI MFD driver to manage multiple consumers of the PSCI device node. It registers the cpuidle-psci-domain as a child cell and updates the cpuidle driver to probe as an MFD child. > diff --git a/drivers/mfd/psci-mfd.c b/drivers/mfd/psci-mfd.c > new file mode 100644 > index 0000000000000..7affd6bb09dd8 > --- /dev/null > +++ b/drivers/mfd/psci-mfd.c [ ... ] > +static struct platform_driver psci_mfd_driver =3D { > + .probe =3D psci_mfd_probe, > + .driver =3D { > + .name =3D "psci-mfd", [Severity: Low] This isn't a bug, but does naming the driver and struct with the "mfd" string violate the MFD subsystem guidelines? The MFD guidelines state not to hard-code implementation details in driver, struct, or device names, and to specifically avoid including the string "mfd" or the driver's own filename in names. [Severity: Medium] Since there is no .remove callback provided in psci_mfd_driver, does this allow manual sysfs unbinding that could leak resources? If a user unbinds the driver via sysfs, devres will destroy the child devices. Because the child driver (psci-cpuidle-domain) lacks proper cleanup for non-devm resources like generic PM domains, those resources might leak or leave dangling pointers on this administrative path. Should .suppress_bind_attrs =3D true be set in the driver struct to prevent unsupported sysfs unbinding? > + .of_match_table =3D psci_mfd_of_match, > + }, > +}; --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20260803-arm-psci-s= [email protected]?part=3D4