]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: typec: update partner power delivery support with opmode
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Tue, 16 May 2017 12:26:11 +0000 (15:26 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Jun 2017 09:02:58 +0000 (18:02 +0900)
commit7ee4ce6e933fbb2e5db2c39977b847704589575e
treecaab3beae27b89ba0dfedf5fde39aae5487e5b0e
parente6b20121c6d5d17d38ea93d1ec550713142e54c2
usb: typec: update partner power delivery support with opmode

If USB PD contract is established after creation of the
partner, the power delivery support attribute of the partner
needs to be updated separately. This can be done in
typec_set_pwr_opmode() by checking if the port has already
partner and updating the value if it does.

Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/typec.c