summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarius <marius@FreeBSD.org>2012-05-26 08:43:51 +0000
committermarius <marius@FreeBSD.org>2012-05-26 08:43:51 +0000
commit713e6f8d0c0acc47cc23d4c2731c1383d85daf33 (patch)
treec43480c73f72bd3228576ff288950cc39a1c2f97
parent18530f80379ab438642abe23b3506e9c33f568f6 (diff)
downloadFreeBSD-src-713e6f8d0c0acc47cc23d4c2731c1383d85daf33.zip
FreeBSD-src-713e6f8d0c0acc47cc23d4c2731c1383d85daf33.tar.gz
Make the VIA workaround application somewhat more consistent with the
ATI one.
-rw-r--r--sys/dev/usb/controller/ehci_pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/controller/ehci_pci.c b/sys/dev/usb/controller/ehci_pci.c
index 39945d8..7c27873 100644
--- a/sys/dev/usb/controller/ehci_pci.c
+++ b/sys/dev/usb/controller/ehci_pci.c
@@ -243,7 +243,8 @@ ehci_pci_via_quirk(device_t self)
val = pci_read_config(self, 0x4b, 1);
if (val & 0x20)
return;
- pci_write_config(self, 0x4b, val | 0x20, 1);
+ val |= 0x20;
+ pci_write_config(self, 0x4b, val, 1);
device_printf(self, "VIA-quirk applied\n");
}
}
OpenPOWER on IntegriCloud