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:Yehezkel Bernat <YehezkelShB@gmail.com> Signed-off-by:
Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment