usb: mv_udc: Add bounce buffer
The requests sent to the controller are not properly cache aligned most of the time, thus implement a simple bounce buffer to avoid problem with cache. Signed-off-by: Marek Vasut <marex@denx.de> Cc: Fabio Estevam <fabio.estevam@freescale.com> Cc: Lei Wen <leiwen@marvell.com> Cc: Otavio Salvador <otavio@ossystems.com.br> Cc: Stefano Babic <sbabic@denx.de>
This commit is contained in:
@@ -66,9 +66,13 @@ struct mv_udc {
|
||||
|
||||
struct mv_ep {
|
||||
struct usb_ep ep;
|
||||
struct usb_request req;
|
||||
struct list_head queue;
|
||||
const struct usb_endpoint_descriptor *desc;
|
||||
|
||||
struct usb_request req;
|
||||
uint8_t *b_buf;
|
||||
uint32_t b_len;
|
||||
uint8_t b_fast[64] __aligned(ARCH_DMA_MINALIGN);
|
||||
};
|
||||
|
||||
struct mv_drv {
|
||||
|
||||
Reference in New Issue
Block a user