forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
kernel/drivers/fsi/fsi-sbefifo.c
....@@ -640,7 +640,7 @@
640640 }
641641 ffdc_iov.iov_base = ffdc;
642642 ffdc_iov.iov_len = SBEFIFO_MAX_FFDC_SIZE;
643
- iov_iter_kvec(&ffdc_iter, WRITE | ITER_KVEC, &ffdc_iov, 1, SBEFIFO_MAX_FFDC_SIZE);
643
+ iov_iter_kvec(&ffdc_iter, READ, &ffdc_iov, 1, SBEFIFO_MAX_FFDC_SIZE);
644644 cmd[0] = cpu_to_be32(2);
645645 cmd[1] = cpu_to_be32(SBEFIFO_CMD_GET_SBE_FFDC);
646646 rc = sbefifo_do_command(sbefifo, cmd, 2, &ffdc_iter);
....@@ -737,7 +737,7 @@
737737 rbytes = (*resp_len) * sizeof(__be32);
738738 resp_iov.iov_base = response;
739739 resp_iov.iov_len = rbytes;
740
- iov_iter_kvec(&resp_iter, WRITE | ITER_KVEC, &resp_iov, 1, rbytes);
740
+ iov_iter_kvec(&resp_iter, READ, &resp_iov, 1, rbytes);
741741
742742 /* Perform the command */
743743 mutex_lock(&sbefifo->lock);
....@@ -817,7 +817,7 @@
817817 /* Prepare iov iterator */
818818 resp_iov.iov_base = buf;
819819 resp_iov.iov_len = len;
820
- iov_iter_init(&resp_iter, WRITE, &resp_iov, 1, len);
820
+ iov_iter_init(&resp_iter, READ, &resp_iov, 1, len);
821821
822822 /* Perform the command */
823823 mutex_lock(&sbefifo->lock);
....@@ -1030,7 +1030,7 @@
10301030 return 0;
10311031 }
10321032
1033
-static struct fsi_device_id sbefifo_ids[] = {
1033
+static const struct fsi_device_id sbefifo_ids[] = {
10341034 {
10351035 .engine_type = FSI_ENGID_SBE,
10361036 .version = FSI_VERSION_ANY,