]> Git Repo - u-boot.git/commit
usb: dwc3: allocate setup_buf with dma_alloc_coherent()
authorNeil Armstrong <[email protected]>
Fri, 11 Oct 2024 14:38:24 +0000 (16:38 +0200)
committerTom Rini <[email protected]>
Mon, 21 Oct 2024 21:27:33 +0000 (15:27 -0600)
commitef6f4f8e3c0de80f5f6dc4a77d6b18078e6fd2df
tree1e0a0b15331c7463fe753f965155b27226cc524c
parentddbcafeb53e7093c58488596bfce6d8823777c3a
usb: dwc3: allocate setup_buf with dma_alloc_coherent()

Since setup_buf is also consumed by hardware DMA, aligns it's
allocation like other hardware buffers by introduce setup_buf_addr
populated by dma_alloc_coherent(), and use it to pass the physical
address of the buffer to the hardware.

Reviewed-by: Mattijs Korpershoek <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
Signed-off-by: Neil Armstrong <[email protected]>
drivers/usb/dwc3/core.h
drivers/usb/dwc3/ep0.c
drivers/usb/dwc3/gadget.c
This page took 0.03677 seconds and 4 git commands to generate.