usb: typec: ucsi_glink: Update request/response buffers to be packed

Update the ucsi request/response buffers to be packed to ensure there
are no "holes" in memory while we read/write these structs.

Signed-off-by: Anjelique Melendez <anjelique.melendez@oss.qualcomm.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://patch.msgid.link/20251022004554.1956729-2-anjelique.melendez@oss.qualcomm.com
This commit is contained in:
Anjelique Melendez 2025-10-21 17:45:53 -07:00 committed by Greg Kroah-Hartman
parent 389597581e
commit dacd0ca666

View File

@ -30,24 +30,24 @@ struct ucsi_read_buf_req_msg {
struct pmic_glink_hdr hdr;
};
struct ucsi_read_buf_resp_msg {
struct __packed ucsi_read_buf_resp_msg {
struct pmic_glink_hdr hdr;
u8 buf[UCSI_BUF_SIZE];
u32 ret_code;
};
struct ucsi_write_buf_req_msg {
struct __packed ucsi_write_buf_req_msg {
struct pmic_glink_hdr hdr;
u8 buf[UCSI_BUF_SIZE];
u32 reserved;
};
struct ucsi_write_buf_resp_msg {
struct __packed ucsi_write_buf_resp_msg {
struct pmic_glink_hdr hdr;
u32 ret_code;
};
struct ucsi_notify_ind_msg {
struct __packed ucsi_notify_ind_msg {
struct pmic_glink_hdr hdr;
u32 notification;
u32 receiver;