[PATCH 0/5] spmi: Add and use managed resource helpers

Stephen Boyd sboyd at kernel.org
Mon Oct 23 19:02:06 PDT 2023


Quoting Fei Shao (2023-08-24 03:40:07)
> Hi,
> 
> This series adds and converts to the devm_* helpers in the SPMI driver,
> based on the suggestion in [1].
> 
> While at it, I have some patches fixing other minor issues as well, like
> reordering the remove sequence in spmi-mtk-pmif and using proper error
> return code etc.
> 
> This patch is based on next-20230824 and [2] which is not yet applied,
> in order to avoid potential conflicts.
> 
> [1]: https://lore.kernel.org/all/20230821033532.GA21555@google.com/
> [2]: https://lore.kernel.org/all/20230717173934.1.If004a6e055a189c7f2d0724fa814422c26789839@changeid/
> 
> 
> Fei Shao (5):
>   spmi: Introduce device-managed functions
>   spmi: Use devm_spmi_controller_alloc()
>   spmi: mtk-pmif: Reorder driver remove sequence
>   spmi: hisi-spmi-controller: Use devm_spmi_controller_add()
>   spmi: Return meaningful errors in spmi_controller_alloc()
> 
>  drivers/spmi/Makefile               |  2 +-
>  drivers/spmi/devres.c               | 61 ++++++++++++++++++++
>  drivers/spmi/hisi-spmi-controller.c | 32 +++--------

Applied the series to spmi-next.



More information about the Linux-mediatek mailing list