Skip to content

Commit d2d6ddf

Browse files
committed
thunderbolt: Call tb_check_quirks() after initializing adapters
In order to apply quirks based on certain adapter types move call to tb_check_quirks() happen after the adapters are initialized. This should not affect the existing quirks. Cc: [email protected] Signed-off-by: Mika Westerberg <[email protected]>
1 parent cd0c1e5 commit d2d6ddf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/thunderbolt/switch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2968,8 +2968,6 @@ int tb_switch_add(struct tb_switch *sw)
29682968
dev_warn(&sw->dev, "reading DROM failed: %d\n", ret);
29692969
tb_sw_dbg(sw, "uid: %#llx\n", sw->uid);
29702970

2971-
tb_check_quirks(sw);
2972-
29732971
ret = tb_switch_set_uuid(sw);
29742972
if (ret) {
29752973
dev_err(&sw->dev, "failed to set UUID\n");
@@ -2988,6 +2986,8 @@ int tb_switch_add(struct tb_switch *sw)
29882986
}
29892987
}
29902988

2989+
tb_check_quirks(sw);
2990+
29912991
tb_switch_default_link_ports(sw);
29922992

29932993
ret = tb_switch_update_link_attributes(sw);

0 commit comments

Comments
 (0)