diff options
author | Eran Tromer <eran@tromer.org> | 2006-10-10 23:29:25 +0200 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-10-11 10:18:07 +0200 |
commit | bbe1fe7ea3438f8c4447dbcd46a126581ed2ed41 (patch) | |
tree | 5b1eec4a822887a2f1380f6a0aa649322c986a91 /drivers/char/pty.c | |
parent | Merge branch 'master' into upstream-fixes (diff) | |
download | linux-bbe1fe7ea3438f8c4447dbcd46a126581ed2ed41.tar.xz linux-bbe1fe7ea3438f8c4447dbcd46a126581ed2ed41.zip |
[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 <eran@tromer.org>
Acked-by: Tejun Heo <htejun@gmail.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/char/pty.c')
0 files changed, 0 insertions, 0 deletions