media: camss: csiphy: Ensure clock mux config is done before the rest
authorTodor Tomov <todor.tomov@linaro.org>
Wed, 25 Jul 2018 16:38:16 +0000 (12:38 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Thu, 2 Aug 2018 10:11:19 +0000 (06:11 -0400)
Add a write memory barier after clock mux config and before the rest
of the csiphy config.

Signed-off-by: Todor Tomov <todor.tomov@linaro.org>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/qcom/camss/camss-csiphy.c

index b37e691..2a9adcd 100644 (file)
@@ -364,6 +364,7 @@ static int csiphy_stream_on(struct csiphy_device *csiphy)
                val |= cfg->csid_id;
        }
        writel_relaxed(val, csiphy->base_clk_mux);
+       wmb();
 
        writel_relaxed(0x1, csiphy->base +
                       CAMSS_CSI_PHY_GLBL_T_INIT_CFG0);