OSDN Git Service

pdc202xx_old: fix resetproc() method
authorSergei Shtylyov <sshtylyov@ru.mvista.com>
Sun, 7 Jun 2009 11:52:50 +0000 (13:52 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Sun, 7 Jun 2009 11:52:50 +0000 (13:52 +0200)
commit669165daad2ec839df85b8c5f7bc155e76a2f404
tree8f30dad6d22568f42bf187264f267b80ac88b1e4
parent521a415c9f6d4e5463807ce6d36598acabcd204f
pdc202xx_old: fix resetproc() method

pdc202xx_reset() calls pdc202xx_reset_host() twice, for both channels, while
that function actually twiddles the single, shared software reset bit -- the
net effect is a duplicated reset and horrendous 4 second delay happening not
only on a channel reset but also when dma_lost_irq() and dma_clear() methods
are called.  Fold pdc202xx_reset_host() into pdc202xx_reset(), fix printk(),
and move it before the actual reset...

Signed-off-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/pdc202xx_old.c