thunderbolt: Fail the failed bandwidth request properly
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 9 Jan 2024 15:53:53 +0000 (17:53 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 16 Feb 2024 10:29:22 +0000 (12:29 +0200)
commit37f49727cc53b1987859fc767ac637078d351c4d
treeb16d9e12a014d3212d295853709a5309f693a4d3
parent2ec67a48cf8f18b8c6cecc70dcd5d52cbf8eba7e
thunderbolt: Fail the failed bandwidth request properly

The USB4 spec says that if the Connection Manager writes Allocated_BW
that is smaller than Requested_BW, the DisplayPort IN adapter signals
this failure back to the DPTX (graphics driver). Implement this by
rewriting the same allocated bandwidth values back.

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