]> git.proxmox.com Git - mirror_qemu.git/commit
ide/atapi: Don't fail eject when tray is already open
authorMarkus Armbruster <armbru@redhat.com>
Tue, 6 Sep 2011 16:58:48 +0000 (18:58 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 12 Sep 2011 13:17:21 +0000 (15:17 +0200)
commit48f65b3f52fdaf8fdae331248236e8b487de2b3b
treee99ed15d2ce3d4ae240074d2d24d50527a20695e
parenteb93d5d9906cfa9fb6c3039a310d796dddfddeea
ide/atapi: Don't fail eject when tray is already open

MMC-5 6.40.2.6 specifies that START STOP UNIT succeeds when the drive
already has the requested state.  cmd_start_stop_unit() fails when
asked to eject while the tray is open and locked.  Fix that.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/atapi.c