Skip to content

Commit ac52552

Browse files
committed
usb: host: use USB buffer macros
Allow to use DMAable buffers in UHC driver and host support. Signed-off-by: Johann Fischer <[email protected]>
1 parent 828b3fe commit ac52552

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

drivers/usb/uhc/uhc_common.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ LOG_MODULE_REGISTER(uhc, CONFIG_UHC_DRIVER_LOG_LEVEL);
1414
K_MEM_SLAB_DEFINE_STATIC(uhc_xfer_pool, sizeof(struct uhc_transfer),
1515
CONFIG_UHC_XFER_COUNT, sizeof(void *));
1616

17-
NET_BUF_POOL_VAR_DEFINE(uhc_ep_pool,
17+
USB_BUF_POOL_VAR_DEFINE(uhc_ep_pool,
1818
CONFIG_UHC_BUF_COUNT, CONFIG_UHC_BUF_POOL_SIZE,
1919
0, NULL);
2020

21-
2221
int uhc_submit_event(const struct device *dev,
2322
const enum uhc_event_type type,
2423
const int status)

subsys/usb/host/usbip.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ LOG_MODULE_REGISTER(usbip, CONFIG_USBIP_LOG_LEVEL);
2424
USBH_CONTROLLER_DEFINE(usbip_uhs_ctx, DEVICE_DT_GET(DT_NODELABEL(zephyr_uhc0)));
2525

2626
#define USBIP_MAX_PKT_SIZE 2048
27-
NET_BUF_POOL_DEFINE(usbip_pool, 32, USBIP_MAX_PKT_SIZE, 0, NULL);
27+
USB_BUF_POOL_DEFINE(usbip_pool, 32, USBIP_MAX_PKT_SIZE, 0, NULL);
2828

2929
K_THREAD_STACK_DEFINE(usbip_thread_stack, CONFIG_USBIP_THREAD_STACK_SIZE);
3030
K_THREAD_STACK_ARRAY_DEFINE(dev_thread_stacks, CONFIG_USBIP_DEVICES_COUNT,

0 commit comments

Comments
 (0)