projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tx493xide: use ->pio_mode value to determine pair device speed
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
ide
/
tx4938ide.c
diff --git
a/drivers/ide/tx4938ide.c
b/drivers/ide/tx4938ide.c
index 326d4683488b42942fe38e496539eadf35b3b6e8..1d80f1fdbc973edc18bf77115d4aa612557b3e9e 100644
(file)
--- a/
drivers/ide/tx4938ide.c
+++ b/
drivers/ide/tx4938ide.c
@@
-64,7
+64,7
@@
static void tx4938ide_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive)
pair = ide_get_pair_dev(drive);
if (pair)
- safe = min(safe,
ide_get_best_pio_mode(pair, 255, 5)
);
+ safe = min(safe,
pair->pio_mode - XFER_PIO_0
);
tx4938ide_tune_ebusc(pdata->ebus_ch, pdata->gbus_clock, safe);
}