[lkml]   [2018]   [Jul]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [01/15] powerpc/powernv: opal_put_chars partial write fix
On Mon, 2018-04-30 at 14:55:44 UTC, Nicholas Piggin wrote:
> The intention here is to consume and discard the remaining buffer
> upon error. This works if there has not been a previous partial write.
> If there has been, then total_len is no longer total number of bytes
> to copy. total_len is always "bytes left to copy", so it should be
> added to written bytes.
> This code may not be exercised any more if partial writes will not be
> hit, but this is a small bugfix before a larger change.
> Reviewed-by: Benjamin Herrenschmidt <>
> Signed-off-by: Nicholas Piggin <>

Patches 1-9 applied to powerpc next, thanks.


 \ /
  Last update: 2018-07-24 16:00    [W:0.127 / U:1.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site