Use CAM_DIR_NONE for requests without data.
Wrong values there confuse some drivers. MFC after: 1 week
This commit is contained in:
parent
77b193c249
commit
3c2305c3a5
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user