]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
thunderbolt: Do not allow subtracting more NFC credits than configured
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 8 Mar 2022 08:49:07 +0000 (16:49 +0800)
committerPaolo Pisati <paolo.pisati@canonical.com>
Wed, 9 Mar 2022 14:13:09 +0000 (15:13 +0100)
commit1cb8dc5e871367da4dcf3ddf4cc8c469c6073942
treec56de9938aaca119b25001c87baf4089e2b83ad1
parentf1f41709978847d971fe46a09b997455304d40ae
thunderbolt: Do not allow subtracting more NFC credits than configured

BugLink: https://bugs.launchpad.net/bugs/1955016
This might happen if the boot firmware uses different amount of NFC
credits than what the router suggests, or we are dealing with pre-USB4
device.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
(cherry picked from commit 6cb27a04fb779717c4a3d20233b93596885838cf)
Signed-off-by: Chia-Lin Kao (AceLan) <acelan.kao@canonical.com>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
drivers/thunderbolt/switch.c