aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/libata-scsi.c2
-rw-r--r--include/linux/libata.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/libata-scsi.c b/drivers/scsi/libata-scsi.c
index 996058af1bcd..f036ae4b8afb 100644
--- a/drivers/scsi/libata-scsi.c
+++ b/drivers/scsi/libata-scsi.c
@@ -670,7 +670,7 @@ static void ata_scsi_dev_config(struct scsi_device *sdev,
670 */ 670 */
671 max_sectors = ATA_MAX_SECTORS; 671 max_sectors = ATA_MAX_SECTORS;
672 if (dev->flags & ATA_DFLAG_LBA48) 672 if (dev->flags & ATA_DFLAG_LBA48)
673 max_sectors = 2048; 673 max_sectors = ATA_MAX_SECTORS_LBA48;
674 if (dev->max_sectors) 674 if (dev->max_sectors)
675 max_sectors = dev->max_sectors; 675 max_sectors = dev->max_sectors;
676 676
diff --git a/include/linux/libata.h b/include/linux/libata.h
index fcdd798bb086..2803ab8e9243 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -112,6 +112,7 @@ enum {
112 ATA_MAX_QUEUE = 32, 112 ATA_MAX_QUEUE = 32,
113 ATA_TAG_INTERNAL = ATA_MAX_QUEUE - 1, 113 ATA_TAG_INTERNAL = ATA_MAX_QUEUE - 1,
114 ATA_MAX_SECTORS = 200, /* FIXME */ 114 ATA_MAX_SECTORS = 200, /* FIXME */
115 ATA_MAX_SECTORS_LBA48 = 65535,
115 ATA_MAX_BUS = 2, 116 ATA_MAX_BUS = 2,
116 ATA_DEF_BUSY_WAIT = 10000, 117 ATA_DEF_BUSY_WAIT = 10000,
117 ATA_SHORT_PAUSE = (HZ >> 6) + 1, 118 ATA_SHORT_PAUSE = (HZ >> 6) + 1,