# \[PATCH 2/2\]: powerpc/pseries/hvconsole: Fix dropped console output

- From: Anton Blanchard \<hidden\>
- Date: 2011-07-06 07:51:36 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2011/07/9465294
- Thread: https://ratatoskr.run/linuxppc-dev/2011/07/9465246/t.md

```text

Return -EAGAIN when we get H_BUSY back from the hypervisor. This
makes the hvc console driver retry, avoiding dropped printks.

Signed-off-by: Anton Blanchard <redacted>
Cc: <stable@kernel.org>
---

Index: linux-powerpc/arch/powerpc/platforms/pseries/hvconsole.c
===================================================================
--- linux-powerpc.orig/arch/powerpc/platforms/pseries/hvconsole.c	2011-07-06 17:11:33.799095935 +1000
+++ linux-powerpc/arch/powerpc/platforms/pseries/hvconsole.c	2011-07-06 17:11:47.499332962 +1000
@@ -73,7 +73,7 @@ int hvc_put_chars(uint32_t vtermno, cons
 	if (ret == H_SUCCESS)
 		return count;
 	if (ret == H_BUSY)
-		return 0;
+		return -EAGAIN;
 	return -EIO;
 }
 
```
