thunderbolt: Do not read control adapter config space
authorSanjay R Mehta <sanju.mehta@amd.com>
Tue, 3 Aug 2021 12:34:55 +0000 (07:34 -0500)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Mon, 9 Aug 2021 11:58:29 +0000 (14:58 +0300)
commitfb7a89ad2f048489605611801d480c7bb9d03f94
treee39013999e07667b51770de8b3dd4ce375cb6e6a
parent7a1808f82a37d638ee6862175e8e5c5433fdd642
thunderbolt: Do not read control adapter config space

Adapter 0 is the control adapter and as per USB4 spec in section 2.2.6.2
control Adapters do not have an adapter configuration space.

For this reason skip reading adapter config space in tb_port_init() when
the port number is 0. This actually simplifies the rest of the function
as we don't need to check for the port->port == 0 anymore.

While there drop the extra empty line at the end of the function.

Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@amd.com>
Signed-off-by: Sanjay R Mehta <sanju.mehta@amd.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/thunderbolt/switch.c