]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
i7300_edac: Clear the error bit after reading
authorMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 27 Aug 2010 03:46:57 +0000 (00:46 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 30 Aug 2010 17:56:49 +0000 (14:56 -0300)
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/edac/i7300_edac.c

index e617b4f79dd80bcce8c828b02ed150bad842e328..f2f171d0356a6f54d3faf64af25af56f520992a9 100644 (file)
@@ -299,6 +299,11 @@ static void i7300_process_error_global(struct mem_ctl_info *mci,
                                        ARRAY_SIZE(ferr_global_hi_name));
                specific = GET_ERR_FROM_TABLE(ferr_global_hi_name, errnum);
                is_fatal = ferr_global_hi_is_fatal(errnum);
+
+               /* Clear the error bit */
+               pci_write_config_dword(pvt->pci_dev_16_2_fsb_err_regs,
+                                      FERR_GLOBAL_HI, value);
+
                goto error_global;
        }
 
@@ -310,6 +315,11 @@ static void i7300_process_error_global(struct mem_ctl_info *mci,
                                        ARRAY_SIZE(ferr_global_lo_name));
                specific = GET_ERR_FROM_TABLE(ferr_global_lo_name, errnum);
                is_fatal = ferr_global_lo_is_fatal(errnum);
+
+               /* Clear the error bit */
+               pci_write_config_dword(pvt->pci_dev_16_2_fsb_err_regs,
+                                      FERR_GLOBAL_LO, value);
+
                goto error_global;
        }
        return;