thunderbolt: Get rid of usb4_usb3_port_actual_link_rate()
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 31 Aug 2023 11:15:26 +0000 (14:15 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 13 Oct 2023 05:49:13 +0000 (08:49 +0300)
commit92b8f7a1b1f95fce5dee1a64902cab9f55576748
tree6d7362cee00b22a0dbeb79decb9620a01a253318
parent7b304040c8db5fb829fd55342224161a754040c1
thunderbolt: Get rid of usb4_usb3_port_actual_link_rate()

It turns out there is no need to use the actual link rate when
reclaiming bandwidth for USB 3.x. The reason is that we use consumed
bandwidth which is coming from xHCI when releasing bandwidth (for
example for DisplayPort tunneling) and this can be anything between
1000 Mb/s to maximum, so when reclaiming we can just bump it up back to
maximum instead of actual link rate (which is always <= maximum).

This allows us to get rid of couple of unnecessary lines of code.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/tb.h
drivers/thunderbolt/tb_regs.h
drivers/thunderbolt/tunnel.c
drivers/thunderbolt/usb4.c