thunderbolt: Handle bandwidth allocation mode enablement notification
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 23 Jan 2023 06:28:20 +0000 (08:28 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 27 Jan 2023 06:25:21 +0000 (08:25 +0200)
commitace75e18e736bffda1eaf9fd7eab596ecccb4877
treedbdca9bb42ebfc3e8e71b4b8288e13c152b8cf07
parent6ce3563520be90a155706bafc186fc264a13850e
thunderbolt: Handle bandwidth allocation mode enablement notification

When the graphics side enables bandwidth allocation mode the DP IN
adapter sends notification to the connection manager about this.
Currently the handler misses this and tries to allocate 0 Mb/s that then
makes the graphics side to think the request failed.

Fix this by properly handling the enablement notification.

Fixes: 6ce3563520be ("thunderbolt: Add support for DisplayPort bandwidth allocation mode")
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/tb.c
drivers/thunderbolt/usb4.c