add broadcom b44 driver support
[openwrt/openwrt.git] / target / linux / ixp4xx / patches-2.6.23 / 015-nas100d_pata_artop_single_port.patch
1 diff -uprN linux-2.6.23.orig/drivers/ata/pata_artop.c linux-2.6.23/drivers/ata/pata_artop.c
2 --- linux-2.6.23.orig/drivers/ata/pata_artop.c 2007-10-09 15:31:38.000000000 -0500
3 +++ linux-2.6.23/drivers/ata/pata_artop.c 2007-10-11 00:59:14.000000000 -0500
4 @@ -27,6 +27,7 @@
5 #include <scsi/scsi_host.h>
6 #include <linux/libata.h>
7 #include <linux/ata.h>
8 +#include <asm/mach-types.h>
9
10 #define DRV_NAME "pata_artop"
11 #define DRV_VERSION "0.4.4"
12 @@ -489,6 +490,11 @@ static int artop_init_one (struct pci_de
13 pci_read_config_byte(pdev, 0x4a, &reg);
14 pci_write_config_byte(pdev, 0x4a, (reg & ~0x01) | 0x80);
15
16 + /* NAS100D workaround - probing second port kills uhci_hcd */
17 +#ifdef CONFIG_MACH_NAS100D
18 + if (machine_is_nas100d())
19 + ppi[1] = &ata_dummy_port_info;
20 +#endif
21 }
22
23 BUG_ON(ppi[0] == NULL);