[U-Boot] [PATCH] net: See to it that sent data is aligned to the ethernet controllers wishes

Liu Dave-R63238 DaveLiu at freescale.com
Wed Aug 19 09:36:04 CEST 2009


> 
> See to it that sent data is aligned to the ethernet controllers wishes
> 
> This patch adds a send_alignment member to the eth_device structure
> which specifies what the alignment requirements are for the particular
> device. eth_send checks this alignment on sends, and if it 
> doesn't match
> the device requirement, allocates an aligned buffer and 
> copies the data
> there.
> 
> Currently kirkwood_egiga.c has an 8-byte requirement. This patch is an
> alternative and replacement for "[PATCH] arm:kirkwood See to it that
> sent data is 8-byte aligned" sent here
> 
>   http://lists.denx.de/pipermail/u-boot/2009-August/058829.html
> 
> For other devices, I've setup send_alignment to 1.

Basically NACK for it.
Why you don't resolve the alignment issue in your driver?

Thanks, Dave


More information about the U-Boot mailing list