Skip to contentSkip to conversation

ICH Force HPET: ICH5 fix a bug with suspend/resume

PATCH In review Venki Pallipadi 1 participant 1 message Jun 22, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 6/7 ICH Force HPET: ICH5 fix a bug with suspend/resume

A bugfix in ich5 hpet force detect which caused resumes to fail. Thanks to Udo A Steinberg for reporting the problem.

---
 arch/i386/kernel/quirks.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/i386/kernel/quirks.c +1 -1
Index: linux-2.6.22-rc5/arch/i386/kernel/quirks.c
===================================================================
@@ -199,7 +199,6 @@ static void old_ich_force_enable_hpet(st
 		force_hpet_address = 0xFED00000 | (val << 12);
 		printk(KERN_DEBUG "HPET at base address 0x%lx\n",
 			       force_hpet_address);
-		cached_dev = dev;
 		return;
 	}
 
@@ -221,6 +220,7 @@ static void old_ich_force_enable_hpet(st
 		force_hpet_address = 0xFED00000 | (val << 12);
 		printk(KERN_DEBUG "Force enabled HPET at base address 0x%lx\n",
 			       force_hpet_address);
+		cached_dev = dev;
 		force_hpet_resume_type = OLD_ICH_FORCE_HPET_RESUME;
 		return;
 	}