summaryrefslogtreecommitdiffstats
path: root/sys/dev/firewire
diff options
context:
space:
mode:
authorsimokawa <simokawa@FreeBSD.org>2005-01-06 07:40:34 +0000
committersimokawa <simokawa@FreeBSD.org>2005-01-06 07:40:34 +0000
commitc76c089dc2a9994403b8714bd06432ec4e3050a3 (patch)
tree5823e275bec42c55496a5eab9c3ecfb0871d1517 /sys/dev/firewire
parent6494b2d4b08c4e29a29c6c0c16eb0b3633b5e1ac (diff)
downloadFreeBSD-src-c76c089dc2a9994403b8714bd06432ec4e3050a3.zip
FreeBSD-src-c76c089dc2a9994403b8714bd06432ec4e3050a3.tar.gz
Clear PCIM_CMD_SERRESPEN and PCIM_CMD_PERRESPEN for broken hardware.
Some amd64 laptops fail to boot with these flags. PR: kern/75482
Diffstat (limited to 'sys/dev/firewire')
-rw-r--r--sys/dev/firewire/fwohci_pci.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/firewire/fwohci_pci.c b/sys/dev/firewire/fwohci_pci.c
index b38f38b..154f0df 100644
--- a/sys/dev/firewire/fwohci_pci.c
+++ b/sys/dev/firewire/fwohci_pci.c
@@ -239,8 +239,9 @@ fwohci_pci_init(device_t self)
cmd = pci_read_config(self, PCIR_COMMAND, 2);
cmd |= PCIM_CMD_MEMEN | PCIM_CMD_BUSMASTEREN | PCIM_CMD_MWRICEN |
PCIM_CMD_SERRESPEN | PCIM_CMD_PERRESPEN;
-#if 1
+#if 1 /* for broken hardware */
cmd &= ~PCIM_CMD_MWRICEN;
+ cmd &= ~(PCIM_CMD_SERRESPEN | PCIM_CMD_PERRESPEN);
#endif
pci_write_config(self, PCIR_COMMAND, cmd, 2);
OpenPOWER on IntegriCloud