Commit 8c1600d
usb: xhci: fix maximum event ring segments calculation
The migration to FIELD_GET introduced an incorrect bit shift.
Instead of raising 2 to the power of the register value, the code
incorrectly used a static shift of 2 (<< 2). This severely limits the
maximum event ring segments on modern controllers.
Fix this by converting the FIELD_GET result to a proper power of two
using the BIT() macro.
Signed-off-by: Mathias Nyman <mathias.nyman@://intel.com>1 parent 2fbf464 commit 8c1600d
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2301 | 2301 | | |
2302 | 2302 | | |
2303 | 2303 | | |
2304 | | - | |
| 2304 | + | |
2305 | 2305 | | |
2306 | 2306 | | |
2307 | 2307 | | |
| |||
0 commit comments