1 // SPDX-License-Identifier: GPL-2.0
3 * Thunderbolt driver - quirks
5 * Copyright (c) 2020 Mario Limonciello <mario.limonciello@dell.com>
10 static void quirk_force_power_link(struct tb_switch
*sw
)
12 sw
->quirks
|= QUIRK_FORCE_POWER_LINK_CONTROLLER
;
18 void (*hook
)(struct tb_switch
*sw
);
21 static const struct tb_quirk tb_quirks
[] = {
22 /* Dell WD19TB supports self-authentication on unplug */
23 { 0x00d4, 0xb070, quirk_force_power_link
},
27 * tb_check_quirks() - Check for quirks to apply
28 * @sw: Thunderbolt switch
30 * Apply any quirks for the Thunderbolt controller.
32 void tb_check_quirks(struct tb_switch
*sw
)
36 for (i
= 0; i
< ARRAY_SIZE(tb_quirks
); i
++) {
37 const struct tb_quirk
*q
= &tb_quirks
[i
];
39 if (sw
->device
== q
->device
&& sw
->vendor
== q
->vendor
)