Skip to contentSkip to conversation

SATAPI despite no data

PATCH Applied Pat LaVarre 2 participants 2 messages Jul 23, 2004 – Jul 28, 2004

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

PATCH 1/1 SATAPI despite no data

Jeff G:

Please may we restore the source line quoted below?

I see we lost this source line in the changes since 2.6.7. But if I try SATAPI expecting no data without this source line, then my ata_piix.ko promptly dies with such complaints as:

kernel: irq 18: nobody cared!

With this source line, I find I can expect no data, though I still have to add auto sense to overcome:

kernel: ata2: BUG: timeout without command

I've placed this source line so that (a) we equate case ATA_PROT_ATAPI with case ATA_PROT_ATAPI_DMA. I could easily instead (b) write case ATA_PROT_ATAPI as an isolated case or I could (c) try to write case ATA_PROT_ATAPI as equal with case ATA_PROT_NODATA, if by chance you do prefer (b) or (c).

Pat LaVarre

drivers/scsi/libata-core.c +1 -0
diff -urp linux-2.6.8-rc2-bk2/drivers/scsi/libata-core.c linux-2.6.8-rc2-bk2-pel/drivers/scsi/libata-core.c
@@ -2578,6 +2578,7 @@ inline unsigned int ata_host_intr (struc
 
 	case ATA_PROT_DMA:
 	case ATA_PROT_ATAPI_DMA:
+	case ATA_PROT_ATAPI:
 		/* check status of DMA engine */
 		host_stat = ata_bmdma_status(ap);
 		VPRINTK("BUS_DMA (host_stat 0x%X)\n", host_stat);