svn commit: r251852 - stable/9/sbin/camcontrol
Alexander Motin
mav at FreeBSD.org
Mon Jun 17 14:59:23 UTC 2013
Author: mav
Date: Mon Jun 17 14:59:23 2013
New Revision: 251852
URL: http://svnweb.freebsd.org/changeset/base/251852
Log:
MFC r251659:
Use CAM_DIR_NONE for requests without data.
Wrong values there confuse some drivers.
Modified:
stable/9/sbin/camcontrol/camcontrol.c
Directory Properties:
stable/9/sbin/camcontrol/ (props changed)
Modified: stable/9/sbin/camcontrol/camcontrol.c
==============================================================================
--- stable/9/sbin/camcontrol/camcontrol.c Mon Jun 17 14:56:49 2013 (r251851)
+++ stable/9/sbin/camcontrol/camcontrol.c Mon Jun 17 14:59:23 2013 (r251852)
@@ -1784,7 +1784,7 @@ ata_read_native_max(struct cam_device *d
error = ata_do_cmd(device,
ccb,
retry_count,
- /*flags*/CAM_DIR_IN,
+ /*flags*/CAM_DIR_NONE,
/*protocol*/protocol,
/*ata_flags*/AP_FLAG_CHK_COND,
/*tag_action*/MSG_SIMPLE_Q_TAG,
@@ -1828,7 +1828,7 @@ atahpa_set_max(struct cam_device *device
error = ata_do_cmd(device,
ccb,
retry_count,
- /*flags*/CAM_DIR_OUT,
+ /*flags*/CAM_DIR_NONE,
/*protocol*/protocol,
/*ata_flags*/AP_FLAG_CHK_COND,
/*tag_action*/MSG_SIMPLE_Q_TAG,
@@ -1895,7 +1895,7 @@ atahpa_lock(struct cam_device *device, i
error = ata_do_cmd(device,
ccb,
retry_count,
- /*flags*/CAM_DIR_OUT,
+ /*flags*/CAM_DIR_NONE,
/*protocol*/protocol,
/*ata_flags*/AP_FLAG_CHK_COND,
/*tag_action*/MSG_SIMPLE_Q_TAG,
@@ -1962,7 +1962,7 @@ atahpa_freeze_lock(struct cam_device *de
error = ata_do_cmd(device,
ccb,
retry_count,
- /*flags*/CAM_DIR_OUT,
+ /*flags*/CAM_DIR_NONE,
/*protocol*/protocol,
/*ata_flags*/AP_FLAG_CHK_COND,
/*tag_action*/MSG_SIMPLE_Q_TAG,
More information about the svn-src-stable-9
mailing list