diff options
author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | 2020-11-26 14:57:35 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-11-26 13:40:43 +0100 |
commit | ab37fa851c488be805f6568ecaabb67b13cd937c (patch) | |
tree | 13fb82d8a7bea098fb8c1c5685aa36375cceea0c /kernel/time | |
parent | 52170e937866b3bac1572ed48a97d370f42e52fa (diff) | |
download | linux-ab37fa851c488be805f6568ecaabb67b13cd937c.tar.bz2 |
usb: typec: Add type sysfs attribute file for partners
USB Power Delivery Specification defines a set of product
types for partners and cables. The product type can be read
from the ID Header VDO which is the first object in the
response to the Discover Identity command. This attribute
will display the product type of the partner. The cables
already have the attribute.
This sysfs attribute file is only created for the partners
and cables if the product type is really known in the
driver. Some interfaces do not give access to the Discover
Identity response from the partner or cable, but they may
still supply the product type separately in some cases.
When the product type of the partner or cable is detected,
uevent is also raised with PRODUCT_TYPE set to show the
actual product type (for example PRODUCT_TYPE=host).
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20201126115735.50529-1-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/time')
0 files changed, 0 insertions, 0 deletions