diff options
| author | Niklas Neronin <niklas.neronin@linux.intel.com> | 2026-06-03 12:11:32 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-06-03 19:23:30 +0200 |
| commit | e0df1a7db3c0b77d5005928b7c6c48b97f7d072e (patch) | |
| tree | ed69743287dc8dc1fec0705d5ed8e970939aa9de /scripts/dummy-tools/python3 | |
| parent | 6ef46f3a013012e8b9943adac4d9e8780de9688e (diff) | |
usb: xhci: allocate internal DCBAA mirror dynamically
Allocate the internal virtual device array dynamically based on the
maximum number of slots reported by the host controller. Previously,
the array was always allocated to the absolute maximum of 255 entries.
Repurpose the 'MAX_HC_SLOTS' macro to limit the number of enabled slots.
This mirrors how the maximum number of ports and interrupters are handled.
The allocation now uses kcalloc_node(), which zeroes the memory
automatically, making the explicit memset() call unnecessary.
Signed-off-by: Niklas Neronin <niklas.neronin@linux.intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://patch.msgid.link/20260603091132.1110849-16-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/dummy-tools/python3')
0 files changed, 0 insertions, 0 deletions
