Commit 41555d54 authored by Kevin Barnett's avatar Kevin Barnett Committed by Martin K. Petersen

scsi: smartpqi: update pqi passthru ioctl

 - make pass-thru requests bi-directional
Reviewed-by: default avatarScott Benesh <scott.benesh@microsemi.com>
Signed-off-by: default avatarKevin Barnett <kevin.barnett@microsemi.com>
Signed-off-by: default avatarDon Brace <don.brace@microsemi.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 58322fe0
...@@ -5499,6 +5499,7 @@ static int pqi_passthru_ioctl(struct pqi_ctrl_info *ctrl_info, void __user *arg) ...@@ -5499,6 +5499,7 @@ static int pqi_passthru_ioctl(struct pqi_ctrl_info *ctrl_info, void __user *arg)
case XFER_NONE: case XFER_NONE:
case XFER_WRITE: case XFER_WRITE:
case XFER_READ: case XFER_READ:
case XFER_READ | XFER_WRITE:
break; break;
default: default:
return -EINVAL; return -EINVAL;
...@@ -5539,6 +5540,9 @@ static int pqi_passthru_ioctl(struct pqi_ctrl_info *ctrl_info, void __user *arg) ...@@ -5539,6 +5540,9 @@ static int pqi_passthru_ioctl(struct pqi_ctrl_info *ctrl_info, void __user *arg)
case XFER_READ: case XFER_READ:
request.data_direction = SOP_READ_FLAG; request.data_direction = SOP_READ_FLAG;
break; break;
case XFER_READ | XFER_WRITE:
request.data_direction = SOP_BIDIRECTIONAL;
break;
} }
request.task_attribute = SOP_TASK_ATTRIBUTE_SIMPLE; request.task_attribute = SOP_TASK_ATTRIBUTE_SIMPLE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment