Patch 3/6: Map the ATA passthru UDMA protocols to ATA_PROT_DMA. Signed-off-by: Albert Lee <albertcc@xxxxxxxxxx> --- Don't know why SAT distinguishs "UDMA Data In" and "UDMA Data Out" from "DMA". These UDMA protocols only matter for on-the-wire-protocol and are mostly transparent to the software. Anyway, map both of UDMA protocols to "ATA_PROT_DMA" here. diff -Nrup 02_pio_multi/drivers/ata/libata-scsi.c 03_udma_supp/drivers/ata/libata-scsi.c --- 02_pio_multi/drivers/ata/libata-scsi.c 2007-06-07 11:38:53.000000000 +0800 +++ 03_udma_supp/drivers/ata/libata-scsi.c 2007-06-07 11:41:30.000000000 +0800 @@ -2506,6 +2506,8 @@ ata_scsi_map_proto(u8 byte1) return ATA_PROT_NODATA; case 6: /* DMA */ + case 10: /* UDMA Data-in */ + case 11: /* UDMA Data-Out */ return ATA_PROT_DMA; case 4: /* PIO Data-in */ @@ -2517,8 +2519,6 @@ ata_scsi_map_proto(u8 byte1) case 8: /* Device Diagnostic */ case 9: /* Device Reset */ case 7: /* DMA Queued */ - case 10: /* UDMA Data-in */ - case 11: /* UDMA Data-Out */ case 12: /* FPDMA */ case 15: /* Return Response Info */ default: /* Reserved */ - To unsubscribe from this list: send the line "unsubscribe linux-ide" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html