diff options
author | mav <mav@FreeBSD.org> | 2013-06-12 16:13:05 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2013-06-12 16:13:05 +0000 |
commit | efd62e8968170842115fd3214dacd8c6daca3e19 (patch) | |
tree | 0ec3987aca793cc99370e0e6f99eac253b9d4c5b /sbin/camcontrol | |
parent | e9fce1a99bb1f52b532c647c3040010a94d812b5 (diff) | |
download | FreeBSD-src-efd62e8968170842115fd3214dacd8c6daca3e19.zip FreeBSD-src-efd62e8968170842115fd3214dacd8c6daca3e19.tar.gz |
Use CAM_DIR_NONE for requests without data.
Wrong values there confuse some drivers.
MFC after: 1 week
Diffstat (limited to 'sbin/camcontrol')
-rw-r--r-- | sbin/camcontrol/camcontrol.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c index 7a374a4..db84ddb 100644 --- a/sbin/camcontrol/camcontrol.c +++ b/sbin/camcontrol/camcontrol.c @@ -1784,7 +1784,7 @@ ata_read_native_max(struct cam_device *device, int retry_count, 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, int retry_count, 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, int retry_count, 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 *device, int retry_count, 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, |