summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorElias Rudberg <mail@eliasrudberg.se>2021-03-11 13:47:10 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-24 11:54:12 +0100
commita63d97c536f489c81ce84098a844abbb808a2c60 (patch)
tree7e2b7435bd48fd157e1aa3361263c5f86736b0c0 /drivers
parent2e252aca4ad9dc40a7abfc2ea498ee4b3a2cc5e8 (diff)
downloadlinux-a63d97c536f489c81ce84098a844abbb808a2c60.tar.gz
linux-a63d97c536f489c81ce84098a844abbb808a2c60.tar.bz2
linux-a63d97c536f489c81ce84098a844abbb808a2c60.zip
usb: typec: Remove vdo[3] part of tps6598x_rx_identity_reg struct
commit 3cac9104bea41099cf622091f0c0538bcb19050d upstream. Remove the unused "u32 vdo[3]" part in the tps6598x_rx_identity_reg struct. This helps avoid "failed to register partner" errors which happen when tps6598x_read_partner_identity() fails because the amount of data read is 12 bytes smaller than the struct size. Note that vdo[3] is already in usb_pd_identity and hence shouldn't be added to tps6598x_rx_identity_reg as well. Fixes: f6c56ca91b92 ("usb: typec: Add the Product Type VDOs to struct usb_pd_identity") Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Reviewed-by: Guido Günther <agx@sigxcpu.org> Signed-off-by: Elias Rudberg <mail@eliasrudberg.se> Cc: stable <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20210311124710.6563-1-mail@eliasrudberg.se Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/usb/typec/tps6598x.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/typec/tps6598x.c b/drivers/usb/typec/tps6598x.c
index 6e6ef6317523..29bd1c5a283c 100644
--- a/drivers/usb/typec/tps6598x.c
+++ b/drivers/usb/typec/tps6598x.c
@@ -64,7 +64,6 @@ enum {
struct tps6598x_rx_identity_reg {
u8 status;
struct usb_pd_identity identity;
- u32 vdo[3];
} __packed;
/* Standard Task return codes */