[PATCH v3 1/3] usb: dwc3: allocate setup_buf with dma_alloc_coherent()

Marek Vasut marex at denx.de
Wed Oct 2 16:51:02 CEST 2024


On 10/2/24 4:39 PM, Neil Armstrong wrote:
> 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 <mkorpershoek at baylibre.com>
> Signed-off-by: Neil Armstrong <neil.armstrong at linaro.org>
Reviewed-by: Marek Vasut <marex at denx.de>


More information about the U-Boot mailing list