]> git.baikalelectronics.ru Git - kernel.git/commit
usb: typec: ucsi: Remove incorrect warning
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Thu, 22 Sep 2022 14:59:24 +0000 (17:59 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Sep 2022 08:50:01 +0000 (10:50 +0200)
commit6299ff253ffeb57e941bca81c274952b8dde4d1e
tree18ec396a1fefdb0eb5d9bf894a88960550c2ef66
parent7696e4b1b77d3e724d3025a905601c65714591e6
usb: typec: ucsi: Remove incorrect warning

Sink only devices do not have any source capabilities, so
the driver should not warn about that. Also DRP (Dual Role
Power) capable devices, such as USB Type-C docking stations,
do not return any source capabilities unless they are
plugged to a power supply themselves.

Fixes: b7f07717d1a8 ("usb: typec: ucsi: Retrieve all the PDOs instead of just the first 4")
Reported-by: Paul Menzel <pmenzel@molgen.mpg.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20220922145924.80667-1-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/ucsi.c