]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
thunderbolt: Send uevent after asymmetric/symmetric switch
authorMika Westerberg <mika.westerberg@linux.intel.com>
Tue, 7 Nov 2023 12:34:27 +0000 (14:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:30:04 +0000 (16:30 +0200)
commit3dc5525d59da013e4c2e032c90ab16421d46732f
tree5875114db47222a9ae2f08d6d41251d3d4342e3c
parent6b5630297e943dd61e5928c5b7e3c3ee3f01be20
thunderbolt: Send uevent after asymmetric/symmetric switch

commit 5391bcfa56c79a891734e4d22aa0ca3217b86491 upstream.

We should send uevent to userspace whenever the link speed or width
changes but tb_switch_asym_enable() and tb_switch_asym_disable() set the
sw->link_width already so tb_switch_update_link_attributes() never
noticed the change.

Fix this so that we let tb_switch_update_link_attributes() update the
fields accordingly.

Fixes: 81af2952e606 ("thunderbolt: Add support for asymmetric link")
Reported-by: Pengfei Xu <pengfei.xu@intel.com>
Tested-by: Pengfei Xu <pengfei.xu@intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/thunderbolt/switch.c