From patchwork Fri Nov 16 16:39:10 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 49 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (cartago.priv [10.11.12.1]) by cassiopea (Postfix) with ESMTPS id 6CA0E2E53B4 for ; Fri, 16 Nov 2018 17:40:24 +0100 (CET) Received: by mail-pf1-f199.google.com with SMTP id o28-v6sf16303871pfk.10 for ; Fri, 16 Nov 2018 08:40:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1542386423; cv=pass; d=google.com; s=arc-20160816; b=S3JGYzpUPei2EeXLo1Ye30q8/q8D3wDnSWtw2IrG6tfL0s1vm+RXxGmY88JY8qBkwC 55sHE6JQi2LbFIU5Pnqn9TiYrhV7pVx6JouQuuwbMa8qMbjahCRfZZZ85QTO74+nir+i DkF//tzCUoTkf9ii2OWxeuNtvCvFch7Ws3r5+FHxK0+TVZ+3bh28F8aaq5nRQAqkAIDq N73YOkIxVQ0SvceYHokalqp3o6gPL3Esdbb/uOqIK8rHeDqDGwkFXO7q3TgkdZvWUd2W bmscAL5iVjB/QIdhRA47lVrop+Z8qs5MfkywYXq/nYFzpAf+3MUvjgtlz04mbuJg5vbo qnYg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=LrO967p/LnLVx88kJuV1gNk2tEKJ/CRJkfeL25hLlO0=; b=AYPnQJRxjuMgRJ9O/3rQRk3GfsZzta+odzRtMKA4hExGj52MmKsPicNOyOoq0ubayh 64RUd4BLEf0TPekasAXbM9423UtQkuSqab7k8P1L1OBEzjvYVs/Yew1nZGJHOuKoiL6y wrdAQyQLle9JLABtuNT2X4sT0RjFsAYABE3Kuo6nLNBCiPWhBT85ly5tj8GPzpSgTzFt reEqaSmJypIXarnHpzcq/MUl6XZmVzPE0+CUpfoI/v3wK+6efkBpXKZNA6MRWYqfB6xt fXNsIgBbkkcwhv88y/HRCJKS3O15KTTdaaNuIpL0AqBY2tMhrt1qBeqV2gBs8RBkixMb hIZg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lcFeO38E; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=LrO967p/LnLVx88kJuV1gNk2tEKJ/CRJkfeL25hLlO0=; b=KLKYJXMdGIoOfPu4BM8YPo05BgfvSSezlt0fcHiWB91JiWs7dXh4TMyBjF8Sg2IB34 C+XjDSyy7koCw6tfnjaxXMix6sZBGaEWX8ySZHuRx8mAq3sNiVHjvjGHnw4WwLHbITYa tM78+1Aidwss+vkGnOwbh1HbJOei8SwzXydjA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=LrO967p/LnLVx88kJuV1gNk2tEKJ/CRJkfeL25hLlO0=; b=HuA24qhraxEU2bu6xL1AC1SpdYx1P5GhTD8Q4xj1mMpKLLZkV/Jp5BywMCvsHttsd9 Act0pv/29C2QLTjFGvO7E6ru/sdVDzMrrlUuDIJNYKKl0VshfD/Jzl2oagJFM3OVVfFO TF3TDpw9Qp4GwYspIVtRnXnTPnrcQcVjwTOR19+08pV5905yP5ocBL6aNwi92Ubeygrt 5Ir8xJ/7QJLkfUc7inV5hktx8Gw7YrfprJOSysdb4DMXU/59WNjk7auLBeEoj+9l05XD eXM9jVOgOecTmN6axz93jtwFFRhlaYr+np7/vI7ASAkQDmLcTZe7jcux4H9Xt/YyJg8U qM3w== X-Gm-Message-State: AGRZ1gJg7gOgOFSvIliShnI3eFbBANjL43K1T/oGICKZUnm1/UAF20Kn y0ZU6AkuxfjGwtvCGa4rMlLdF8gd X-Google-Smtp-Source: AJdET5cWRGJgk3Y7+txHEIZWWHV4nOBrKRrXrrqdhsLW9fcLYt0zUD343t8wvYNy6EoZdHbf7p8rWw== X-Received: by 2002:a62:7693:: with SMTP id r141mr2618093pfc.119.1542386423160; Fri, 16 Nov 2018 08:40:23 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:ac86:: with SMTP id h6ls6276750plr.2.gmail; Fri, 16 Nov 2018 08:40:22 -0800 (PST) X-Received: by 2002:a17:902:8f8f:: with SMTP id z15-v6mr11657321plo.257.1542386422852; Fri, 16 Nov 2018 08:40:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542386422; cv=none; d=google.com; s=arc-20160816; b=QEtx/DEz2gGo7ZHfnOxI7VgsWlklvUYWoZm1U/bEW+FiVjcfQNg2uetZ4MS1qo3cfB ODPzU8KVCFaNQO+4JjtIi6amdMjp6ESXXHYNLIJT1SLSdivROmVznCJx6IqKE1HZsAsS CiP9COWvepIKKTkc5EAPH5+7nVkD++dhCZ9TnhQA0pNWCoTlMzssUcm4BWi6U7wPtIrx rTGoOs46HXNnCSqRUBU9VSRtdJ8EKBqHflCBowwSzfdhFMuVNSa1GsByyVe+42E+5Npa unKQA2rHUXWGvZZkmjAyqPy8fll5VLDK6pAW5jmn3F0tjnmehnZltU9lvrQxMQl+bwqD lHZw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=LrO967p/LnLVx88kJuV1gNk2tEKJ/CRJkfeL25hLlO0=; b=fVwxghZgzak6tkoUqso9tmnN3JyKwnn08Pl46NdpD5UOT3rIpZx9uBrQi+c08Dxd9s zLFzPCsiO93cqwLugMpzR4PJ8vGe8Yj1tyyszq2ANRBsWe+tAdcjkEZjtQsscMoZzGRW wCYIazcMvpXqbDU/DUCr8F0gCQMg2F2LAuasypFFE52+6AypdUFmYWlKGIky258Ie8QB WQNOplBtSISqF5ajMyJ+blPcTBW9kAzCF9QISJHHq0u6fBJKG6beLkmzSOzA9ojVeyx6 lHobRiglLj8hiTJxsdFvaqlDymiBM20HyXhDu2pJpIjIW+mi8SadfrK4CODKdquijCU6 ylEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lcFeO38E; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id 59-v6sor37398805ple.72.2018.11.16.08.40.22 for (Google Transport Security); Fri, 16 Nov 2018 08:40:22 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:8608:: with SMTP id f8-v6mr11311783plo.95.1542386422513; Fri, 16 Nov 2018 08:40:22 -0800 (PST) Received: from localhost.localdomain ([115.97.190.86]) by smtp.gmail.com with ESMTPSA id p5-v6sm34622213pfb.109.2018.11.16.08.40.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 16 Nov 2018 08:40:22 -0800 (PST) From: Jagan Teki To: Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Rob Herring , Chen-Yu Tsai , Icenowy Zheng , Jernej Skrabec , Vasily Khoruzhick , Thierry Reding , Mark Rutland , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Michael Trimarchi , TL Lim , linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com Cc: Jagan Teki Subject: [PATCH v2 06/12] drm/sun4i: sun6i_mipi_dsi: Probe tcon0 during dsi_bind Date: Fri, 16 Nov 2018 22:09:10 +0530 Message-Id: <20181116163916.29621-7-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181116163916.29621-1-jagan@amarulasolutions.com> References: <20181116163916.29621-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=lcFeO38E; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Probe tcon0 during dsi_bind, so-that the tcon attributes like divider value, clock rate can get whenever it need. Signed-off-by: Jagan Teki --- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 7 +++++++ drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h | 1 + 2 files changed, 8 insertions(+) diff --git a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c index d60955880c43..66a01061e51d 100644 --- a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c +++ b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c @@ -25,6 +25,7 @@ #include #include "sun4i_drv.h" +#include "sun4i_tcon.h" #include "sun6i_mipi_dsi.h" #include