diff mbox

e1000: Allow the driver to be used on PA RISC C8000 workstation

Message ID alpine.DEB.1.10.1010240417160.30241@artax.karlin.mff.cuni.cz (mailing list archive)
State Awaiting Upstream
Delegated to: Helge Deller
Headers show

Commit Message

Mikulas Patocka Oct. 24, 2010, 2:28 a.m. UTC
None
diff mbox

Patch

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 {