--- v3
+++ v2
@@ -19,19 +19,17 @@
Length of 4K buffer n used
Only one buffer is used right now because of max payload size is
-4048 bytes. writev() can be used in future when supported more
+4088 bytes. writev() can be used in future when supported more
than one buffer.
Signed-off-by: Haren Myneni <haren@linux.ibm.com>
-Reviewed-by: Mahesh Salgaonkar <mahesh@linux.ibm.com>
-Tested-by: Shashank MS <shashank.gowda@in.ibm.com>
---
arch/powerpc/platforms/pseries/papr-hvpipe.c | 120 ++++++++++++++++++-
arch/powerpc/platforms/pseries/papr-hvpipe.h | 7 ++
2 files changed, 126 insertions(+), 1 deletion(-)
diff --git a/arch/powerpc/platforms/pseries/papr-hvpipe.c b/arch/powerpc/platforms/pseries/papr-hvpipe.c
-index 0ce0e531e49b..a7f0c49c7bdd 100644
+index 5768d072859d..c30f4d75e645 100644
--- a/arch/powerpc/platforms/pseries/papr-hvpipe.c
+++ b/arch/powerpc/platforms/pseries/papr-hvpipe.c
@@ -14,6 +14,7 @@
@@ -77,7 +75,7 @@
+ ret = -EINVAL;
+ break;
+ case RTAS_HVPIPE_CLOSED:
-+ ret = -EPIPE;
++ ret = -EACCES;
+ break;
+ case RTAS_FUNC_NOT_SUPPORTED:
+ ret = -EOPNOTSUPP;
@@ -198,6 +196,6 @@
struct hvpipe_source_info {
struct list_head list; /* list of sources */
--
-2.50.1
-
-
+2.43.5
+
+