]> git.sur5r.net Git - u-boot/commit
usb: gadget: Fix data aborts during USB ethernet boot
authorJoel Fernandes <joelf@ti.com>
Wed, 4 Sep 2013 23:55:14 +0000 (18:55 -0500)
committerMarek Vasut <marex@denx.de>
Tue, 24 Sep 2013 15:51:34 +0000 (17:51 +0200)
commit5290759cc4008075fb9333b32b49d74b8b5c3258
treebd0f78f8da8dae91fd19633978faa9421b4928f0
parent6b40852da5c8dd710f9d61204affff3c6a3c9d22
usb: gadget: Fix data aborts during USB ethernet boot

As seen on GCC 4.6 Linaro compiler, control_req buffer is not aligned
on 4 byte boundaray causing data aborts in eth_setup -> conf_buf
during dhcp boot over usb_ether. Fix the issue my aligning control_req
buffer using DEFINE_CACHE_ALIGN_BUFFER.

Tested on am335x_evm platform (beaglebone).
Applies on 2013.10-rc1 branch.

Cc: Tom Rini <trini@ti.com>
Cc: Marek Vasut <marex@denx.de>
Signed-off-by: Joel Fernandes <joelf@ti.com>
drivers/usb/gadget/ether.c