platform/chrome: cros_ec_typec: Register partner PDOs
authorPrashant Malani <pmalani@chromium.org>
Tue, 30 Aug 2022 20:20:18 +0000 (20:20 +0000)
committerPrashant Malani <pmalani@chromium.org>
Wed, 7 Sep 2022 18:02:57 +0000 (18:02 +0000)
commit348a2e8c93d3ca622cf1b293cd2f597c9db74d9d
tree6681ed6aef2f9dd8c73e1ccdd9d9cbcd216fa74b
parent20dfb74783093e863228d511f7e6a8db8ee39e18
platform/chrome: cros_ec_typec: Register partner PDOs

The ChromeOS EC exports partner source/sink cap PDOs (Power Data
Objects) to the application processor (AP). Use this information
to register USB PD (Power Delivery) capabilities with the
USB Type-C Power Delivery device class.

Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20220830202018.1884851-1-pmalani@chromium.org
[pmalani: Remove extra newline nit from original patch]
drivers/platform/chrome/cros_ec_typec.c