diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2010-01-19 14:30:09 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-01-19 14:30:09 -0500 |
commit | 3dabcfef3e668f6dd32147d810a29ccbd55dc963 (patch) | |
tree | 13c8735dad44277edd2f8efe6b446eb95a6038cd /drivers | |
parent | 220c58bc6d1198c4c4e69a385d364602c38b6b1c (diff) |
ide: ide_timing_compute() fixup
XFER_SW_DMA_0 mode should be excluded from the extended cycle
timing computations.
[ This is just a documentation fix -- code inside the affected
'if' block already makes sure to accept only PIO modes. ]
Noticed-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ide/ide-timings.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-timings.c b/drivers/ide/ide-timings.c index c7a65ee72310..0e05f75934c9 100644 --- a/drivers/ide/ide-timings.c +++ b/drivers/ide/ide-timings.c | |||
@@ -166,7 +166,7 @@ int ide_timing_compute(ide_drive_t *drive, u8 speed, | |||
166 | if (id[ATA_ID_FIELD_VALID] & 2) { /* EIDE drive */ | 166 | if (id[ATA_ID_FIELD_VALID] & 2) { /* EIDE drive */ |
167 | memset(&p, 0, sizeof(p)); | 167 | memset(&p, 0, sizeof(p)); |
168 | 168 | ||
169 | if (speed >= XFER_PIO_0 && speed <= XFER_SW_DMA_0) { | 169 | if (speed >= XFER_PIO_0 && speed < XFER_SW_DMA_0) { |
170 | if (speed <= XFER_PIO_2) | 170 | if (speed <= XFER_PIO_2) |
171 | p.cycle = p.cyc8b = id[ATA_ID_EIDE_PIO]; | 171 | p.cycle = p.cyc8b = id[ATA_ID_EIDE_PIO]; |
172 | else if ((speed <= XFER_PIO_4) || | 172 | else if ((speed <= XFER_PIO_4) || |