[PATCH v3 00/22] Cleanup and Refactor TI-SCI driver

abhash a-kumar2 at ti.com
Mon Nov 30 00:53:33 PST 2026


On 29/10/26 23:41, Beleswar Padhi wrote:
> This series does a lot of cleanups and refactoring of the TI-SCI driver.
>
> Patches 01-11:
> The first part of the series refactors a lot of common code from each of
> the TI-SCI message functions into a single place (get_one_xfer() and
> do_xfer()). Result is removal of net ~740 lines (~20% of the whole
> driver
> size) without changing functionality.
>
> Patches 12-15:
> The second part of the series does some preparatory work for being able
> to break down the single large TI-SCI file into smaller files.
>
> Patches 16-22:
> The third and final part of the series breaks down the single large
> ti_sci.c file into smaller logical files: ti_sci core, device, clock,
> pm, rm, and proc. This allows for better readability and maintenance.
>
> Note:
> All dependencies for this patch series have now been merged.
>
> v3: Changelog:
> 1. Carry Kendall's R/B in [PATCH v3 15/22].
> 2. Correct API name in dev_err() string in [PATCH v3 20/22]. (Kendall)
> 3. Rename ti_sci.c to ti_sci_core.c earlier in the patch series in
>     [PATCH v3 16/22]. (Andrew)
>
> Link to v2:
> https://lore.kernel.org/all/20260930160607.2674980-1-b-padhi@ti.com/
>
> v2: Changelog:
> 1. Fix build for arm32 platforms like keystone by including appropriate
> headers in ti_sci_rm.c in [PATCH v2 21/22].
>
> Link to v1:
> https://lore.kernel.org/all/20260929201746.4078803-1-b-padhi@ti.com/
>
> Testing Done:
>   - Boot tested on all TI K3 SoCs.
>   - Boot tested on Keystone platforms like K2G-EVM, K2G-ICE, K2HK-EVM.
>   - Tested some of the Core, Device, Clock, and Proc ops with remoteproc
>   - Tested each patch for no new warnings or errors.
>
> Logs:
> https://gist.github.com/3V3RYONE/b8ef9d63eaa45db251dc84306b1451e0
>
> Andrew Davis (18):
>    firmware: ti_sci: Move error message handling into
>      ti_sci_get_one_xfer()
>    firmware: ti_sci: Move error message handling into ti_sci_do_xfer()
>    firmware: ti_sci: Move check for ACK into ti_sci_do_xfer()
>    firmware: ti_sci: Remove out of place RM debug messages
>    firmware: ti_sci: Name response variable resp for consistency
>    firmware: ti_sci: Handle xfer cleanup inside ti_sci_do_xfer()
>    firmware: ti_sci: Pass request struct into ti_sci_do_xfer()
>    firmware: ti_sci: Combine xfer allocation and transfer functions
>    firmware: ti_sci: Fetch info struct from handle inside
>      ti_sci_do_xfer()
>    firmware: ti_sci: Use tx_message as message buffer directly
>    firmware: ti_sci: Use rx_message as message receive buffer
>    firmware: ti_sci: Do not export reboot control
>    firmware: ti_sci: Move the huge ti_sci file into its own directory
>    firmware: ti: ti_sci: Add missing includes for self-contained headers
>    firmware: ti: ti_sci_device: Move device ops into its own file
>    firmware: ti: ti_sci_clock: Move clock ops into its own file
>    firmware: ti: ti_sci_pm: Move pm ops into its own file
>    firmware: ti: ti_sci_rm: Move rm ops into its own file
>
> Beleswar Padhi (4):
>    firmware: ti_sci: Fix some kernel-doc references in structs
>    soc: ti: ti_sci_protocol.h: Add missing documentation for structs
>    firmware: ti_sci: Use pmops fxn pointers in suspend/resume hooks
>    firmware: ti: ti_sci_proc: Move processor ops into its own file

Hi Beleswar,

I tested system suspend-resume with this patch series on J784S4 evm. It 
works fine.

Suspend-resume logs:- 
https://gist.github.com/abhash-kj/e1dbfcc6992fef93b9a63d1939996666

Tested-by: Abhash Kumar Jha <a-kumar2 at ti.com>


Regards,

Abhash




More information about the linux-arm-kernel mailing list