aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/edac/e752x_edac.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/edac/e752x_edac.c b/drivers/edac/e752x_edac.c
index ab9873924f4f..9abfc0dc3bae 100644
--- a/drivers/edac/e752x_edac.c
+++ b/drivers/edac/e752x_edac.c
@@ -782,7 +782,12 @@ static void e752x_init_csrows(struct mem_ctl_info *mci, struct pci_dev *pdev,
782 u8 value; 782 u8 value;
783 u32 dra, drc, cumul_size; 783 u32 dra, drc, cumul_size;
784 784
785 pci_read_config_dword(pdev, E752X_DRA, &dra); 785 dra = 0;
786 for (index=0; index < 4; index++) {
787 u8 dra_reg;
788 pci_read_config_byte(pdev, E752X_DRA+index, &dra_reg);
789 dra |= dra_reg << (index * 8);
790 }
786 pci_read_config_dword(pdev, E752X_DRC, &drc); 791 pci_read_config_dword(pdev, E752X_DRC, &drc);
787 drc_chan = dual_channel_active(ddrcsr); 792 drc_chan = dual_channel_active(ddrcsr);
788 drc_drbg = drc_chan + 1; /* 128 in dual mode, 64 in single */ 793 drc_drbg = drc_chan + 1; /* 128 in dual mode, 64 in single */