[U-Boot] [PATCH 4/4]: arm: Kirkwood: See to it that sent data is 8-byte aligned
Prafulla Wadaskar
prafulla at marvell.com
Wed Jul 8 14:17:08 CEST 2009
> -----Original Message-----
> From: Simon Kagstrom [mailto:simon.kagstrom at netinsight.net]
> Sent: Wednesday, July 08, 2009 4:36 PM
> To: U-Boot ML; Prafulla Wadaskar
> Subject: [PATCH 4/4]: arm: Kirkwood: See to it that sent data
> is 8-byte aligned
>
> U-boot might use non-8-byte-aligned addresses for sending
> data, which the kwgbe_send doesn't accept (bootp does this
> for me). This patch copies the data to be sent to a temporary
> buffer if it is non-aligned.
Kirkwood egiga driver may not be the only client for this kind of requirements. Any Ethernet controller using DMA will require aligned data pointer.
I would suggest either upper layers should pass the aligned buffer pointers
Or
this patch should go in net/ethic, so that other drivers can benefit
Regards..
Prafulla . .
More information about the U-Boot
mailing list