powerpc/pseries/hvconsole: Fix dropped console output
authorAnton Blanchard <anton@samba.org>
Tue, 5 Jul 2011 21:51:36 +0000 (21:51 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 19 Jul 2011 05:13:05 +0000 (15:13 +1000)
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 <anton@samba.org>
Cc: <stable@kernel.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/platforms/pseries/hvconsole.c

index 3f6a89b..041e87c 100644 (file)
@@ -73,7 +73,7 @@ int hvc_put_chars(uint32_t vtermno, const char *buf, int count)
        if (ret == H_SUCCESS)
                return count;
        if (ret == H_BUSY)
-               return 0;
+               return -EAGAIN;
        return -EIO;
 }