提交 5ba913b3 编写于 作者: T Todor Tomov 提交者: Mauro Carvalho Chehab

media: camss: csiphy: Ensure clock mux config is done before the rest

Add a write memory barier after clock mux config and before the rest
of the csiphy config.
Signed-off-by: NTodor Tomov <todor.tomov@linaro.org>
Signed-off-by: NHans Verkuil <hansverk@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
上级 2004fc09
...@@ -364,6 +364,7 @@ static int csiphy_stream_on(struct csiphy_device *csiphy) ...@@ -364,6 +364,7 @@ static int csiphy_stream_on(struct csiphy_device *csiphy)
val |= cfg->csid_id; val |= cfg->csid_id;
} }
writel_relaxed(val, csiphy->base_clk_mux); writel_relaxed(val, csiphy->base_clk_mux);
wmb();
writel_relaxed(0x1, csiphy->base + writel_relaxed(0x1, csiphy->base +
CAMSS_CSI_PHY_GLBL_T_INIT_CFG0); CAMSS_CSI_PHY_GLBL_T_INIT_CFG0);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册