]> git.itanic.dy.fi Git - linux-stable/commit
dmaengine: bestcomm: fix system boot lockups
authorAnatolij Gustschin <agust@denx.de>
Thu, 14 Oct 2021 09:40:12 +0000 (11:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 Sep 2022 12:16:56 +0000 (14:16 +0200)
commit4dbe84b9b66cfe604f11d25a377c6ed1347ab6b3
tree4668c5771d3390b2e754e8465da706534cba5782
parent7bbdf49e2624a318b5e08f3a1acb0503ecd107d9
dmaengine: bestcomm: fix system boot lockups

[ Upstream commit adec566b05288f2787a1f88dbaf77ed8b0c644fa ]

memset() and memcpy() on an MMIO region like here results in a
lockup at startup on mpc5200 platform (since this first happens
during probing of the ATA and Ethernet drivers). Use memset_io()
and memcpy_toio() instead.

Fixes: 2f9ea1bde0d1 ("bestcomm: core bestcomm support for Freescale MPC5200")
Cc: stable@vger.kernel.org # v5.14+
Signed-off-by: Anatolij Gustschin <agust@denx.de>
Link: https://lore.kernel.org/r/20211014094012.21286-1-agust@denx.de
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/dma/bestcomm/ata.c
drivers/dma/bestcomm/bestcomm.c
drivers/dma/bestcomm/fec.c
drivers/dma/bestcomm/gen_bd.c