Skip to content

Commit 0dcd0a7

Browse files
bzolnierJeff Garzik
authored andcommitted
libata: remove no longer needed pata_qdi driver
QDI65x0 controllers are fully supported by pata_legacy driver so remove no longer needed pata_qdi driver. Leave PATA_QDI config option for compatibility reasons and teach pata_legacy to preserve the old behavior of pata_qdi driver. Acked-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
1 parent 4780c0b commit 0dcd0a7

4 files changed

Lines changed: 9 additions & 368 deletions

File tree

‎drivers/ata/Kconfig‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,7 @@ config PATA_OF_PLATFORM
831831
config PATA_QDI
832832
tristate "QDI VLB PATA support"
833833
depends on ISA
834+
select PATA_LEGACY
834835
help
835836
Support for QDI 6500 and 6580 PATA controllers on VESA local bus.
836837

‎drivers/ata/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ obj-$(CONFIG_PATA_PCMCIA) += pata_pcmcia.o
8888
obj-$(CONFIG_PATA_PALMLD) += pata_palmld.o
8989
obj-$(CONFIG_PATA_PLATFORM) += pata_platform.o
9090
obj-$(CONFIG_PATA_OF_PLATFORM) += pata_of_platform.o
91-
obj-$(CONFIG_PATA_QDI) += pata_qdi.o
9291
obj-$(CONFIG_PATA_RB532) += pata_rb532_cf.o
9392
obj-$(CONFIG_PATA_RZ1000) += pata_rz1000.o
9493
obj-$(CONFIG_PATA_SAMSUNG_CF) += pata_samsung_cf.o

‎drivers/ata/pata_legacy.c‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,17 @@ static int ht6560a; /* HT 6560A on primary 1, second 2, both 3 */
137137
static int ht6560b; /* HT 6560A on primary 1, second 2, both 3 */
138138
static int opti82c611a; /* Opti82c611A on primary 1, sec 2, both 3 */
139139
static int opti82c46x; /* Opti 82c465MV present(pri/sec autodetect) */
140-
static int qdi; /* Set to probe QDI controllers */
141140
static int autospeed; /* Chip present which snoops speed changes */
142141
static int pio_mask = ATA_PIO4; /* PIO range for autospeed devices */
143142
static int iordy_mask = 0xFFFFFFFF; /* Use iordy if available */
144143

144+
/* Set to probe QDI controllers */
145+
#ifdef CONFIG_PATA_QDI_MODULE
146+
static int qdi = 1;
147+
#else
148+
static int qdi;
149+
#endif
150+
145151
#ifdef CONFIG_PATA_WINBOND_VLB_MODULE
146152
static int winbond = 1; /* Set to probe Winbond controllers,
147153
give I/O port if non standard */
@@ -1306,6 +1312,7 @@ MODULE_AUTHOR("Alan Cox");
13061312
MODULE_DESCRIPTION("low-level driver for legacy ATA");
13071313
MODULE_LICENSE("GPL");
13081314
MODULE_VERSION(DRV_VERSION);
1315+
MODULE_ALIAS("pata_qdi");
13091316
MODULE_ALIAS("pata_winbond");
13101317

13111318
module_param(probe_all, int, 0);

0 commit comments

Comments
 (0)