Skip to content

Commit bb43061

Browse files
bzolnierdavem330
authored andcommitted
siimage: use ->pio_mode value to determine pair device speed
Use the current PIO mode value instead of the physical maximum one of the pair device on the port to determine PIO commmand timings used for both devices on the port. Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 0716302 commit bb43061

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/ide/siimage.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ static void sil_set_pio_mode(ide_hwif_t *hwif, ide_drive_t *drive)
258258

259259
/* trim *taskfile* PIO to the slowest of the master/slave */
260260
if (pair) {
261-
u8 pair_pio = ide_get_best_pio_mode(pair, 255, 4);
261+
u8 pair_pio = pair->pio_mode - XFER_PIO_0;
262262

263263
if (pair_pio < tf_pio)
264264
tf_pio = pair_pio;

0 commit comments

Comments
 (0)