summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2010-01-28 13:30:11 +0100
committerJeff Garzik <jgarzik@redhat.com>2010-02-04 07:01:32 +0100
commitf7acede65d6b65919aee5b6a360a17cedb11f2f7 (patch)
treeac1adbda9b14e2820e8bee2407bf6895c357d9b0 /drivers/ata
parentlibata-scsi passthru: fix bug which truncated LBA48 return values (diff)
downloadlinux-f7acede65d6b65919aee5b6a360a17cedb11f2f7.tar.xz
linux-f7acede65d6b65919aee5b6a360a17cedb11f2f7.zip
libata: fix ata_id_logical_per_physical_sectors
The value we get from the low byte of the ATA_ID_SECTOR_SIZE word is not not a plain multiple, but the log of it, so fix the helper to give the correct answer. Without this we'll get an incorrect minimal I/O size in the block limits VPD page for 4k sector drives. Also change the return value of ata_id_logical_per_physical_sectors to u16 for the unlikely case of very large logical sectors. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata')
0 files changed, 0 insertions, 0 deletions