usb: typec: ucsi: Get PD revision for partner
authorAbhishek Pandit-Subedi <abhishekpandit@chromium.org>
Fri, 9 Feb 2024 22:37:32 +0000 (14:37 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Feb 2024 17:36:43 +0000 (18:36 +0100)
commitb9fccfdb4ebb1e172aa7e6fd4b02d01c818e4794
treec3d8ab124778a56004e2ae17e0718c5020b46fc8
parent335e3eff220b4bf4ce4049ba64b392f06bccef77
usb: typec: ucsi: Get PD revision for partner

PD major revision for the port partner is described in
GET_CONNECTOR_CAPABILITY and is only valid on UCSI 2.0 and newer. Update
the pd_revision on the partner if the UCSI version is 2.0 or newer.

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Prashant Malani <pmalani@chromium.org>
Signed-off-by: Abhishek Pandit-Subedi <abhishekpandit@chromium.org>
Link: https://lore.kernel.org/r/20240209143723.v5.3.Idf7d373c3cbb54058403cb951d644f1f09973d15@changeid
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi.c