linux/debian/patches/bugfix/arm/nas100d-pata-artop-single-p...

25 lines
785 B
Diff

Index: linux-2.6.22-rc4-armeb/drivers/ata/pata_artop.c
===================================================================
--- linux-2.6.22-rc4-armeb.orig/drivers/ata/pata_artop.c
+++ linux-2.6.22-rc4-armeb/drivers/ata/pata_artop.c
@@ -26,6 +26,7 @@
#include <scsi/scsi_host.h>
#include <linux/libata.h>
#include <linux/ata.h>
+#include <asm/mach-types.h>
#define DRV_NAME "pata_artop"
#define DRV_VERSION "0.4.3"
@@ -480,6 +481,11 @@ static int artop_init_one (struct pci_de
pci_read_config_byte(pdev, 0x4a, &reg);
pci_write_config_byte(pdev, 0x4a, (reg & ~0x01) | 0x80);
+ /* NAS100D workaround - probing second port kills uhci_hcd */
+#ifdef CONFIG_MACH_NAS100D
+ if (machine_is_nas100d())
+ ppi[1] = &ata_dummy_port_info;
+#endif
}
BUG_ON(ppi[0] == NULL);