aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2009-01-03 14:33:48 +0000
committerMarius Strobl <marius@FreeBSD.org>2009-01-03 14:33:48 +0000
commita79bdfef68e10bdcb6541da207462197f482d81a (patch)
treea1fee2a3e0d05e4870939afb3f40551369dfa86d /sys
parent440396a75bde74683a0143e91d678b12fd311dd9 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/usb2/controller/ohci2_pci.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/dev/usb2/controller/ohci2_pci.c b/sys/dev/usb2/controller/ohci2_pci.c
index 990c84983290..b54ade6da590 100644
--- a/sys/dev/usb2/controller/ohci2_pci.c
+++ b/sys/dev/usb2/controller/ohci2_pci.c
@@ -211,6 +211,13 @@ ohci_pci_attach(device_t self)
pci_enable_busmaster(self);
+ /*
+ * Some Sun PCIO-2 USB controllers have their intpin register
+ * bogusly set to 0, although it should be 4. Correct that.
+ */
+ if (pci_get_devid(self) == 0x1103108e && pci_get_intpin(self) == 0)
+ pci_set_intpin(self, 4);
+
rid = PCI_CBMEM;
sc->sc_io_res = bus_alloc_resource_any(self, SYS_RES_MEMORY, &rid,
RF_ACTIVE);