Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1001118imm; Wed, 25 Jul 2018 09:44:31 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdypfBrsuLm/eY8b8EjuiDEvJobYtbgHQGIm6Db51fakla4llH3PBC2HD5ugn7+CBYS4VcH X-Received: by 2002:a63:2404:: with SMTP id k4-v6mr21037047pgk.191.1532537071185; Wed, 25 Jul 2018 09:44:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1532537071; cv=none; d=google.com; s=arc-20160816; b=0GV/aplr5ihNZfnLNxhECi7dx/vXmHEmXyQNKdzTOZiyttY2f126B7FupuP2ly4oF+ 7ed7IOTSzF6lRxmYJPBvmTeRWTAIZbo/SBxFX4294h9EDOliffa2eVBi++MlfpJDV+VS y7yORWtqAmKfNWp/MPeeHEuOMCYwgfNJDJtJ3Kt9Fjf6kLKz4PGSP3SQZyfu1V5a6PMT qxE8utyExsifzltSdKu9BPkkGqhiZV5kOiPQAOAzEr9hFxK2f/yw/8c3WFusCsdsoHaE w4ZZG91lNpA1nQ5JQAcymAKyeX3Nj7cvVhFpIyV2A/kbEDxoJg8ea5dt8bYuHz/gP8/V P0PA== 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=kenZ2jAC49kLKi05XDVfmDIZK/r3Xlc3YADB6v4JLf5vhR7Q19BvfF7Sxf+DoM4pzQ ljE693bUPnuWAqfBV3fn1lMnUxM2vftfJiVk76y0OAvkWVK46CMUmcSngoIPZemVq8wo njGShXAVPNzIGF5TIqo+Ja8OL5LZOSNFeL5tYrtMnXILzXgxqdujMlQLdlM+mKzl+awK Lo5HkZ7g2F1nV75ofv6E9jrG0PemyD5yoON/kY4VKLdtsk0fcexu6Ziqzo7tDyzat8Ow 8tDYLBmGj+chR/kJOJd6JknZcar2sq+DYlqGluiOZDWbUv+Bl2xlY+22n1QK3ZZCVyV2 C5jQ== 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 v129-v6si15807268pfc.330.2018.07.25.09.44.16; Wed, 25 Jul 2018 09:44:31 -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 S1729527AbeGYRvY (ORCPT + 99 others); Wed, 25 Jul 2018 13:51:24 -0400 Received: from ns.mm-sol.com ([37.157.136.199]:35587 "EHLO extserv.mm-sol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729184AbeGYRvY (ORCPT ); Wed, 25 Jul 2018 13:51:24 -0400 Received: from mms-0439.qualcomm.mm-sol.com (unknown [37.157.136.206]) by extserv.mm-sol.com (Postfix) with ESMTPSA id E22AFCD59; Wed, 25 Jul 2018 19:38:53 +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 v4 07/34] media: camss: csiphy: Ensure clock mux config is done before the rest Date: Wed, 25 Jul 2018 19:38:16 +0300 Message-Id: <1532536723-19062-8-git-send-email-todor.tomov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1532536723-19062-1-git-send-email-todor.tomov@linaro.org> References: <1532536723-19062-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