thunderbolt: Pass CL state bitmask to tb_port_clx_supported()
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 30 Aug 2022 09:12:40 +0000 (12:12 +0300)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 5 Sep 2022 06:02:16 +0000 (09:02 +0300)
commit3846d011403b57190b6b3e917cc8b3ab810fa293
treebb2e1d46db6ef392faef5dc10d7644052f072ebe
parent95f8f1cbc87bfd361286d8e0129108d2112e653e
thunderbolt: Pass CL state bitmask to tb_port_clx_supported()

Instead of testing just a single CL state we can pass a bitmask of
states to check. This makes it simpler for callers of the function.

We also add a check for CL2 even though not fully supported by the
driver yet.

Suggested-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/switch.c
drivers/thunderbolt/tb.h
drivers/thunderbolt/tb_regs.h