[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 02/17] atapi: clear sense code
From: |
Hannes Reinecke |
Subject: |
[Qemu-devel] [PATCH 02/17] atapi: clear sense code |
Date: |
Wed, 29 Oct 2014 08:53:37 +0100 |
The sense code needs to be cleared after REQUEST SENSE.
Signed-off-by: Hannes Reinecke <address@hidden>
---
hw/ide/atapi.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/hw/ide/atapi.c b/hw/ide/atapi.c
index 10218df..fca9174 100644
--- a/hw/ide/atapi.c
+++ b/hw/ide/atapi.c
@@ -611,9 +611,7 @@ static void cmd_request_sense(IDEState *s, uint8_t *buf)
buf[7] = 10;
buf[12] = s->asc;
- if (s->sense_key == UNIT_ATTENTION) {
- s->sense_key = NO_SENSE;
- }
+ s->sense_key = NO_SENSE;
ide_atapi_cmd_reply(s, 18, max_len);
}
--
1.8.4.5
- Re: [Qemu-devel] [PATCH 12/17] megasas: Clear unit attention on initial reset, (continued)
- [Qemu-devel] [PATCH 03/17] scsi: Rename scsi_cdb_length() to scsi_xfer_length(), Hannes Reinecke, 2014/10/29
- [Qemu-devel] [PATCH 10/17] megasas: Fix typo in megasas_dcmd_ld_get_list(), Hannes Reinecke, 2014/10/29
- [Qemu-devel] [PATCH 07/17] megasas: simplify trace event messages, Hannes Reinecke, 2014/10/29
- [Qemu-devel] [PATCH 11/17] megasas: Decode register names, Hannes Reinecke, 2014/10/29
- [Qemu-devel] [PATCH 14/17] megasas: Implement DCMD_CLUSTER_RESET_LD, Hannes Reinecke, 2014/10/29
- [Qemu-devel] [PATCH 13/17] megasas: Ignore duplicate init_firmware commands, Hannes Reinecke, 2014/10/29
- [Qemu-devel] [PATCH 15/17] megasas: Update queue logging, Hannes Reinecke, 2014/10/29
- [Qemu-devel] [PATCH 17/17] megasas: Fixup MSI-X handling, Hannes Reinecke, 2014/10/29
- [Qemu-devel] [PATCH 02/17] atapi: clear sense code,
Hannes Reinecke <=
- Re: [Qemu-devel] [PATCH 00/17] megasas: gen2 emulation and MSI-X fixes, Paolo Bonzini, 2014/10/29