From b9b2bfea8449535f767c85ae956d6968c782ae4b Mon Sep 17 00:00:00 2001 From: Steven Walter Date: Mon, 30 Oct 2006 18:00:19 -0500 Subject: [PATCH] [UBUNTU:drivers/pci/quirks.c] Remove quirk_via_abnormal_poweroff Reference: https://launchpad.net/distros/ubuntu/+source/linux-source-2.6.17/+bug/63134 quirk_via_abnormal_poweroff causes some via-based mini-ITX boards to panic on boot. Signed-off-by: Steven Walter --- drivers/pci/quirks.c | 27 --------------------------- 1 files changed, 0 insertions(+), 27 deletions(-) diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c index 9b76f29..1bdf39c 100644 --- a/drivers/pci/quirks.c +++ b/drivers/pci/quirks.c @@ -667,33 +667,6 @@ static void __devinit quirk_vt82c598_id( } DECLARE_PCI_FIXUP_HEADER(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_82C597_0, quirk_vt82c598_id ); -#ifdef CONFIG_ACPI_SLEEP - -/* - * Some VIA systems boot with the abnormal status flag set. This can cause - * the BIOS to re-POST the system on resume rather than passing control - * back to the OS. Clear the flag on boot - */ -static void __devinit quirk_via_abnormal_poweroff(struct pci_dev *dev) -{ - u32 reg; - - acpi_hw_register_read(ACPI_MTX_DO_NOT_LOCK, ACPI_REGISTER_PM1_STATUS, - ®); - - if (reg & 0x800) { - printk("Clearing abnormal poweroff flag\n"); - acpi_hw_register_write(ACPI_MTX_DO_NOT_LOCK, - ACPI_REGISTER_PM1_STATUS, - (u16)0x800); - } -} - -DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8235, quirk_via_abnormal_poweroff); -DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_VIA, PCI_DEVICE_ID_VIA_8237, quirk_via_abnormal_poweroff); - -#endif - /* * CardBus controllers have a legacy base address that enables them * to respond as i82365 pcmcia controllers. We don't want them to -- 1.4.3.rc3.gb32db