Re: [PATCH v3 08/22] firmware: ti_sci: Combine xfer allocation and transfer functions
From: Sebin Francis
Date: Wed Dec 02 2026 - 09:18:27 EST
Hi Beleswar,
On 29/10/26 23:41, Beleswar Padhi wrote:
From: Andrew Davis <afd@xxxxxx>
In each TI-SCI message function we allocate a xfer struct and use
it to perform a message transfer. There is now no reason to do these
in two steps. Instead make the ti_sci_do_xfer() function do the
allocation internally. That function already does the xfer free so
it make sense to have it also do the allocation. This reduces the
complexity of all the individual message functions.
The error check that you are removing `if (IS_ERR(handle))` is not done for all ti_sci* functions, is it intentional?
Functions like ti_sci_msg_cmd_lpm_wake_reason, ti_sci_msg_cmd_query_fw_caps
Sebin
Signed-off-by: Andrew Davis <afd@xxxxxx>
Co-developed-by: Beleswar Padhi <b-padhi@xxxxxx>
Signed-off-by: Beleswar Padhi <b-padhi@xxxxxx>
---
v3: Changelog:
1. None to this patch.
Link to v2:
https://lore.kernel.org/all/20260930160607.2674980-9-b-padhi@xxxxxx/
v2: Changelog:
1. None to this patch.
Link to v1:
https://lore.kernel.org/all/20260929201746.4078803-9-b-padhi@xxxxxx/
drivers/firmware/ti_sci.c | 487 +++++++++++++-------------------------
1 file changed, 170 insertions(+), 317 deletions(-)
---