Re: Updated libata PATA patch

Alan Cox
2006-05-15T21:56:03Z

On Mer, 2006-05-10 at 12:39 -0400, Kevin Radloff wrote:
> > I'll do some more digging, but putting printks into ata_qc_issue_prot to
> > see where it explodes is the next step I suspect.
>
> Ah, I see.. I'll be waiting. :)

Much scratching of heads and tracing later it looks like a libata-core
bug rather than pata_pcmcia. Glad this blew up as its a nasty little bug
if I follow it right

Anyway try this patch as well

--- drivers/scsi/libata-core.c~ 2006-05-15 22:38:21.282153688 +0100
+++ drivers/scsi/libata-core.c 2006-05-15 22:38:21.283153536 +0100
@@ -1853,7 +1853,8 @@
goto err_out;

/* step 3: set host DMA timings */
- ata_host_set_dma(ap);
+ if(dev->dma_mode)
+ ata_host_set_dma(ap);

/* step 4: update devices' xfer mode */
for (i = 0; i < ATA_MAX_DEVICES; i++) {