]> err.no Git - linux-2.6/commit
libata: kill ATA_LFLAG_SKIP_D2H_BSY
authorTejun Heo <htejun@gmail.com>
Wed, 23 Jan 2008 15:05:14 +0000 (00:05 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Thu, 17 Apr 2008 19:44:16 +0000 (15:44 -0400)
commit8cebf274dd1c955a6e03385a85fd6569ce445946
treec459cd20ef93413e063826bb99ca0bcaf67ec8d2
parent672b2d65ba83a6f3f801fd3d58851aa9c0725a54
libata: kill ATA_LFLAG_SKIP_D2H_BSY

Some controllers can't reliably record the initial D2H FIS after SATA
link is brought online for whatever reason.  Advanced controllers
which don't have traditional TF register based interface often have
this problem as they don't really have the TF registers to update
while the controller and link are being initialized.

SKIP_D2H_BSY works around the problem by skipping the wait for device
readiness before issuing SRST, so for such controllers libata issues
SRST blindly and hopes for the best.

Now that libata defaults to hardreset, this workaround is no longer
necessary.  For controllers which have support for hardreset, SRST is
never issued by itself.  It is only issued as follow-up SRST for
device classification and PMP initialization, so there's no need to
wait for it from prereset.

Kill ATA_LFLAG_SKIP_D2H_BSY.

Signed-off-by: Tejun Heo <htejun@gmail.com>
drivers/ata/ahci.c
drivers/ata/libata-core.c
drivers/ata/sata_fsl.c
drivers/ata/sata_sil24.c
include/linux/libata.h