[patch] 2.3.18: floppy/IDE resource conflict on alpha

Ivan Kokshaysky (ink@jurassic.park.msu.ru)
Thu, 23 Sep 1999 19:12:46 +0400


This patch fixes `Floppy io-port 0x03f0 in use' problem on
alphas with cy82c963 chip.

Ivan.

--- 2.3.18ac8/arch/alpha/kernel/pci.c Thu Sep 2 02:34:01 1999
+++ linux/arch/alpha/kernel/pci.c Thu Sep 23 18:27:58 1999
@@ -81,6 +81,13 @@
for (dev = pci_devices; dev; dev = dev->next) {
if (dev->class >> 8 != PCI_CLASS_STORAGE_IDE)
continue;
+ /* Resource 1 of IDE controller is the address of HD_CMD
+ register which actually occupies a single byte (0x3f6
+ for ide0) in reported 0x3f4-3f7 range. We have to fix
+ that to avoid resource conflict with AT-style floppy
+ controller. */
+ dev->resource[1].start += 2;
+ dev->resource[1].end = dev->resource[1].start;
for (i = 0; i < PCI_NUM_RESOURCES; i++) {
if (dev->resource[i].flags)
pci_claim_resource(dev, i);

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/