mirror of
https://github.com/torvalds/linux.git
synced 2026-09-23 05:04:02 +02:00
soc: qcom: pmic_glink_altmode: Define the TBT extradata properly
Before the fixes-referenced commit, there was a trailing 'u32 reserved'
after the payload array. That commit gobbled it up into the thunderbolt
extradata. Push it back where it belongs.
There's no functional change, since the outer struct size remains
identical - struct usbc_sc8280x_tbt_data and therefore the union it's a
part of made up for the difference and the res bytes were ignored
anyway.
Fixes: 0539c5a6fd ("soc: qcom: pmic_glink_altmode: Consume TBT3/USB4 mode notifications")
Reported-by: Fenglin Wu <fenglin.wu@oss.qualcomm.com>
Signed-off-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20260717-topic-tbt_extradata_fixup-v1-1-5caa18f1c8d3@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
parent
3fd6a04e5b
commit
b255c6f4e6
|
|
@ -53,7 +53,7 @@ struct usbc_sc8280x_tbt_data {
|
|||
/* This field is NOP on USB4, all cables support rounded rates by spec */
|
||||
u8 rounded_cable : 1;
|
||||
u8 power_limited : 1;
|
||||
u8 res[11];
|
||||
u8 res[7];
|
||||
};
|
||||
|
||||
struct usbc_notify {
|
||||
|
|
@ -74,6 +74,7 @@ struct usbc_notify {
|
|||
struct usbc_sc8280x_dp_data dp;
|
||||
struct usbc_sc8280x_tbt_data tbt;
|
||||
} extended_data;
|
||||
u32 reserved;
|
||||
};
|
||||
|
||||
struct usbc_sc8180x_notify {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user