On Friday 11 November 2011 05:59:56 Wolfgang Grandegger wrote: > Commit 79ad54400932d6484178a372fb3b659e3437473b broke the MAC > address programming. Fix this by using the method from Linux' > smsc95xx_set_mac_address(). > > --- a/drivers/usb/eth/smsc95xx.c > +++ b/drivers/usb/eth/smsc95xx.c > > - u32 addr_lo, addr_hi; > + u32 addr_lo = eth->enetaddr[0] | eth->enetaddr[1] << 8 | > + eth->enetaddr[2] << 16 | eth->enetaddr[3] << 24; > + u32 addr_hi = eth->enetaddr[4] | eth->enetaddr[5] << 8;
please use: #include <asm/unaligned.h> u32 addr_lo = __get_unaligned_le32(ð->enetaddr[0]); u32 addr_hi = __get_unaligned_le16(ð->enetaddr[4]); -mike
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot