From: Steve Hodgson Date: Wed, 28 Apr 2010 09:25:22 +0000 (+0000) Subject: sfc: Ignore parity errors in the other port's SRAM X-Git-Tag: v2.6.35-rc1~473^2~330 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b17424b0b29f94561e73ab9be34037746b378089;p=platform%2Fupstream%2Fkernel-adaptation-pc.git sfc: Ignore parity errors in the other port's SRAM Siena has a separate SRAM bank for each port. On single-port boards these can be merged together, so each port has an interrupt flag for parity errors in the other port's SRAM. Currently we do not enable such merging and should mask this interrupt source. Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller --- diff --git a/drivers/net/sfc/nic.c b/drivers/net/sfc/nic.c index b06f8e3..664fd6c 100644 --- a/drivers/net/sfc/nic.c +++ b/drivers/net/sfc/nic.c @@ -1563,6 +1563,8 @@ void efx_nic_init_common(struct efx_nic *efx) FRF_AZ_ILL_ADR_INT_KER_EN, 1, FRF_AZ_RBUF_OWN_INT_KER_EN, 1, FRF_AZ_TBUF_OWN_INT_KER_EN, 1); + if (efx_nic_rev(efx) >= EFX_REV_SIENA_A0) + EFX_SET_OWORD_FIELD(temp, FRF_CZ_SRAM_PERR_INT_P_KER_EN, 1); EFX_INVERT_OWORD(temp); efx_writeo(efx, &temp, FR_AZ_FATAL_INTR_KER);