Re: [PATCH RESEND] mfd: adp5520: Release the subdevices when the client is removed
From: Krzysztof Kozlowski
Date: Tue Nov 03 2026 - 06:16:35 EST
On Tue, 03 Nov 2026 09:46:44 +0000, Wentao Liang wrote:
> adp5520_probe() registers up to four platform devices (keys, GPIO, LED
> and backlight) as children of the I2C client, but the driver no longer
> has a remove callback. The callback was dropped when the driver was
> made explicitly non-modular, on the assumption that a built-in driver is
> never removed. That assumption does not hold when the I2C adapter the
> client sits on goes away: the driver core still calls the driver's
> remove callback, and without one the child platform devices are never
> unregistered. They stay registered, keep a reference on the I2C client
> device and leak the memory they were allocated from.
>
> adp5520_remove_subdevs() already exists and is used by the probe error
> path, but it is not reachable on the removal path. Add a remove
> callback that unregisters the subdevices and drops the interrupt, in the
> same order as the probe error path.
>
> Fixes: 6b09274bacc7 ("mfd: adp5520: Make it explicitly non-modular")
> Cc: stable@xxxxxxxxxxxxxxx
> Assisted-by: DeepSeek-V4.1-Flash and OpenAI Codex
> Signed-off-by: Wentao Liang <vulab@xxxxxxxxxxx>
> ---
> drivers/mfd/adp5520.c | 11 +++++++++++
> 1 file changed, 11 insertions(+)
>
Multiple things here:
1. Your team ignored completely previous feedback. Multiple times.
2. You use multiple identities with this email address, thus I doubt that we
speak with an actual person.
3. Your bot does not even bother running checkpatch, right?
4. Nothing of this was reproduced nor tested.
5. Finally, the same feedback:
You sent multiple independent patches, to multiple independent
subsystems. The amount of these patches clearly suggest this was
AI generated and most likely not tested.
More importantly, you sent all this work without properly organizing
relevant patches into patchsets. This makes reviewing difficult
and might cause multiple reviewers to address the same issue.
Replying to the entire set is impossible and requires handling each
patch independently, instead of applying or discarding the set.
Maintainers also won't see the bigger picture of your work. Quite
worrying.
This is on the verge of hostile patch: bomb us with so many
contributions, we won't be able to handle them in efficient manner,
like responding ONCE to ask you to slow down. Considering all this
is untested and LLM generated, I have even more doubts whether this
should be considered for review.
Please read kernel documentation BEFORE posting more work. It will
explain you how to identify subsystems, how to organize your work per
subsystem (so a patchset grouping multiple patches with a short cover
letter), how to document the issue discovery method and what was
or was not tested.
Best regards,
Krzysztof