Commit 82b90410 authored by Heikki Krogerus's avatar Heikki Krogerus Committed by Treehugger Robot
Browse files

UPSTREAM: 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.

Bug: 254441685
Fixes: 1f4642b7 ("usb: typec: ucsi: Retrieve all the PDOs instead of just the first 4")
Reported-by: default avatarPaul Menzel <pmenzel@molgen.mpg.de>
Cc: <stable@vger.kernel.org>
Signed-off-by: default avatarHeikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20220922145924.80667-1-heikki.krogerus@linux.intel.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 415ba26c)
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: I3e10fb2c610a753e19deab7dcceda10599f56c03
parent 5f1257b5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment