platform/chrome: cros_typec_vdm: Add VDM reply support
authorPrashant Malani <pmalani@chromium.org>
Wed, 28 Dec 2022 00:45:12 +0000 (00:45 +0000)
committerPrashant Malani <pmalani@chromium.org>
Mon, 9 Jan 2023 20:32:54 +0000 (20:32 +0000)
commit50ed638bbc47ba68ccc90d81118fe030cf39b6b5
tree00d83a27568066d3389b02cdcf679048520f21e6
parent493e699b9934d9cd6a46ecc7782540014b369267
platform/chrome: cros_typec_vdm: Add VDM reply support

Handle response VDMs which are sent by the partner (replying to VDMs
sent by the host system itself). These get forwarded to the altmode
driver.

Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Benson Leung <bleung@chromium.org>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20221228004648.793339-10-pmalani@chromium.org
drivers/platform/chrome/cros_ec_typec.c
drivers/platform/chrome/cros_typec_vdm.c
drivers/platform/chrome/cros_typec_vdm.h