Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 58133
b: refs/heads/master
c: 90c9378
h: refs/heads/master
i:
  58131: d38a0f3
v: v3
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Jul 2, 2007
1 parent 41249ca commit 5d919df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 74cdbba42dd515887ef3fc0ab498e70bd086c075
refs/heads/master: 90c937853d792ea997d7fdec72dbbea4f92e12c4
7 changes: 7 additions & 0 deletions trunk/drivers/ata/sata_inic162x.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,13 @@ static void inic_dev_config(struct ata_device *dev)
/* inic can only handle upto LBA28 max sectors */
if (dev->max_sectors > ATA_MAX_SECTORS)
dev->max_sectors = ATA_MAX_SECTORS;

if (dev->n_sectors >= 1 << 28) {
ata_dev_printk(dev, KERN_ERR,
"ERROR: This driver doesn't support LBA48 yet and may cause\n"
" data corruption on such devices. Disabling.\n");
ata_dev_disable(dev);
}
}

static void init_port(struct ata_port *ap)
Expand Down

0 comments on commit 5d919df

Please sign in to comment.