OSDN Git Service

platform/chrome: cros_ec_typec: Report SOP' PD revision from status
authorBenson Leung <bleung@chromium.org>
Fri, 29 Jan 2021 06:14:04 +0000 (22:14 -0800)
committerBenson Leung <bleung@chromium.org>
Tue, 2 Feb 2021 07:49:54 +0000 (23:49 -0800)
commit3b3dd1f0dbfe92781c60f36ea5c22b26360f9909
tree39677549f67a6d2ef9bda2c6e040fa12690456fe
parent14336151fdf1046853fea7c68aa116b8f47bb2a4
platform/chrome: cros_ec_typec: Report SOP' PD revision from status

cros_typec_handle_sop_prime_disc now takes the PD revision provided
by the EC_CMD_TYPEC_STATUS command response for the SOP'.

Attach the properly formatted pd_revision to the cable desc before
registering the cable.

Signed-off-by: Benson Leung <bleung@chromium.org>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Acked-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Reviewed-by: Prashant Malani <pmalani@chromium.org>
Link: https://lore.kernel.org/r/20210129061406.2680146-5-bleung@chromium.org
Signed-off-by: Benson Leung <bleung@chromium.org>
drivers/platform/chrome/cros_ec_typec.c