Re: [PATCH 2/2] usb: typec: Add type sysfs attribute file for partners

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 25, 2020 at 03:06:42PM +0300, Heikki Krogerus wrote:
> 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@xxxxxxxxxxxxxxx>
> ---
>  Documentation/ABI/testing/sysfs-class-typec |  53 ++++++-
>  drivers/usb/typec/class.c                   | 147 +++++++++++++++++---
>  2 files changed, 181 insertions(+), 19 deletions(-)

This patch doesn't apply against my usb-next branch (but patch 1/2 did).
Can  you rebase this and resend it?

thanks,

greg k-h



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux