Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp5673627imm; Mon, 23 Jul 2018 04:09:51 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfT3nVMzREUonKyfYDXMLJduzWzmbQ0VrkfD+KU6DXe3gLhlDRVvrB4npl9Jx/coL6NWwQP X-Received: by 2002:a62:9d14:: with SMTP id i20-v6mr12775371pfd.3.1532344191786; Mon, 23 Jul 2018 04:09:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532344191; cv=none; d=google.com; s=arc-20160816; b=MozZtRXsEgCrVgQVZaQLgBKwHWuT8gRk07Mu3ebsxPueP49QIreB/2miCRPSvryBVT w7lLnrLwZWOMqrTTBLlRibpxKgyFRNPk0p7yIaX4rJsxN8Jw5pDDu/Ae/kjSvCfenEH5 weFRAcCnYPCMUTpZKz2ojgcTi8a7XeDYU3WAmI3vAqNFYs+2Rjq5wqryWnDl1y3MlUC7 oEyhWAnVppYdYWbETLRWrmB2vKhWTJPbShQ4pM2npe1ul/u/uLQ7dJbQ9l0v+6yPT9qV UiQXrK8Bw98PFtQp0B+QO21ZOnuKl45jYGLcFEkv1i2qQgTzGASbgwn/m3Z/98C8Vz1h xAiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=sH7oRCdvtHVIVF8kquYevQnEBk97DO+DZw/tnWBZzss=; b=kKL+bY7wueuN9vaGMuPXunNEV3rPGMwc1aJBTC18nqlwoTs0qYlLJrXAeTQuMhpkdV Z6sxRUfIsDcaNwL4tXnLhbYWBO52vsfZ0d79GzZ3SzdHUO6C1vrbMwrvQ4vyG9U7x27r OhsmNm85grHh5c0a1dI9/bjksxqySIjRmFS3pQPzjzIeg06FvZIRhbqeZTmmLL8UHP2Q j5CeFgExaV2ZJV5N3yJYbHVBN6+JdovsQ79ptpOT4fzSjUzSI0hqC9dKt6RL64pvbjnK 2V2lyVU4T9EiOF6jat1queazh30hB9q5Ln1Owig66QxVcXVdFXLJu9qWoM5il/bhvP43 cO3g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2-v6si8654108pln.471.2018.07.23.04.09.37; Mon, 23 Jul 2018 04:09:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388540AbeGWMIE (ORCPT + 99 others); Mon, 23 Jul 2018 08:08:04 -0400 Received: from ns.mm-sol.com ([37.157.136.199]:39912 "EHLO extserv.mm-sol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388059AbeGWMEo (ORCPT ); Mon, 23 Jul 2018 08:04:44 -0400 Received: from mms-0439.qualcomm.mm-sol.com (unknown [37.157.136.206]) by extserv.mm-sol.com (Postfix) with ESMTPSA id 5BB97CD56; Mon, 23 Jul 2018 14:04:02 +0300 (EEST) From: Todor Tomov To: mchehab@kernel.org, sakari.ailus@linux.intel.com, hans.verkuil@cisco.com, laurent.pinchart+renesas@ideasonboard.com, linux-media@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Todor Tomov Subject: [PATCH v3 07/35] media: camss: csiphy: Ensure clock mux config is done before the rest Date: Mon, 23 Jul 2018 14:02:24 +0300 Message-Id: <1532343772-27382-8-git-send-email-todor.tomov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1532343772-27382-1-git-send-email-todor.tomov@linaro.org> References: <1532343772-27382-1-git-send-email-todor.tomov@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a write memory barier after clock mux config and before the rest of the csiphy config. Signed-off-by: Todor Tomov --- drivers/media/platform/qcom/camss/camss-csiphy.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/media/platform/qcom/camss/camss-csiphy.c b/drivers/media/platform/qcom/camss/camss-csiphy.c index b37e691..2a9adcd 100644 --- a/drivers/media/platform/qcom/camss/camss-csiphy.c +++ b/drivers/media/platform/qcom/camss/camss-csiphy.c @@ -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); -- 2.7.4