From 9678539b79729c714d5ac5c4bb1fc1dd9d728be4 Mon Sep 17 00:00:00 2001 From: Michael Karcher Date: Sun, 3 Jan 2010 15:09:17 +0000 Subject: [PATCH] Fix Intel FWH decode size Fixes wrong detection of area decoded to the FWH interfaces. Corresponding to flashrom svn r826. Signed-off-by: Michael Karcher Acked-by: Carl-Daniel Hailfinger --- chipset_enable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chipset_enable.c b/chipset_enable.c index ad0e645da..6a0fc4ff5 100644 --- a/chipset_enable.c +++ b/chipset_enable.c @@ -364,7 +364,7 @@ static int enable_flash_ich_dc(struct pci_dev *dev, const char *name) (0x1ff8 + i) * 0x80000, (0x1ff0 + i) * 0x80000, tmp ? "en" : "dis"); - if ((tmp == 0) && contiguous) { + if ((tmp == 1) && contiguous) { max_decode_fwh_decode = (8 - i) * 0x80000; } else { contiguous = 0; @@ -376,7 +376,7 @@ static int enable_flash_ich_dc(struct pci_dev *dev, const char *name) (0xff4 + i) * 0x100000, (0xff0 + i) * 0x100000, tmp ? "en" : "dis"); - if ((tmp == 0) && contiguous) { + if ((tmp == 1) && contiguous) { max_decode_fwh_decode = (8 - i) * 0x100000; } else { contiguous = 0;