powerpc/pseries/hvconsole: Fix dropped console output

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>
This commit is contained in:
Anton Blanchard 2011-07-05 21:51:36 +00:00 committed by Benjamin Herrenschmidt
parent 8c2381af0d
commit 51d3302142
1 changed files with 1 additions and 1 deletions

View 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;
}