thunderbolt: Read router preferred credit allocation information
authorMika Westerberg <mika.westerberg@linux.intel.com>
Wed, 10 Mar 2021 11:34:12 +0000 (13:34 +0200)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 1 Jun 2021 07:48:59 +0000 (10:48 +0300)
commit56ad3aef5cdac0695944985f7f70209aec0efd4d
tree129398d6ee220eabe6d70a6ea9a45cabb15a505f
parente7051beab8393dc614f7ea3969aa03bc490db1d6
thunderbolt: Read router preferred credit allocation information

USB4 routers must expose their preferred credit (buffer) allocation
information through router operation. This information tells the
connection manager how the router prefers its buffers to be allocated to
get the expected bandwidth for the supported protocols.

Read this information and store it as part of struct tb_switch for each
USB4 router.

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