Commit 0e1d6f55 authored by Kyle Tso's avatar Kyle Tso Committed by Greg Kroah-Hartman

usb: pd: Update VDO definitions

"PD Spec Revision 3.0 Version 2.0 + ECNs 2020-12-10" introduces several
changes regarding the ID Header VDO and the Product Type VDOs.
Signed-off-by: default avatarKyle Tso <kyletso@google.com>
Reviewed-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20210202161733.932215-3-kyletso@google.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 64eaa0fa
...@@ -88,7 +88,7 @@ static const char * const typec_accessory_modes[] = { ...@@ -88,7 +88,7 @@ static const char * const typec_accessory_modes[] = {
/* Product types defined in USB PD Specification R3.0 V2.0 */ /* Product types defined in USB PD Specification R3.0 V2.0 */
static const char * const product_type_ufp[8] = { static const char * const product_type_ufp[8] = {
[IDH_PTYPE_UNDEF] = "undefined", [IDH_PTYPE_NOT_UFP] = "not_ufp",
[IDH_PTYPE_HUB] = "hub", [IDH_PTYPE_HUB] = "hub",
[IDH_PTYPE_PERIPH] = "peripheral", [IDH_PTYPE_PERIPH] = "peripheral",
[IDH_PTYPE_PSD] = "psd", [IDH_PTYPE_PSD] = "psd",
...@@ -96,17 +96,17 @@ static const char * const product_type_ufp[8] = { ...@@ -96,17 +96,17 @@ static const char * const product_type_ufp[8] = {
}; };
static const char * const product_type_dfp[8] = { static const char * const product_type_dfp[8] = {
[IDH_PTYPE_DFP_UNDEF] = "undefined", [IDH_PTYPE_NOT_DFP] = "not_dfp",
[IDH_PTYPE_DFP_HUB] = "hub", [IDH_PTYPE_DFP_HUB] = "hub",
[IDH_PTYPE_DFP_HOST] = "host", [IDH_PTYPE_DFP_HOST] = "host",
[IDH_PTYPE_DFP_PB] = "power_brick", [IDH_PTYPE_DFP_PB] = "power_brick",
[IDH_PTYPE_DFP_AMC] = "amc",
}; };
static const char * const product_type_cable[8] = { static const char * const product_type_cable[8] = {
[IDH_PTYPE_UNDEF] = "undefined", [IDH_PTYPE_NOT_CABLE] = "not_cable",
[IDH_PTYPE_PCABLE] = "passive", [IDH_PTYPE_PCABLE] = "passive",
[IDH_PTYPE_ACABLE] = "active", [IDH_PTYPE_ACABLE] = "active",
[IDH_PTYPE_VPD] = "vpd",
}; };
static struct usb_pd_identity *get_pd_identity(struct device *dev) static struct usb_pd_identity *get_pd_identity(struct device *dev)
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment