From: Jeff Kirsher <hidden> Date: 2011-08-31 00:49:41
The checksum field in the EEPROM on HPPA is really not a
checksum but a signature (0x16d6). So allow 0x16d6 as the
matching checksum on HPPA systems.
This issue is present on longterm/stable kernels, I have
verified that this patch is applicable back to at least
2.6.32.y kernels.
v2- changed ifdef to use CONFIG_PARISC instead of __hppa__
CC: Guy Martin <redacted>
CC: Rolf Eike Beer <redacted>
CC: Matt Turner <mattst88@gmail.com>
Reported-by: Mikulas Patocka <redacted>
Signed-off-by: Jeff Kirsher <redacted>
Acked-by: Jesse Brandeburg <redacted>
---
drivers/net/e1000/e1000_hw.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
@@ -4026,6 +4026,12 @@ s32 e1000_validate_eeprom_checksum(struct e1000_hw *hw)checksum+=eeprom_data;}+#ifdef CONFIG_PARISC+/* This is a signature and not a checksum on HP c8000 */+if((hw->subsystem_vendor_id==0x103C)&&(eeprom_data==0x16d6))+returnE1000_SUCCESS;++#endifif(checksum==(u16)EEPROM_SUM)returnE1000_SUCCESS;else{
From: David Miller <davem@davemloft.net> Date: 2011-08-31 00:59:09
From: Jeff Kirsher <redacted>
Date: Tue, 30 Aug 2011 17:49:37 -0700
The checksum field in the EEPROM on HPPA is really not a
checksum but a signature (0x16d6). So allow 0x16d6 as the
matching checksum on HPPA systems.
This issue is present on longterm/stable kernels, I have
verified that this patch is applicable back to at least
2.6.32.y kernels.
v2- changed ifdef to use CONFIG_PARISC instead of __hppa__
CC: Guy Martin <redacted>
CC: Rolf Eike Beer <redacted>
CC: Matt Turner <mattst88@gmail.com>
Reported-by: Mikulas Patocka <redacted>
Signed-off-by: Jeff Kirsher <redacted>
Acked-by: Jesse Brandeburg <redacted>
On Tue, Aug 30, 2011 at 05:49:37PM -0700, Jeff Kirsher wrote:
The checksum field in the EEPROM on HPPA is really not a
checksum but a signature (0x16d6). So allow 0x16d6 as the
matching checksum on HPPA systems.
This issue is present on longterm/stable kernels, I have
verified that this patch is applicable back to at least
2.6.32.y kernels.
v2- changed ifdef to use CONFIG_PARISC instead of __hppa__
CC: Guy Martin <redacted>
CC: Rolf Eike Beer <redacted>
CC: Matt Turner <mattst88@gmail.com>
Reported-by: Mikulas Patocka <redacted>
Signed-off-by: Jeff Kirsher <redacted>
Acked-by: Jesse Brandeburg <redacted>
---
<formletter>
This is not the correct way to submit patches for inclusion in the
stable kernel tree. Please read Documentation/stable_kernel_rules.txt
for how to do this properly.
</formletter>