Commit 5391bcf
committed
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: 81af295 ("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>1 parent 24d85bb commit 5391bcf
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2880 | 2880 | | |
2881 | 2881 | | |
2882 | 2882 | | |
| 2883 | + | |
2883 | 2884 | | |
2884 | 2885 | | |
2885 | 2886 | | |
| |||
2919 | 2920 | | |
2920 | 2921 | | |
2921 | 2922 | | |
2922 | | - | |
2923 | 2923 | | |
2924 | 2924 | | |
2925 | 2925 | | |
| 2926 | + | |
2926 | 2927 | | |
2927 | 2928 | | |
2928 | 2929 | | |
| |||
2957 | 2958 | | |
2958 | 2959 | | |
2959 | 2960 | | |
2960 | | - | |
2961 | 2961 | | |
2962 | 2962 | | |
2963 | 2963 | | |
| |||
0 commit comments