]> 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)
committerVinod Koul <vkoul@kernel.org>
Mon, 18 Oct 2021 06:13:12 +0000 (11:43 +0530)
commitadec566b05288f2787a1f88dbaf77ed8b0c644fa
treeac9347fc68014507127a91079acdcb7925849b20
parent8e0c7e486014f8e924f5dc8f7a8719adb48f9d92
dmaengine: bestcomm: fix system boot lockups

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>
drivers/dma/bestcomm/ata.c
drivers/dma/bestcomm/bestcomm.c
drivers/dma/bestcomm/fec.c
drivers/dma/bestcomm/gen_bd.c