aboutsummaryrefslogtreecommitdiff
path: root/scripts/patch-kernel
diff options
context:
space:
mode:
authorEran Tromer <[email protected]>2006-10-10 14:29:25 -0700
committerJeff Garzik <[email protected]>2006-10-11 04:18:07 -0400
commitbbe1fe7ea3438f8c4447dbcd46a126581ed2ed41 (patch)
tree5b1eec4a822887a2f1380f6a0aa649322c986a91 /scripts/patch-kernel
parent4ad99f15c6a3cadf36928c399459ea4fdb3d49f9 (diff)
[PATCH] libata: return sense data in HDIO_DRIVE_CMD ioctl
Make the HDIO_DRIVE_CMD ioctl in libata (ATA command pass through) return a few ATA registers to userspace, following the same convention as the drivers/ide implementation of the same ioctl. This is needed to support ATA commands like CHECK POWER MODE, which return information in nsectors. This fixes "hdparm -C" on SATA drives. Forcing the sense data read via the cc flag causes spurious check conditions, so we filter these out (following the ATA command pass-through specification T10/04-262r7). Signed-off-by: Eran Tromer <[email protected]> Acked-by: Tejun Heo <[email protected]> Cc: Jeff Garzik <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Jeff Garzik <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions