thunderbolt: Report consumed bandwidth in both directions
authorMika Westerberg <mika.westerberg@linux.intel.com>
Sat, 28 Mar 2020 10:52:31 +0000 (12:52 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 22 Jun 2020 16:58:20 +0000 (19:58 +0300)
commit7c0ee8fd3bd7b5be6024f1839e9c26d1c9570e82
tree649fa849194ce5517061466e97557796e431b081
parent9cac51a049dbbca0b078bb9cffa7a8d928cf0f06
thunderbolt: Report consumed bandwidth in both directions

Whereas DisplayPort bandwidth is consumed only in one direction (from DP
IN adapter to DP OUT adapter), USB3 adds separate bandwidth for both
upstream and downstream directions.

For this reason extend the tunnel consumed bandwidth routines to support
both directions and implement this for DP.

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