typec_connector_class_helper: Add Partner Product Type VDOs

Determine product type from id_header VDO and print
decoded product type VDOs as part of partner information.

Updated sample output for partner information:

 port0-partner
    accessory_mode: none
    number_of_alternate_modes: 1
    supports_usb_power_delivery: yes
    type: hub
    uevent: DEVTYPE=typec_partner
    usb_power_delivery_revision: 3.0
    identity
      id_header: 0x4c400bda
        USB Vendor ID: 0xbda
        Reserved: 0x40
        Product Type (DFP): 0x0
        Modal Operation Supported: 0x1
        Product Type (UFP/Cable Plug): 0x1
        USB Capable as a USB Device: 0x1
        USB Capable as a USB Host: 0x0
      cert_stat: 0x0
        XID: 0x0
      product: 0x136
        bcdDevice: 0x136
        USB Product ID: 0x0
      product_type_vdo1: 0x44800191
        USB Highest Speed: 0x1
        Alternate Modes: 0x2
        Reserved: 0x20006
        Device Capability: 0x4
        Reserved: 0x0
        UFP VDO Version: 0x2
      product_type_vdo2: 0x0
        USB3 Max Power: 0x0
        USB3 Min Power: 0x0
        Reserved: 0x0
        USB4 Max Power: 0x0
        USB4 Min Power: 0x0
        Reserved: 0x0
      product_type_vdo3: 0x0

Bug: 377831694
Test: atest typec_connector_class_test
Change-Id: Ic20999d816b2337bdd8394297c8ee8a0a09715aa
3 files changed
tree: 97c23b5db8a1c35f04a8562748dde122d0f852c2
  1. typec_connector_class_helper/
  2. .gitignore
  3. OWNERS
  4. PREUPLOAD.cfg