diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-06-07 09:37:09 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-06-07 09:37:09 -0400 |
commit | 8bc1e5aa06a2a9a425c4a6795fc564cba1521487 (patch) | |
tree | 16f9e58bf832d1caaf1b7962f670c10a951cc056 /drivers/ide/pdc202xx_new.c | |
parent | 0fcef027f60318cfa64ae4cdf5aa33905607d650 (diff) |
ide: respect quirk_drives[] list on all controllers
* Add ide_check_nien_quirk_list() helper to the core code
and then use it in ide_port_tune_devices().
* Remove no longer needed ->quirkproc methods from hpt366.c
and pdc202xx_{new,old}.c.
Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/pdc202xx_new.c')
-rw-r--r-- | drivers/ide/pdc202xx_new.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/drivers/ide/pdc202xx_new.c b/drivers/ide/pdc202xx_new.c index b68906c3c17e..65ba8239e7b5 100644 --- a/drivers/ide/pdc202xx_new.c +++ b/drivers/ide/pdc202xx_new.c | |||
@@ -40,18 +40,6 @@ | |||
40 | #define DBG(fmt, args...) | 40 | #define DBG(fmt, args...) |
41 | #endif | 41 | #endif |
42 | 42 | ||
43 | static const char *pdc_quirk_drives[] = { | ||
44 | "QUANTUM FIREBALLlct08 08", | ||
45 | "QUANTUM FIREBALLP KA6.4", | ||
46 | "QUANTUM FIREBALLP KA9.1", | ||
47 | "QUANTUM FIREBALLP LM20.4", | ||
48 | "QUANTUM FIREBALLP KX13.6", | ||
49 | "QUANTUM FIREBALLP KX20.5", | ||
50 | "QUANTUM FIREBALLP KX27.3", | ||
51 | "QUANTUM FIREBALLP LM20.5", | ||
52 | NULL | ||
53 | }; | ||
54 | |||
55 | static u8 max_dma_rate(struct pci_dev *pdev) | 43 | static u8 max_dma_rate(struct pci_dev *pdev) |
56 | { | 44 | { |
57 | u8 mode; | 45 | u8 mode; |
@@ -200,19 +188,6 @@ static u8 pdcnew_cable_detect(ide_hwif_t *hwif) | |||
200 | return ATA_CBL_PATA80; | 188 | return ATA_CBL_PATA80; |
201 | } | 189 | } |
202 | 190 | ||
203 | static void pdcnew_quirkproc(ide_drive_t *drive) | ||
204 | { | ||
205 | const char **list, *m = (char *)&drive->id[ATA_ID_PROD]; | ||
206 | |||
207 | for (list = pdc_quirk_drives; *list != NULL; list++) | ||
208 | if (strstr(m, *list) != NULL) { | ||
209 | drive->quirk_list = 2; | ||
210 | return; | ||
211 | } | ||
212 | |||
213 | drive->quirk_list = 0; | ||
214 | } | ||
215 | |||
216 | static void pdcnew_reset(ide_drive_t *drive) | 191 | static void pdcnew_reset(ide_drive_t *drive) |
217 | { | 192 | { |
218 | /* | 193 | /* |
@@ -473,7 +448,6 @@ static struct pci_dev * __devinit pdc20270_get_dev2(struct pci_dev *dev) | |||
473 | static const struct ide_port_ops pdcnew_port_ops = { | 448 | static const struct ide_port_ops pdcnew_port_ops = { |
474 | .set_pio_mode = pdcnew_set_pio_mode, | 449 | .set_pio_mode = pdcnew_set_pio_mode, |
475 | .set_dma_mode = pdcnew_set_dma_mode, | 450 | .set_dma_mode = pdcnew_set_dma_mode, |
476 | .quirkproc = pdcnew_quirkproc, | ||
477 | .resetproc = pdcnew_reset, | 451 | .resetproc = pdcnew_reset, |
478 | .cable_detect = pdcnew_cable_detect, | 452 | .cable_detect = pdcnew_cable_detect, |
479 | }; | 453 | }; |