This is a note to let you know that I've just added the patch titled thunderbolt: Call tb_check_quirks() after initializing adapters to the 6.2-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: thunderbolt-call-tb_check_quirks-after-initializing-adapters.patch and it can be found in the queue-6.2 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From d2d6ddf188f609861489d5d188d545856a3ed399 Mon Sep 17 00:00:00 2001 From: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx> Date: Fri, 3 Feb 2023 15:55:41 +0200 Subject: thunderbolt: Call tb_check_quirks() after initializing adapters From: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx> commit d2d6ddf188f609861489d5d188d545856a3ed399 upstream. 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: stable@xxxxxxxxxxxxxxx Signed-off-by: Mika Westerberg <mika.westerberg@xxxxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/thunderbolt/switch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/drivers/thunderbolt/switch.c +++ b/drivers/thunderbolt/switch.c @@ -2960,8 +2960,6 @@ int tb_switch_add(struct tb_switch *sw) dev_warn(&sw->dev, "reading DROM failed: %d\n", ret); tb_sw_dbg(sw, "uid: %#llx\n", sw->uid); - tb_check_quirks(sw); - ret = tb_switch_set_uuid(sw); if (ret) { dev_err(&sw->dev, "failed to set UUID\n"); @@ -2980,6 +2978,8 @@ int tb_switch_add(struct tb_switch *sw) } } + tb_check_quirks(sw); + tb_switch_default_link_ports(sw); ret = tb_switch_update_link_attributes(sw); Patches currently in stable-queue which might be from mika.westerberg@xxxxxxxxxxxxxxx are queue-6.2/thunderbolt-use-const-qualifier-for-ring_interrupt_index.patch queue-6.2/thunderbolt-add-quirk-to-disable-clx.patch queue-6.2/thunderbolt-rename-shadowed-variables-bit-to-interrupt_bit-and-auto_clear_bit.patch queue-6.2/thunderbolt-use-scale-field-when-allocating-usb3-bandwidth.patch queue-6.2/thunderbolt-disable-interrupt-auto-clear-for-rings.patch queue-6.2/thunderbolt-add-missing-unset_inbound_sbtx-for-retimer-access.patch queue-6.2/thunderbolt-fix-memory-leak-in-margining.patch queue-6.2/thunderbolt-call-tb_check_quirks-after-initializing-adapters.patch