[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <46BF8D7D.5070105@gandalf.sssup.it>
Date: Mon, 13 Aug 2007 00:45:17 +0200
From: Michael Trimarchi <trimarchi@...dalf.sssup.it>
To: Michael Buesch <mb@...sch.de>
CC: jgarzik@...ox.com, netdev@...r.kernel.org
Subject: Re: dm9000: add set_mac_address() v2
>> + return -EBUSY;
>> +
>> + memcpy(dev->dev_addr, addr->sa_data, dev->addr_len);
>> +
>> + for (i = 0; i < 3; i++)
>> + write_srom_word(db, i,
>> + cpu_to_le16(((u16 *) (addr->sa_data))[i]));
>>
>
> Nope.
>
> write_srom_word(db, i, le16_to_cpu(((__le16 *) (addr->sa_data))[i]));
>
>
Are you sure? I don't know how the dm9000 reads the eeprom back.
regards
Michael
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists