aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Lord <mlord@pobox.com>2007-04-09 15:21:15 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-04-13 13:47:17 -0700
commit0cecc9afc526ef12a2911b68e2941b10badcbb82 (patch)
tree2f10ed2c49bd36af9ee9be7ae89e7e9e0b918e12
parent3c163bc0b44d31618fa8f08a5e149335f6c8cbc4 (diff)
libata bugfix: preserve LBA bit for HDIO_DRIVE_TASK
libata bugfix: preserve LBA bit for HDIO_DRIVE_TASK Preserve the LBA bit in the DevSel/Head register for HDIO_DRIVE_TASK. Signed-off-by: Mark Lord <mlord@pobox.com> Signed-off-by: Jeff Garzik <jeff@garzik.org> Cc: Chuck Ebbert <cebbert@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/ata/libata-scsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
index 17905424eb0..fc436f61624 100644
--- a/drivers/ata/libata-scsi.c
+++ b/drivers/ata/libata-scsi.c
@@ -295,7 +295,7 @@ int ata_task_ioctl(struct scsi_device *scsidev, void __user *arg)
scsi_cmd[8] = args[3];
scsi_cmd[10] = args[4];
scsi_cmd[12] = args[5];
- scsi_cmd[13] = args[6] & 0x0f;
+ scsi_cmd[13] = args[6] & 0x4f;
scsi_cmd[14] = args[0];
/* Good values for timeout and retries? Values below