libata-eh.c (b242a60206881559bb3102110048762422e6b74e) libata-eh.c (f2dfc1a12bb1a029df62b018a8e1882e91041025)
1/*
2 * libata-eh.c - libata error handling
3 *
4 * Maintained by: Jeff Garzik <jgarzik@pobox.com>
5 * Please ALWAYS copy linux-ide@vger.kernel.org
6 * on emails.
7 *
8 * Copyright 2006 Tejun Heo <htejun@gmail.com>

--- 1250 unchanged lines hidden (view full) ---

1259 tf.command = ATA_CMD_PACKET;
1260
1261 /* is it pointless to prefer PIO for "safety reasons"? */
1262 if (ap->flags & ATA_FLAG_PIO_DMA) {
1263 tf.protocol = ATA_PROT_ATAPI_DMA;
1264 tf.feature |= ATAPI_PKT_DMA;
1265 } else {
1266 tf.protocol = ATA_PROT_ATAPI;
1/*
2 * libata-eh.c - libata error handling
3 *
4 * Maintained by: Jeff Garzik <jgarzik@pobox.com>
5 * Please ALWAYS copy linux-ide@vger.kernel.org
6 * on emails.
7 *
8 * Copyright 2006 Tejun Heo <htejun@gmail.com>

--- 1250 unchanged lines hidden (view full) ---

1259 tf.command = ATA_CMD_PACKET;
1260
1261 /* is it pointless to prefer PIO for "safety reasons"? */
1262 if (ap->flags & ATA_FLAG_PIO_DMA) {
1263 tf.protocol = ATA_PROT_ATAPI_DMA;
1264 tf.feature |= ATAPI_PKT_DMA;
1265 } else {
1266 tf.protocol = ATA_PROT_ATAPI;
1267 tf.lbam = (8 * 1024) & 0xff;
1268 tf.lbah = (8 * 1024) >> 8;
1267 tf.lbam = SCSI_SENSE_BUFFERSIZE;
1268 tf.lbah = 0;
1269 }
1270
1271 return ata_exec_internal(dev, &tf, cdb, DMA_FROM_DEVICE,
1272 sense_buf, SCSI_SENSE_BUFFERSIZE, 0);
1273}
1274
1275/**
1276 * ata_eh_analyze_serror - analyze SError for a failed port

--- 1526 unchanged lines hidden ---
1269 }
1270
1271 return ata_exec_internal(dev, &tf, cdb, DMA_FROM_DEVICE,
1272 sense_buf, SCSI_SENSE_BUFFERSIZE, 0);
1273}
1274
1275/**
1276 * ata_eh_analyze_serror - analyze SError for a failed port

--- 1526 unchanged lines hidden ---