Files
u-boot/drivers
Dhruva Gole 0c4e36d65f firmware: ti_sci: fix the secure_hdr in do_xfer
The ti_sci driver in U-Boot has support for secure_msg as part of it's
do_xfer function. This let's U-boot send secure messages during boot up.

The protocol to send such secure messages is described as part of the
struct ti_sci_secure_msg_hdr. As part of this, there are 2 fields for
checksum and reserved that occupy the first 4 bytes of any secure
message. This is called as the secure_hdr.

As of now, the secure_hdr needs to be 0 init-ed before sending secure
messages. However the existing code was never putting the zero-inited vars
into the secure_buf, leading to possibility of the first 4 bytes of
secure_buf being possibly garbage.

Fix this by initialising the secure_hdr itself to the secure_buf
location, thus when we make secure_hdr members 0, it automatically ensures
the first 4 bytes of secure_buf are 0.

Fixes: 32cd25128b ("firmware: Add basic support for TI System Control Interface (TI SCI)")
Reviewed-by: Nishanth Menon <nm@ti.com>
Signed-off-by: Dhruva Gole <d-gole@ti.com>
2024-02-06 16:31:06 -05:00
..
2023-11-20 09:19:50 -05:00
2024-01-29 22:35:34 -05:00
2023-12-21 08:54:37 -05:00
2023-12-21 08:54:37 -05:00
2024-01-29 22:35:02 -05:00
2024-01-29 22:35:02 -05:00
2024-01-29 22:35:02 -05:00
2023-10-11 10:35:24 -04:00
2024-01-18 12:18:48 -05:00
2023-12-13 11:35:16 -05:00
2024-01-29 22:35:02 -05:00
2024-01-15 08:58:24 +01:00
2024-01-29 22:35:02 -05:00
2024-01-29 22:35:02 -05:00
2024-01-29 22:35:02 -05:00
2023-11-07 14:50:51 -05:00
2024-01-29 22:35:02 -05:00
2023-11-20 09:19:50 -05:00
2024-01-29 22:35:02 -05:00
2024-01-29 22:35:02 -05:00
2024-01-16 12:26:54 +00:00
2024-01-29 22:35:02 -05:00
2024-01-29 22:35:02 -05:00
2023-11-20 09:19:50 -05:00