[Haiku-commits] r31019 - haiku/trunk/src/add-ons/kernel/busses/scsi/ahci

mmlr at mail.berlios.de mmlr at mail.berlios.de
Fri Jun 12 22:41:08 CEST 2009


Author: mmlr
Date: 2009-06-12 22:41:07 +0200 (Fri, 12 Jun 2009)
New Revision: 31019
ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=31019&view=rev

Modified:
   haiku/trunk/src/add-ons/kernel/busses/scsi/ahci/ahci_port.cpp
Log:
Not really sure why the inquiry command was special cased on ATAPI, but it
prevents tools that try to read other inquiry pages (like cdrecord) from getting
the required infos. This way the inquiry command is sent to the ATAPI device,
which seems to work fine (at least for the drive I have here).


Modified: haiku/trunk/src/add-ons/kernel/busses/scsi/ahci/ahci_port.cpp
===================================================================
--- haiku/trunk/src/add-ons/kernel/busses/scsi/ahci/ahci_port.cpp	2009-06-12 18:47:22 UTC (rev 31018)
+++ haiku/trunk/src/add-ons/kernel/busses/scsi/ahci/ahci_port.cpp	2009-06-12 20:41:07 UTC (rev 31019)
@@ -825,7 +825,7 @@
 {
 //	TRACE("AHCIPort::ScsiExecuteRequest port %d, opcode 0x%02x, length %u\n", fIndex, request->cdb[0], request->cdb_length);
 
-	if (fIsATAPI && request->cdb[0] != SCSI_OP_INQUIRY) {
+	if (fIsATAPI) {
 		bool isWrite = false;
 		switch (request->flags & SCSI_DIR_MASK) {
 			case SCSI_DIR_NONE:




More information about the Haiku-commits mailing list