linux-brain/arch/powerpc/platforms
Nicholas Piggin e15407a2a8 powerpc/powernv: opal_put_chars partial write fix
[ Upstream commit bd90284cc6 ]

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 <benh@kernel.crashing.org>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-09-26 08:36:33 +02:00
..
8xx powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
40x powerpc updates for 4.8 # 1 2016-07-30 21:01:36 -07:00
44x powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
52xx powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
82xx powerpc/e8248e: Select PHYLIB only if NETDEVICES is enabled 2016-09-24 23:59:47 -05:00
83xx powerpc/83xx: factor out the common codes of setup arch functions 2016-09-25 02:38:53 -05:00
85xx powerpc: Convert fsl_rstcr_restart to a reset handler 2016-09-25 02:38:50 -05:00
86xx powerpc: Convert fsl_rstcr_restart to a reset handler 2016-09-25 02:38:50 -05:00
512x powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
amigaone powerpc: Move 32-bit probe() machine to later in the boot process 2016-07-21 19:06:42 +10:00
cell powerpc/spufs: Fix coredump of SPU contexts 2018-04-13 19:48:16 +02:00
chrp powerpc/chrp/time: Make some functions static, add missing header include 2018-08-03 07:55:18 +02:00
embedded6xx powerpc/embedded6xx/hlwd-pic: Prevent interrupts from being handled by Starlet 2018-08-03 07:55:21 +02:00
maple powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
pasemi powerpc: Remove all usages of NO_IRQ 2016-09-20 20:57:12 +10:00
powermac powerpc/powermac: Mark variable x as unused 2018-08-03 07:55:19 +02:00
powernv powerpc/powernv: opal_put_chars partial write fix 2018-09-26 08:36:33 +02:00
ps3 powerpc/64: Simplify adaptation to new ISA v3.00 HPTE format 2017-01-19 20:18:06 +01:00
pseries powerpc/pseries: Avoid using the size greater than RTAS_ERROR_LOG_MAX. 2018-09-15 09:43:00 +02:00
Kconfig RTC for 4.8 2016-08-05 09:48:22 -04:00
Kconfig.cputype powerpc: Set default CPU type to POWER8 for little endian builds 2016-10-04 16:15:00 +11:00
Makefile powerpc: Remove platforms/wsp and associated pieces 2014-06-11 16:35:38 +10:00
fsl_uli1575.c of/irq: Refactor interrupt-map parsing 2013-10-24 11:43:04 +01:00