From: Bjorn Andersson Date: Fri, 16 Oct 2020 03:14:42 +0000 (-0500) Subject: remoteproc/mediatek: Remove non-standard dsb() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=141bc97c1bfe31397b2a12e5676d0c2692c8e07e;p=linux.git remoteproc/mediatek: Remove non-standard dsb() As reported by Stephen, dsb() is not declared on e.g. x86_64, preventing the mtp_scp from building. Simply remove the barrier (and the readback), suggested by Pi-Hsun to resolve this. Fixes: fd0b6c1ff85a ("remoteproc/mediatek: Add support for mt8192 SCP") Reported-by: Stephen Rothwell Suggested-by: Pi-Hsun Shih Signed-off-by: Bjorn Andersson --- diff --git a/drivers/remoteproc/mtk_scp.c b/drivers/remoteproc/mtk_scp.c index 78d7905366fd..577cbd5d421e 100644 --- a/drivers/remoteproc/mtk_scp.c +++ b/drivers/remoteproc/mtk_scp.c @@ -323,10 +323,6 @@ static int mt8192_scp_before_load(struct mtk_scp *scp) writel(1, scp->reg_base + MT8192_CORE0_SW_RSTN_SET); - dsb(sy); - - readl(scp->reg_base + MT8192_CORE0_SW_RSTN_SET); - /* enable SRAM clock */ mt8192_power_on_sram(scp->reg_base + MT8192_L2TCM_SRAM_PD_0); mt8192_power_on_sram(scp->reg_base + MT8192_L2TCM_SRAM_PD_1);