d930eb4f | 10-Apr-2024 |
Conor Dooley <conor.dooley@microchip.com> |
firmware: microchip: use scope-based cleanup where possible
There's a bunch of structs created and freed every time the mailbox is used. Move them to use the scope-based cleanup infrastructure to av
firmware: microchip: use scope-based cleanup where possible
There's a bunch of structs created and freed every time the mailbox is used. Move them to use the scope-based cleanup infrastructure to avoid manually tearing them down. mpfs_auto_update_available() didn't free the memory that it used (albeit it allocated exactly once during probe) so that gets moved over too.
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
show more ...
|
e277026b | 10-Apr-2024 |
Conor Dooley <conor.dooley@microchip.com> |
firmware: microchip: move buffer allocation into mpfs_auto_update_set_image_address()
This buffer is used exclusively by mpfs_auto_update_set_image_address(), so move the management of it there, emp
firmware: microchip: move buffer allocation into mpfs_auto_update_set_image_address()
This buffer is used exclusively by mpfs_auto_update_set_image_address(), so move the management of it there, employing the recently added cleanup infrastructure to avoid littering the function with gotos.
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
show more ...
|
3aa20d1f | 10-Apr-2024 |
Conor Dooley <conor.dooley@microchip.com> |
firmware: microchip: clarify that sizes and addresses are in hex
As it says on the tin. It can be kinda confusing when "22830" is in hex, so prefix the hex numbers with a "0x".
Signed-off-by: Conor
firmware: microchip: clarify that sizes and addresses are in hex
As it says on the tin. It can be kinda confusing when "22830" is in hex, so prefix the hex numbers with a "0x".
Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
show more ...
|
405820ea | 07-Dec-2023 |
Rob Herring <robh@kernel.org> |
firmware: microchip: Replace of_device.h with explicit include
The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it was merged into the regular platform bus.
firmware: microchip: Replace of_device.h with explicit include
The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it was merged into the regular platform bus. As part of that merge prepping Arm DT support 13 years ago, they "temporarily" include each other. They also include platform_device.h and of.h. Soon the implicit includes are going to be removed.
of_device.h isn't needed, but platform_device.h is.
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: Conor Dooley <conor.dooley@microchip.com>
show more ...
|