Commit e18b4818 authored by Mika Westerberg's avatar Mika Westerberg Committed by sanglipeng
Browse files

thunderbolt: Use correct function to calculate maximum USB3 link rate

stable inclusion
from stable-v5.10.165
commit c4ab24e3334bb8481a90538cdbfbbc95dbfee2ce
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7T7G4

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c4ab24e3334bb8481a90538cdbfbbc95dbfee2ce



--------------------------------

commit e8ff07fb 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: 0bd680cd ("thunderbolt: Add USB3 bandwidth management")
Cc: stable@vger.kernel.org
Acked-by: default avatarYehezkel Bernat <YehezkelShB@gmail.com>
Signed-off-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 64d0b953
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment