]> git.baikalelectronics.ru Git - kernel.git/commit
usb: typec: ucsi: displayport: Fix for the mode entering routine
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Fri, 4 Oct 2019 10:02:19 +0000 (13:02 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2019 11:51:26 +0000 (13:51 +0200)
commitad4f8c1c114ea78fa23b1284c4a94992c22042f4
tree0c6d98533643cd438b74352b8352e7cb9162615f
parent381967be44d85fa40bba24c18e45de36afc8ed16
usb: typec: ucsi: displayport: Fix for the mode entering routine

Making sure that ucsi_displayport_enter() function does not
return an error if the displayport alternate mode has
already been entered. It's normal that the firmware (or
controller) has already entered the alternate mode by the
time the operating system is notified about the device.

Fixes: 31960f8d1990 ("usb: typec: ucsi: Support for DisplayPort alt mode")
Cc: stable@vger.kernel.org
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20191004100219.71152-3-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/displayport.c