[PATCH AUTOSEL 4.18 55/88] powerpc/powernv: opal_put_chars partial write fix

2018-09-06 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit bd90284cc6c1c9e8e48c8eadd0c79574fcce0b81 ] 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

[PATCH AUTOSEL 4.18 55/88] powerpc/powernv: opal_put_chars partial write fix

2018-09-06 Thread Sasha Levin
From: Nicholas Piggin [ Upstream commit bd90284cc6c1c9e8e48c8eadd0c79574fcce0b81 ] 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