ide-timings: use ->pio_mode value to determine fastest PIO speed
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 19 Jan 2010 09:47:29 +0000 (01:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Jan 2010 09:47:29 +0000 (01:47 -0800)
commit8e714a074bc4da070807d019d4287dcd32af55f5
tree4c13df2062e12406465bd0b1218cadb3dcfe2066
parent8776168ca2151850164af1de5565d01f7b8b2c53
ide-timings: use ->pio_mode value to determine fastest PIO speed

Use the current PIO mode value instead of the physical maximum one
to determine the fastest allowed PIO for shared PIO/DMA timings.

Affected host drivers: amd74xx and via82cxxx.

[ Update comment to match -DaveM ]

Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ide/ide-timings.c