thunderbolt: Re-calculate estimated bandwidth when allocation mode is enabled
authorMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 11 Dec 2023 11:45:37 +0000 (13:45 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 16 Feb 2024 10:29:22 +0000 (12:29 +0200)
commitd44b9827e7f460c7555800065de81b75f4967145
treec9677fe5ed94ee78f2c5f525008d182c3b84a81e
parent7b5e0bfc03cb904638200444264cfb20f7f6bea7
thunderbolt: Re-calculate estimated bandwidth when allocation mode is enabled

When we program the initial bandwidth estimation the DPTX (graphics
driver) has not yet read the capabilities of the monitor so the values
used are the highest possible of the involved DisplayPort IN and OUT
adapters, not the actual monitor capabilities. To allow the graphics
more accurate bandwidth estimation re-calculate it once we receive the
bandwidth allocation mode enabled notification.

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