Received: by 2002:ac0:a591:0:0:0:0:0 with SMTP id m17-v6csp648479imm; Thu, 5 Jul 2018 06:43:01 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd+xR2qiLbDRSY+E+X0AeuEgMX2UwmhTqGG9ir5O4DJ0stgOQENsFA2bvkahXLREpLGt1LX X-Received: by 2002:a65:614a:: with SMTP id o10-v6mr5478064pgv.387.1530798181887; Thu, 05 Jul 2018 06:43:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530798181; cv=none; d=google.com; s=arc-20160816; b=xcqefLODTJ1iuV/3/3vkGKMA0oSD4Ea22RqPsyNQK3oOwwZZLDpL/zEdBYRAzDdmgE Q5zO+1Z+xTSlq5cEQsZa4S0PGxWMHglepDidygpoCdP/RKJCiqEfkNnvYDTu3o22T+uu rqD7dwAyE/HclvKvMNUElyb8GlUGiyP4+M79COiVUfG4q01wiiaND8dIM39SJSNOOwBx ugmgHQfjfQx/5h9nWdfzWQdk1Q03VLAcIMHHiXmTnDsqDrHF0zqw7Te7tPnEqF3nUQYq X5DGF4ykcPKPn+YYgWfXqeNQI88/Utik80bMHStifgRVtdSOnnGb60gaKzdXvHZD3PEp 03Cg== 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=oZMqintVSuy7+jM5GIz/r5zwFEXhQ5uqsgOhrouOYZ5Eg8+Lzx+Y/ovxC5jp6laM0o WUOYvImM5ZjxpxajTnATSOxZrI7NVXc3xXdTzRx7PSjEpXjmnhNSorm0qWmJlOHwFPql 2n2dv7Sn4vAC2xPeUrhKYKYDg6frsWmaq2ZKcO3uAzQBmy1Ief4e4sjkARttdTPrvYXd K3JXyPjgpoQQXrvoRZanhLf1nq5ALxcttxeD/Ws3stxhcZ3RR5oQsMm+PQfsu1j5ITAQ OXe+ACLYZQqrxT/1x9Fgxnc3BkTq2jHVatq8aE0jqT19+80fANmHl8kvOLiYFPIVu0l7 mOhw== 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 a24-v6si5455740pgw.213.2018.07.05.06.42.47; Thu, 05 Jul 2018 06:43:01 -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 S1754487AbeGENlN (ORCPT + 99 others); Thu, 5 Jul 2018 09:41:13 -0400 Received: from ns.mm-sol.com ([37.157.136.199]:41291 "EHLO extserv.mm-sol.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753655AbeGENdU (ORCPT ); Thu, 5 Jul 2018 09:33:20 -0400 Received: from mms-0439.qualcomm.mm-sol.com (unknown [37.157.136.206]) by extserv.mm-sol.com (Postfix) with ESMTPSA id 1980BCD4F; Thu, 5 Jul 2018 16:33:17 +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 v2 07/34] media: camss: csiphy: Ensure clock mux config is done before the rest Date: Thu, 5 Jul 2018 16:32:38 +0300 Message-Id: <1530797585-8555-8-git-send-email-todor.tomov@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530797585-8555-1-git-send-email-todor.tomov@linaro.org> References: <1530797585-8555-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