]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[libata] sata_mv: Add a new mv_sff_check_status() function to sata_mv.
authorMark Lord <mlord@pobox.com>
Wed, 25 Feb 2009 20:17:43 +0000 (15:17 -0500)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 25 Mar 2009 02:02:41 +0000 (22:02 -0400)
commitd16ab3f633b75aac1cf42b00355cd9aa65033dcc
treeee2df8db3222f279f21e64188ff0d156aa7820a9
parent42ed893d8011264f9945c2f54055b47c298ac53e
[libata] sata_mv: Add a new mv_sff_check_status() function to sata_mv.
This is necessary for use with the upcoming "mv_qc_issue_fis()" patch,
but is being added separately here for easier code review.

When using command issue via the "mv_qc_issue_fis()" mechanism,
the initial ATA_BUSY bit does not show in the ATA status (shadow) register.
This can confuse libata!  So here we add a hook to fake ATA_BUSY
for that situation, until the first time a BUSY, DRQ, or ERR bit is seen.

Signed-off-by: Mark Lord <mlord@pobox.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/sata_mv.c