]> git.ipfire.org Git - thirdparty/qemu.git/commit
ide: Clear DRQ after handling all expected accesses
authorKevin Wolf <kwolf@redhat.com>
Mon, 27 Jul 2015 03:42:53 +0000 (23:42 -0400)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 30 Jul 2015 03:19:55 +0000 (22:19 -0500)
commitd1557697fd9efd052ba4289a8da4e35f78431537
treef32798f8d27e39ea7fb43b66dc612ea84d49baa6
parent86d6fe4cb0bce6604ed00b203dd964bead98d228
ide: Clear DRQ after handling all expected accesses

This is additional hardening against an end_transfer_func that fails to
clear the DRQ status bit. The bit must be unset as soon as the PIO
transfer has completed, so it's better to do this in a central place
instead of duplicating the code in all commands (and forgetting it in
some).

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: John Snow <jsnow@redhat.com>
(cherry picked from commit cb72cba83021fa42719e73a5249c12096a4d1cfc)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/ide/core.c