diff options
author | Kyle Tso <kyletso@google.com> | 2023-12-05 15:47:46 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-12-15 13:53:58 +0100 |
commit | 7d530f4cc0632056d9f8f207245aa3d91a25d168 (patch) | |
tree | 0e03a2da9aa1fca8bbd28b06019c87511642d3b4 /drivers/usb/core/generic.c | |
parent | 70e6163d17dd501ef27680eeb80d78b2cf823c5e (diff) |
usb: typec: tcpm: Query Source partner for FRS capability only if it is DRP
Source-only port partner will always respond NOT_SUPPORTED to
GET_SINK_CAP. Avoid this redundant AMS by bailing out querying the FRS
capability if the Source port partner is not DRP.
Signed-off-by: Kyle Tso <kyletso@google.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20231205074747.1821297-1-kyletso@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/generic.c')
0 files changed, 0 insertions, 0 deletions