]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - drivers/usb/gadget/ether.c
usb: gadget: Fix data aborts during USB ethernet boot
[karo-tx-uboot.git] / drivers / usb / gadget / ether.c
index 579893cbffb5ca5ea25e52f14abe3981d0d6d09b..700d5fbfb2ffa4f77faf24fea40bae5b5e32b486 100644 (file)
@@ -849,9 +849,10 @@ static struct usb_gadget_strings   stringtab = {
 };
 
 /*============================================================================*/
-static u8 control_req[USB_BUFSIZ];
+DEFINE_CACHE_ALIGN_BUFFER(u8, control_req, USB_BUFSIZ);
+
 #if defined(CONFIG_USB_ETH_CDC) || defined(CONFIG_USB_ETH_RNDIS)
-static u8 status_req[STATUS_BYTECOUNT] __attribute__ ((aligned(4)));
+DEFINE_CACHE_ALIGN_BUFFER(u8, status_req, STATUS_BYTECOUNT);
 #endif