thunderbolt: Use maximum USB3 link rate when reclaiming if link is not up
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 24 Jun 2020 18:45:03 +0000 (21:45 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 25 Aug 2020 08:29:01 +0000 (11:29 +0300)
commit813050e0a9b871ac575abfd3d321f74916df609d
tree0ddc32ed10b78bcf40ffafa282670793bcbb70c6
parent8824d19b45867be75d375385414c4f06719a11a4
thunderbolt: Use maximum USB3 link rate when reclaiming if link is not up

If the USB3 link is not up the actual link rate is 0 so when reclaiming
bandwidth we should look at maximum supported link rate instead.

Cc: stable@vger.kernel.org
Fixes: 0bd680cd900c ("thunderbolt: Add USB3 bandwidth management")
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/tunnel.c