usb: typec: Remove vdo[3] part of tps6598x_rx_identity_reg struct
authorElias Rudberg <mail@eliasrudberg.se>
Thu, 11 Mar 2021 12:47:10 +0000 (13:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Mar 2021 20:30:47 +0000 (21:30 +0100)
commit3cac9104bea41099cf622091f0c0538bcb19050d
treeb75769a4e380ac199af329420a4ae3799b831cd2
parent546aa0e4ea6ed81b6c51baeebc4364542fa3f3a7
usb: typec: Remove vdo[3] part of tps6598x_rx_identity_reg struct

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>
drivers/usb/typec/tps6598x.c