ahci/qtest: Execute IDENTIFY prior to data commands
commit34475239b8f1fff0b715cb20f8b534b9d07a897e
authorJohn Snow <jsnow@redhat.com>
Sat, 4 Jul 2015 06:06:03 +0000 (4 02:06 -0400)
committerJohn Snow <jsnow@redhat.com>
Sat, 4 Jul 2015 06:06:03 +0000 (4 02:06 -0400)
treebd7ccf63078e7aad5b69187628f83172495aef56
parent0437d32ae232af37d3b94064a563eb51d4eedd62
ahci/qtest: Execute IDENTIFY prior to data commands

If you try to execute an NCQ command before trying to engage with the
device by issuing an IDENTIFY command, the error bits that are part of
the signature will fool the test suite into thinking there was a failure.

Issue IDENTIFY first on "boot", which will clear the signature out of
the registers for us.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Message-id: 1435016308-6150-9-git-send-email-jsnow@redhat.com
tests/ahci-test.c