[PATCH v3 21/22] firmware: ti: ti_sci_rm: Move rm ops into its own file

Sebin Francis sebin.francis at ti.com
Wed Dec 2 06:42:57 PST 2026


Hi Beleshwar,

On 29/10/26 23:41, Beleswar Padhi wrote:
> From: Andrew Davis <afd at ti.com>
> 
> Extract the resource management operations related functions and
> services from ti_sci_core.c into its own file. This breaks down the
> single large file into smaller logical files for better readability
> and maintenance.
> 
> Signed-off-by: Andrew Davis <afd at ti.com>
> Co-developed-by: Beleswar Padhi <b-padhi at ti.com>
> Signed-off-by: Beleswar Padhi <b-padhi at ti.com>
> ---
> v3: Changelog:
> 1. None to this patch.
> 
> Link to v2:
> https://lore.kernel.org/all/20260930160607.2674980-22-b-padhi@ti.com/
> 
> v2: Changelog:
> 1. Include headers: <linux/bitmap.h>, <linux/of.h> and <linux/slab.h> to
> be able to build ti_sci_rm.c standalone for arm32 platforms like
> keystone.
> 
> Link to v1:
> https://lore.kernel.org/all/20260929201746.4078803-22-b-padhi@ti.com/
> 
>   drivers/firmware/ti/Makefile      |   1 +
>   drivers/firmware/ti/ti_sci.h      |  20 +
>   drivers/firmware/ti/ti_sci_core.c | 875 +---------------------------
>   drivers/firmware/ti/ti_sci_rm.c   | 910 ++++++++++++++++++++++++++++++
>   4 files changed, 936 insertions(+), 870 deletions(-)
>   create mode 100644 drivers/firmware/ti/ti_sci_rm.c
> 
> diff --git a/drivers/firmware/ti/Makefile b/drivers/firmware/ti/Makefile
> index bbfe73587a3c7..7d9c2a73bf5a6 100644
> --- a/drivers/firmware/ti/Makefile
> +++ b/drivers/firmware/ti/Makefile
> @@ -4,4 +4,5 @@ ti_sci-y			:= ti_sci_core.o
>   ti_sci-y			+= ti_sci_clock.o
>   ti_sci-y			+= ti_sci_device.o
>   ti_sci-y			+= ti_sci_pm.o
> +ti_sci-y			+= ti_sci_rm.o
>   obj-$(CONFIG_TI_SCI_PROTOCOL)	+= ti_sci.o
> diff --git a/drivers/firmware/ti/ti_sci.h b/drivers/firmware/ti/ti_sci.h
> index 7a707c632276e..e8d6589eec0e9 100644
> --- a/drivers/firmware/ti/ti_sci.h
> +++ b/drivers/firmware/ti/ti_sci.h
> @@ -112,6 +112,7 @@ struct ti_sci_info {
>   	int users;
>   };
>   
> +#define cl_to_ti_sci_info(c)	container_of(c, struct ti_sci_info, cl)

This is not used outside ti_sci_core.c so should we move there?

Sebin
>   #define handle_to_ti_sci_info(h) container_of(h, struct ti_sci_info, handle)
>   
>   /* Generic Messages */
> @@ -906,6 +907,16 @@ struct ti_sci_msg_req_manage_irq {
>   	u8 secondary_host;
>   } __packed;
>   
> +/**
> + * struct ti_sci_irq - Description of allocated irqs
> + * @node: Link to hash table
> + * @desc: Description of the irq
---



More information about the linux-arm-kernel mailing list