Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 68123
b: refs/heads/master
c: 1e582ba
h: refs/heads/master
i:
  68121: 8b009cc
  68119: 25a51c0
v: v3
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed Oct 12, 2007
1 parent b4320ec commit 5f63648
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7d77b247088fb360aa74bfdd9e19bce1e1987668
refs/heads/master: 1e582ba4ef6264dd8cb73250ebff767d0624d684
5 changes: 4 additions & 1 deletion trunk/drivers/ata/libata-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -950,9 +950,12 @@ static int ata_set_max_sectors(struct ata_device *dev, u64 new_sectors)
tf.hob_lbal = (new_sectors >> 24) & 0xff;
tf.hob_lbam = (new_sectors >> 32) & 0xff;
tf.hob_lbah = (new_sectors >> 40) & 0xff;
} else
} else {
tf.command = ATA_CMD_SET_MAX;

tf.device |= (new_sectors >> 24) & 0xf;
}

tf.protocol |= ATA_PROT_NODATA;
tf.device |= ATA_LBA;

Expand Down

0 comments on commit 5f63648

Please sign in to comment.