OSDN Git Service

ide: Clear DRQ after handling all expected accesses
authorKevin Wolf <kwolf@redhat.com>
Mon, 27 Jul 2015 03:42:53 +0000 (23:42 -0400)
committerJohn Snow <jsnow@redhat.com>
Mon, 27 Jul 2015 03:42:53 +0000 (23:42 -0400)
commitcb72cba83021fa42719e73a5249c12096a4d1cfc
treeefca83e551a1e5af9b2fa90b87ccfb50e0f85477
parent03441c3a4a42beb25460dd11592539030337d0f8
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>
hw/ide/core.c