X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/789ebb2d04033053b3cfeaa73648e3a1c3b3d8f5..623bacefa16295fa34407543514013abae7c01d9:/hardware/ich2/smi.c?ds=inline diff --git a/hardware/ich2/smi.c b/hardware/ich2/smi.c index 0e43185..b3df153 100644 --- a/hardware/ich2/smi.c +++ b/hardware/ich2/smi.c @@ -35,12 +35,10 @@ void smi_disable() outl(smi_en, inl(smi_en) & ~ICH2_SMI_EN_GBL_SMI_EN); /* Try really hard to shut up USB_LEGKEY. */ - pci_write16(ICH2_USB0_BUS, ICH2_USB0_DEV, ICH2_USB0_FN, ICH2_USB_LEGKEY, 0x0); pci_write16(ICH2_USB0_BUS, ICH2_USB0_DEV, ICH2_USB0_FN, ICH2_USB_LEGKEY, - pci_read16(ICH2_USB0_BUS, ICH2_USB0_DEV, ICH2_USB0_FN, ICH2_USB_LEGKEY)); - pci_write16(ICH2_USB1_BUS, ICH2_USB1_DEV, ICH2_USB1_FN, ICH2_USB_LEGKEY, 0x0); + pci_read16(ICH2_USB0_BUS, ICH2_USB0_DEV, ICH2_USB0_FN, ICH2_USB_LEGKEY) & ~0x8000); pci_write16(ICH2_USB1_BUS, ICH2_USB1_DEV, ICH2_USB1_FN, ICH2_USB_LEGKEY, - pci_read16(ICH2_USB1_BUS, ICH2_USB1_DEV, ICH2_USB1_FN, ICH2_USB_LEGKEY)); + pci_read16(ICH2_USB1_BUS, ICH2_USB1_DEV, ICH2_USB1_FN, ICH2_USB_LEGKEY) & ~0x8000); }