Commit c82510b
committed
thunderbolt: Use scale field when allocating USB3 bandwidth
When tunneling aggregated USB3 (20 Gb/s) the bandwidth values that are
programmed to the ADP_USB3_CS_2 go higher than 4096 and that does not
fit anymore to the 12-bit field. Fix this by scaling the value using
the scale field accordingly.
Fixes: 3b1d8d5 ("thunderbolt: Implement USB3 bandwidth negotiation routines")
Cc: stable@vger.kernel.org
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>1 parent f0a57dd commit c82510b
1 file changed
Lines changed: 17 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2094 | 2094 | | |
2095 | 2095 | | |
2096 | 2096 | | |
2097 | | - | |
| 2097 | + | |
2098 | 2098 | | |
2099 | | - | |
2100 | | - | |
2101 | | - | |
| 2099 | + | |
| 2100 | + | |
| 2101 | + | |
| 2102 | + | |
| 2103 | + | |
| 2104 | + | |
| 2105 | + | |
| 2106 | + | |
| 2107 | + | |
| 2108 | + | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
2102 | 2113 | | |
2103 | 2114 | | |
2104 | 2115 | | |
2105 | | - | |
2106 | 2116 | | |
2107 | 2117 | | |
2108 | 2118 | | |
| 2119 | + | |
| 2120 | + | |
2109 | 2121 | | |
2110 | 2122 | | |
2111 | 2123 | | |
| |||
0 commit comments