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)
committerMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 17 Nov 2023 11:05:57 +0000 (13:05 +0200)
commit5391bcfa56c79a891734e4d22aa0ca3217b86491
tree703a72cc77ee0ccb6c3bbe03d86e1011c98fa3df
parent24d85bb3be373b5831699bddf698b392bd2b904d
thunderbolt: Send uevent after asymmetric/symmetric switch

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>
drivers/thunderbolt/switch.c