diff options
author | Tejun Heo <htejun@gmail.com> | 2006-11-01 04:39:55 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-12-01 22:41:31 -0500 |
commit | 914ed354b373680b648d913161cca6f742f32791 (patch) | |
tree | 64d33d5813680fc564374aa0e085fe7541006325 /drivers/ata/libata-core.c | |
parent | baa1e78a834c917984a4659fd282f712c17ee3bf (diff) |
[PATCH] libata: move dev->max_sectors configuration into ata_dev_configure()
Move dev->max_sectors configuration from ata_scsi_dev_config() to
ata_dev_configure().
* more consistent.
* allows LLDs to peek at the default dev->max_sectors value.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/libata-core.c')
-rw-r--r-- | drivers/ata/libata-core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 5028396029b..f531a89c26c 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -1533,6 +1533,11 @@ int ata_dev_configure(struct ata_device *dev) | |||
1533 | cdb_intr_string); | 1533 | cdb_intr_string); |
1534 | } | 1534 | } |
1535 | 1535 | ||
1536 | /* determine max_sectors */ | ||
1537 | dev->max_sectors = ATA_MAX_SECTORS; | ||
1538 | if (dev->flags & ATA_DFLAG_LBA48) | ||
1539 | dev->max_sectors = ATA_MAX_SECTORS_LBA48; | ||
1540 | |||
1536 | if (dev->horkage & ATA_HORKAGE_DIAGNOSTIC) { | 1541 | if (dev->horkage & ATA_HORKAGE_DIAGNOSTIC) { |
1537 | /* Let the user know. We don't want to disallow opens for | 1542 | /* Let the user know. We don't want to disallow opens for |
1538 | rescue purposes, or in case the vendor is just a blithering | 1543 | rescue purposes, or in case the vendor is just a blithering |