]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
usb: typec: Hide the port_type attribute when it's not supported
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Tue, 11 Feb 2020 11:25:27 +0000 (14:25 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Feb 2020 18:51:21 +0000 (10:51 -0800)
commit7932306a754a541f60b71b3551eb423f82d385cb
tree839a28abc4d50f6fcd68dc659eb0f28ebd71763a
parentb747038d9d14a2ca9e6f139a8584507d5aed8634
usb: typec: Hide the port_type attribute when it's not supported

The port_type attribute is special. It is meant to allow
changing the capability of the port in runtime. It is purely
Linux kernel specific feature, i.e. the feature is not
described in any of the USB specifications.

Because of the special nature of this attribute, handling it
differently compared to the other writable attributes, and
hiding it when the underlying port interface (or just the
driver) does not support the feature.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200211112531.86510-3-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/class.c