]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.0.1/powerpc-pseries-hvconsole-fix-dropped-console-output.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.0.1 / powerpc-pseries-hvconsole-fix-dropped-console-output.patch
1 From 51d33021425e1f905beb4208823146f2fb6517da Mon Sep 17 00:00:00 2001
2 From: Anton Blanchard <anton@samba.org>
3 Date: Tue, 5 Jul 2011 21:51:36 +0000
4 Subject: powerpc/pseries/hvconsole: Fix dropped console output
5
6 From: Anton Blanchard <anton@samba.org>
7
8 commit 51d33021425e1f905beb4208823146f2fb6517da upstream.
9
10 Return -EAGAIN when we get H_BUSY back from the hypervisor. This
11 makes the hvc console driver retry, avoiding dropped printks.
12
13 Signed-off-by: Anton Blanchard <anton@samba.org>
14 Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
15 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
16
17 ---
18 arch/powerpc/platforms/pseries/hvconsole.c | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21 --- a/arch/powerpc/platforms/pseries/hvconsole.c
22 +++ b/arch/powerpc/platforms/pseries/hvconsole.c
23 @@ -73,7 +73,7 @@ int hvc_put_chars(uint32_t vtermno, cons
24 if (ret == H_SUCCESS)
25 return count;
26 if (ret == H_BUSY)
27 - return 0;
28 + return -EAGAIN;
29 return -EIO;
30 }
31