summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2006-03-13 14:00:08 +0000
committersos <sos@FreeBSD.org>2006-03-13 14:00:08 +0000
commitad0f6e357b3cfd6106e320f730935e2ac233cc28 (patch)
tree1779ce7a3a57769951a9abbe81cf28f5556ce0f5 /sys
parent201a1558c6c27bf7ff35ddb2bdfa3537b0b122d1 (diff)
downloadFreeBSD-src-ad0f6e357b3cfd6106e320f730935e2ac233cc28.zip
FreeBSD-src-ad0f6e357b3cfd6106e320f730935e2ac233cc28.tar.gz
Put autosense data in the right place (needs a 4pos left shift).
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ata/ata-usb.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/ata/ata-usb.c b/sys/dev/ata/ata-usb.c
index 01a442a..f995b7c 100644
--- a/sys/dev/ata/ata-usb.c
+++ b/sys/dev/ata/ata-usb.c
@@ -823,11 +823,8 @@ ata_usbchannel_end_transaction(struct ata_request *request)
*ptr = ntohs(*ptr);
request->result = 0;
}
- if (request->u.atapi.ccb[0] == ATAPI_REQUEST_SENSE) {
- request->u.atapi.sense_key = request->u.atapi.sense_data.sense_key;
- if ((request->u.atapi.sense_key & ATA_E_MASK) == ATA_E_NM)
- request->result = ENODEV;
- }
+ if (request->u.atapi.ccb[0] == ATAPI_REQUEST_SENSE)
+ request->u.atapi.sense_key = request->u.atapi.sense_data.sense_key << 4;
return ATA_OP_FINISHED;
}
OpenPOWER on IntegriCloud