android_kernel_xiaomi_sm8450/drivers/thunderbolt
Mika Westerberg c4ab24e333 thunderbolt: Use correct function to calculate maximum USB3 link rate
commit e8ff07fb33026c5c1bb5b81293496faba5d68059 upstream.

We need to take minimum of both sides of the USB3 link into consideration,
not just the downstream port. Fix this by calling tb_usb3_max_link_rate()
instead.

Fixes: 0bd680cd90 ("thunderbolt: Add USB3 bandwidth management")
Cc: stable@vger.kernel.org
Acked-by: Yehezkel Bernat <YehezkelShB@gmail.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-01-24 07:19:59 +01:00
..
acpi.c thunderbolt: Runtime PM activate both ends of the device link 2022-01-27 10:54:14 +01:00
cap.c
ctl.c thunderbolt: Use the actual buffer in tb_async_error() 2022-09-08 11:11:39 +02:00
ctl.h
debugfs.c
dma_port.c
dma_port.h
domain.c
eeprom.c
icm.c thunderbolt: Add support for Intel Maple Ridge single port controller 2022-10-05 10:38:37 +02:00
Kconfig
lc.c
Makefile
nhi_ops.c
nhi_regs.h
nhi.c
nhi.h thunderbolt: Add support for Intel Maple Ridge single port controller 2022-10-05 10:38:37 +02:00
nvm.c
path.c
property.c
quirks.c
retimer.c
sb_regs.h
switch.c thunderbolt: Explicitly enable lane adapter hotplug events at startup 2022-10-26 13:25:16 +02:00
tb_msgs.h
tb_regs.h thunderbolt: Explicitly enable lane adapter hotplug events at startup 2022-10-26 13:25:16 +02:00
tb.c
tb.h thunderbolt: Explicitly enable lane adapter hotplug events at startup 2022-10-26 13:25:16 +02:00
test.c thunderbolt: Bond lanes only when dual_link_port != NULL in alloc_dev_default() 2021-07-14 16:56:44 +02:00
tmu.c
tunnel.c thunderbolt: Use correct function to calculate maximum USB3 link rate 2023-01-24 07:19:59 +01:00
tunnel.h
usb4.c thunderbolt: Explicitly enable lane adapter hotplug events at startup 2022-10-26 13:25:16 +02:00
xdomain.c