OSDN Git Service

libata,pata_via: revert ata_wait_idle() removal from ata_sff/via_tf_load()
authorTejun Heo <teheo@novell.com>
Thu, 9 Sep 2010 15:13:31 +0000 (17:13 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Sep 2010 20:36:32 +0000 (13:36 -0700)
commit63b754139e3c4b1e24e0e488a7864b136738032f
treedc65519b4f7f5b2ae9c5a1373460b30d10a46fce
parentff4adc0b087a98b7202a53fd134d18fb078c1d12
libata,pata_via: revert ata_wait_idle() removal from ata_sff/via_tf_load()

commit 40c6023031369ae5573e622ca54fa3ffe89fb865 upstream.

Commit 978c0666 (libata: Remove excess delay in the tf_load path)
removed ata_wait_idle() from ata_sff_tf_load() and via_tf_load().
This caused obscure detection problems in sata_sil.

  https://bugzilla.kernel.org/show_bug.cgi?id=16606

The commit was pure performance optimization.  Revert it for now.

Reported-by: Dieter Plaetinck <dieter@plaetinck.be>
Reported-by: Jan Beulich <JBeulich@novell.com>
Bisected-by: gianluca <gianluca@sottospazio.it>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/ata/libata-sff.c
drivers/ata/pata_via.c