Hi This is my first patch for my PA RISC C8000 machine: allow to use the onboard NIC.
Mikulas --- Allow the driver to be used on PA RISC C8000 workstation Search on the internet shows that the checksum field in the EEPROM on HPPA is really not a checksum but a signature (different users including me found the same mismatching checksum 0x16d6, despite their MAC addresses and EEPROM content being different). So I allow 0x16d6 (the last word read) as the matching checksum on hppa. Signed-off-by: Mikulas Patocka <[email protected]> Index: linux-2.6.36-rc8/drivers/net/e1000/e1000_hw.c =================================================================== --- linux-2.6.36-rc8.orig/drivers/net/e1000/e1000_hw.c 2010-10-24 04:01:03.000000000 +0200 +++ linux-2.6.36-rc8/drivers/net/e1000/e1000_hw.c 2010-10-24 04:25:22.000000000 +0200 @@ -3840,6 +3840,12 @@ s32 e1000_validate_eeprom_checksum(struc checksum += eeprom_data; } +#ifdef __hppa__ + /* This seems to be a signature and not a checksum on HP c8000 */ + if (eeprom_data == 0x16d6) + return E1000_SUCCESS; +#endif + if (checksum == (u16) EEPROM_SUM) return E1000_SUCCESS; else { ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ E1000-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/e1000-devel To learn more about Intel® Ethernet, visit http://communities.intel.com/community/wired
