Merge branch 'upstream'
authorJeff Garzik <jeff@garzik.org>
Wed, 12 Apr 2006 20:54:16 +0000 (16:54 -0400)
committerJeff Garzik <jeff@garzik.org>
Wed, 12 Apr 2006 20:54:16 +0000 (16:54 -0400)
drivers/scsi/libata-scsi.c
include/linux/libata.h

index 9871f8272df0b53a74aa68a42243e63e91c49f13..159537879f7e47dcb91ed0ac06e2cca0346e5f50 100644 (file)
@@ -665,7 +665,7 @@ static void ata_scsi_dev_config(struct scsi_device *sdev,
         */
        max_sectors = ATA_MAX_SECTORS;
        if (dev->flags & ATA_DFLAG_LBA48)
-               max_sectors = 2048;
+               max_sectors = ATA_MAX_SECTORS_LBA48;
        if (dev->max_sectors)
                max_sectors = dev->max_sectors;
 
index d35b1e3bb7e0f6c81bf69847431aef77bf3f80a1..11d9febc007829f6d231b82211a79fbaa5b67c4f 100644 (file)
@@ -110,6 +110,7 @@ enum {
        ATA_DEF_QUEUE           = 1,
        ATA_MAX_QUEUE           = 1,
        ATA_MAX_SECTORS         = 200,  /* FIXME */
+       ATA_MAX_SECTORS_LBA48   = 65535,
        ATA_MAX_BUS             = 2,
        ATA_DEF_BUSY_WAIT       = 10000,
        ATA_SHORT_PAUSE         = (HZ >> 6) + 1,