]> www.infradead.org Git - users/jedix/linux-maple.git/commit
remoteproc: mediatek: Zero out only remaining bytes of IPI buffer
authorAngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Mon, 20 May 2024 11:27:24 +0000 (13:27 +0200)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Tue, 28 May 2024 18:49:46 +0000 (12:49 -0600)
commit9dbd9962cfe56d210be5232349851420b5f9c8f6
tree8f4cfed7e665d4a4e38f9a363d50eac93495b9b3
parent1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
remoteproc: mediatek: Zero out only remaining bytes of IPI buffer

In scp_ipi_handler(), instead of zeroing out the entire shared
buffer, which may be as large as 600 bytes, overwrite it with the
received data, then zero out only the remaining bytes.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://lore.kernel.org/r/20240520112724.139945-1-angelogioacchino.delregno@collabora.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/mtk_scp.c