[PATCH v2 0/6] firmware: raspberrypi: Style cleanups and fix child device lifetime

Florian Fainelli florian.fainelli at broadcom.com
Fri Nov 13 19:21:07 PST 2026



On 11/7/2026 10:21 AM, Sander Speetjens wrote:
> This series does minor style cleanups in the Raspberry Pi firmware
> driver and fixes the lifetime handling of the hwmon and clock child
> devices.
> 
> The first five patches address checkpatch warnings (missing blank lines
> after declarations, incorrect indentation, unnecessary braces, and
> undocumented memory barriers).
> 
> The final patch moves the hwmon and clock platform device pointers from
> globals into struct rpi_firmware.  This pairs their lifetime with the
> parent device and prevents leaks or incorrect unregistration if the
> driver is probed more than once.  It also checks the return value of
> platform_device_register_data() so that an error pointer is never
> stored.  Registration failures are not propagated because the child
> devices are optional.
> 
> ---
> Changes in v2:
> - Move platform device pointers to rpi firmware struct
> - Link to v1: https://lore.kernel.org/r/20261107-fix-raspberrypi-firmware-v1-0-707362c710cd@gmail.com
> 
> ---
> Sander Speetjens (6):
>        firmware: raspberrypi: Add blank line after declaration in response_callback
>        firmware: raspberrypi: Fix indentation of return statement
>        firmware: raspberrypi: Add blank line after declaration in probe error path
>        firmware: raspberrypi: Remove unnecessary braces in transaction helper
>        firmware: raspberrypi: Document memory barriers in property list path
>        firmware: raspberrypi: Store child devices in struct rpi_firmware
> 
>   drivers/firmware/raspberrypi.c | 61 ++++++++++++++++++++++++++----------------
>   1 file changed, 38 insertions(+), 23 deletions(-)
> ---
> base-commit: 6628e7d4c6b25c8d18f1345e3a20d21829aae7e4
> change-id: 20261107-fix-raspberrypi-firmware-be9c602d6755

Discard those messages about patches being applied, I see there is a v3 
which I will be taking instead.
-- 
Florian




More information about the linux-rpi-kernel mailing list