Skip to contentSkip to conversation

libata atapi work #3

PATCH New Jeff Garzik 1 participant 1 message May 14, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libata atapi work #3

# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2004/05/13 21:26:59-04:00 [email protected]
# [libata] more ATAPI work - translate SCSI CDB to ATA PACKET
#

#   Now that we can specify ATAPI as a taskfile protocol, we can utilize
#   the existing SCSI->ATA translation infrastructure to build an ATA
#   PACKET command quickly and easily.

#

drivers/scsi/libata-core.c +0 -14
diff -Nru a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
@@ -2794,20 +2794,6 @@
 	return timeout;
 }
 
-void atapi_start(struct ata_queued_cmd *qc)
-{
-	struct ata_port *ap = qc->ap;
-
-	qc->flags |= ATA_QCFLAG_ACTIVE;
-	ap->active_tag = qc->tag;
-
-	ata_dev_select(ap, qc->dev->devno, 1, 0);
-	ata_tf_to_host_nolock(ap, &qc->tf);
-	queue_work(ata_wq, &ap->packet_task);
-
-	VPRINTK("EXIT\n");
-}
-
 /**
  *	atapi_packet_task - Write CDB bytes to hardware
  *	@_data: Port to which ATAPI device is attached.
drivers/scsi/libata-scsi.c +16 -46

93 lines not on this page · raw message

drivers/scsi/libata.h +0 -1
diff -Nru a/drivers/scsi/libata.h b/drivers/scsi/libata.h
@@ -44,7 +44,6 @@
 extern void ata_dev_select(struct ata_port *ap, unsigned int device,
                            unsigned int wait, unsigned int can_sleep);
 extern void ata_tf_to_host_nolock(struct ata_port *ap, struct ata_taskfile *tf);
-extern void atapi_start(struct ata_queued_cmd *qc);
 
 
 /* libata-scsi.c */