aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-03-24 00:07:50 -0500
committerJeff Garzik <jeff@garzik.org>2006-03-24 09:28:33 -0500
commit5a529139554f12cb265715117a2153c936286294 (patch)
treea31f5aba2d34111e89d339c7d1a803d7a864bb46 /drivers/scsi
parentacf356b12d13c8b43c486e53e8ee12f1f435ecc8 (diff)
[PATCH] libata: make per-dev transfer mode limits per-dev
Now that each ata_device has xfer masks, per-dev limits can be made per-dev instead of per-port. Make per-dev limits per-dev. Signed-off-by: Tejun Heo <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/libata-core.c2
-rw-r--r--drivers/scsi/sata_sil.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index a87748ba579c..1063928e3824 100644
--- a/drivers/scsi/libata-core.c
+++ b/drivers/scsi/libata-core.c
@@ -1327,7 +1327,7 @@ static int ata_dev_configure(struct ata_port *ap, struct ata_device *dev,
1327 if (print_info) 1327 if (print_info)
1328 printk(KERN_INFO "ata%u(%u): applying bridge limits\n", 1328 printk(KERN_INFO "ata%u(%u): applying bridge limits\n",
1329 ap->id, dev->devno); 1329 ap->id, dev->devno);
1330 ap->udma_mask &= ATA_UDMA5; 1330 dev->udma_mask &= ATA_UDMA5;
1331 dev->max_sectors = ATA_MAX_SECTORS; 1331 dev->max_sectors = ATA_MAX_SECTORS;
1332 } 1332 }
1333 1333
diff --git a/drivers/scsi/sata_sil.c b/drivers/scsi/sata_sil.c
index 3e75d6733239..18c296c56899 100644
--- a/drivers/scsi/sata_sil.c
+++ b/drivers/scsi/sata_sil.c
@@ -371,7 +371,7 @@ static void sil_dev_config(struct ata_port *ap, struct ata_device *dev)
371 if (quirks & SIL_QUIRK_UDMA5MAX) { 371 if (quirks & SIL_QUIRK_UDMA5MAX) {
372 printk(KERN_INFO "ata%u(%u): applying Maxtor errata fix %s\n", 372 printk(KERN_INFO "ata%u(%u): applying Maxtor errata fix %s\n",
373 ap->id, dev->devno, model_num); 373 ap->id, dev->devno, model_num);
374 ap->udma_mask &= ATA_UDMA5; 374 dev->udma_mask &= ATA_UDMA5;
375 return; 375 return;
376 } 376 }
377} 377}