Message ID | 20210214194102.126146-2-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBY7ZUWAQMGQEZHHY7HA@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 4908F3F158 for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 14 Feb 2021 20:41:25 +0100 (CET) Received: by mail-pg1-f200.google.com with SMTP id y26sf5313873pga.10 for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 14 Feb 2021 11:41:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1613331683; cv=pass; d=google.com; s=arc-20160816; b=P0r7HaSPJF5g8iQfKzRUzS306aNkxYyPyG1t4d975NsF2EEzDVHXZAw3BNLYCmrNUx KwvQlnHvxilYF76fec8EWEn73Qyh4xVWpkAqdTRR+qDp2k/alvQKMP+LbYk8zRQ2/fUX 00ocN9eyxWqj0YVGjrdyZ/4sCdKWyZoOQoylCyMVUnMvZDAmH8zwA6tv3yjD2375dM1W vI6tNFlWeepfMuFO9+YsRntuQwUtll8c4YAjb4l9W93FYyoF+6yY7hRDDkY0vK39IjmH X8MwEjiAPbSx7q/P6QAp4+ZCu1ejX52scnVipvLTJZkIQ7fRMtYZnxDh0Zk+yG1ZTCUk cFcQ== 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:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=b13l0cob2UcUAQhtzFhxATZx2yY4prtzpDPD/MvcIzY=; b=ocqCKnWB/E9Uof4Dzw8VLLB7hkky2njnjbPprUDNGBbB8rnFOb7wqzEOo5lqgdgQl5 mvGD8IM5UTvfWWMgqPdhnoW5MsPyjAV4N4iiBgji6uajoarl7IagQ1o914t3lxBg5zqO VxKVPDnv8WcD29gLR73Xj8Iys4rMo2B/aPkXdl+wRcbC10c5ONeQA0fHuXx1vhGYokxK SXPYGAf8uPekiJpA/xJXba5rfIU1hpVMavLl3lhWkOIpp3Hz5TDmVTSc/stigpf/TAV0 nvbSLy91bd+WOUmaHxkHvamrC0NXrepFGHq0aL0QmAnJTnRe74sLnSygOGfNmn77emZS 7ZuQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="EVG43J4/"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=b13l0cob2UcUAQhtzFhxATZx2yY4prtzpDPD/MvcIzY=; b=fp35uJ84RFy3jZkALweHYW+YDrwzybpKhuYfHISGcX7gsf1lMncPpomLW+8+JvMReC zRj0UvhbUKJSQ3PtO/GV432oMwQPj2v6JlrV7hxlgeJTm73MtKeCmUaWWo2zkrpsxpEu /0Aq+dqC8ax/aGE9/4oqzj+1eA5LukbWTgFgk= 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: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=b13l0cob2UcUAQhtzFhxATZx2yY4prtzpDPD/MvcIzY=; b=IiOnxGuKxq4Sr8w/dxYEQz7sm7AIGEH7VC3plqZ2SarENHVhGZUAgNuNJ94+CyqChM TqbNCVTeREbTwKT4S9LfkF7Bx8Aq6HOuogdsjMzXfNkrHGmAxGai4UA3NMp6srm0XJ0m +/U8uCTl4lQsx2z9uaBrbDmCzxL/GMOD9ISzlKoyB1FFANz/vMQ/zZy+Z8hxs8azylgD agNOaJM3Dp/S9RCayG/f01t+9WgFXtCLzcTI9uDWP8iW7qW3DEzRdGxzWmampJ5Gs18I PJ7m94olXaLrSbqpz3F9TSHuQbhdSTI1dKfq1izM7FeIS0tZ9lF+QTt7otpx0ITVLZiv ZzWQ== X-Gm-Message-State: AOAM5311MmTdM0SSHjEu/1J+YkiCVuRm/W2ci2GZbjCQRGfG0f+eFY7C A1Lo/31NPXkeh591oZ2zSFC8Tv9G X-Google-Smtp-Source: ABdhPJwY5dXSK3zdaIQlm2EI/eOq6l3IwJG1p1O89rEkW7A4LyJQG/A3ME/SJa8l6NF2+sJOL/LiVQ== X-Received: by 2002:a62:154a:0:b029:1e6:ca6b:d5c6 with SMTP id 71-20020a62154a0000b02901e6ca6bd5c6mr12206293pfv.47.1613331683715; Sun, 14 Feb 2021 11:41:23 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:7487:: with SMTP id h7ls1405891pll.4.gmail; Sun, 14 Feb 2021 11:41:23 -0800 (PST) X-Received: by 2002:a17:90a:2f06:: with SMTP id s6mr8147218pjd.76.1613331683058; Sun, 14 Feb 2021 11:41:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613331683; cv=none; d=google.com; s=arc-20160816; b=EtK9OrIWFrppTCEYV1G0XKg4I0jveATCBpDhs/KQJYl4nSJk3aKvbRUwHBqFLyKFFq vZpYQW4fl5EUjLNCjlnxDmaCafrBH18ZoG77zTE3F84rmaaAlSIjgp2UDEpaQ3W0T3xY cGgplae2aKwnP5B6qWjrVIh1ehakSVkBkqejBBpIsMhwTA7SP1gyn3bDzkWa8WdPS9X8 Y1IfQpnQfi3A6OVX0IO/LNRkPVmMgrqZnVeYlQa9UkLHu5AVwwDGez1TYF89qDMs2bOF fX2o+2enPcYMqZZSdr1XLA2D0VQLWJVNq9f7XrX4ZEzySZ81n4v7ZLpgQ1Zzby0We78Y 6RoQ== 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=WI1iyrnvhWaNG/MvFsahwpBXf2DTPnogdw12xoDU1G0=; b=D+pvg1NxQXOo3Ca0uwXBy2iOCNZqS/9Tcg8+1x0OeqK76RSyy0G7UPZ86WcglMF3aU 2QeyNVQz2p3bE2GSmnt7F+FUGOoO2fFy+vw6lQZi4kZK2ImMCUyIgNqxc2ka/a/kO1ia 4RbBzjgBR8gJWsJkm9r90wJ/qw4MtDxIpHeSe016F03tMXlg3StSCfHb36nUVH8S276i 89erCCKT+oPh7u5R+umlE2UpboTK9r2SjqdKPD9xH1hm6DIrqM0EKcQ0UjnKQhC5Q2CJ 6QkY/5yJXAOhU56xBVp8t4AakPe2OXS64JRb2ein4oKoSOpFJDzvq09eRJ3w/gg6WS1i hEQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="EVG43J4/"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id l14sor6991442pjy.42.2021.02.14.11.41.23 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Sun, 14 Feb 2021 11:41:23 -0800 (PST) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Received: by 2002:a17:90a:7e94:: with SMTP id j20mr12988495pjl.8.1613331682653; Sun, 14 Feb 2021 11:41:22 -0800 (PST) Received: from ub-XPS-13-9350.domain.name ([45.249.78.214]) by smtp.gmail.com with ESMTPSA id 125sm15129247pfu.7.2021.02.14.11.41.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Feb 2021 11:41:22 -0800 (PST) From: Jagan Teki <jagan@amarulasolutions.com> To: Maxime Ripard <mripard@kernel.org>, Chen-Yu Tsai <wens@csie.org>, Jernej Skrabec <jernej.skrabec@siol.net>, Laurent Pinchart <Laurent.pinchart@ideasonboard.com> Cc: dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH v3 1/7] drm: sun4i: dsi: Use drm_of_find_panel_or_bridge Date: Mon, 15 Feb 2021 01:10:56 +0530 Message-Id: <20210214194102.126146-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210214194102.126146-1-jagan@amarulasolutions.com> References: <20210214194102.126146-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="EVG43J4/"; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: <linux-amarula.amarulasolutions.com> X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/post>, <mailto:linux-amarula@amarulasolutions.com> List-Help: <https://support.google.com/a/amarulasolutions.com/bin/topic.py?topic=25838>, <mailto:linux-amarula+help@amarulasolutions.com> List-Archive: <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/> List-Unsubscribe: <mailto:googlegroups-manage+476853432473+unsubscribe@googlegroups.com>, <https://groups.google.com/a/amarulasolutions.com/group/linux-amarula/subscribe> |
Series |
|
Related |
show
|
diff --git a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c index 4f5efcace68e..2e9e7b2d4145 100644 --- a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c +++ b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c @@ -21,6 +21,7 @@ #include <drm/drm_atomic_helper.h> #include <drm/drm_mipi_dsi.h> +#include <drm/drm_of.h> #include <drm/drm_panel.h> #include <drm/drm_print.h> #include <drm/drm_probe_helper.h> @@ -963,10 +964,14 @@ static int sun6i_dsi_attach(struct mipi_dsi_host *host, struct mipi_dsi_device *device) { struct sun6i_dsi *dsi = host_to_sun6i_dsi(host); - struct drm_panel *panel = of_drm_find_panel(device->dev.of_node); + struct drm_panel *panel; + int ret; + + ret = drm_of_find_panel_or_bridge(dsi->dev->of_node, 0, 0, + &panel, NULL); + if (ret) + return ret; - if (IS_ERR(panel)) - return PTR_ERR(panel); if (!dsi->drm || !dsi->drm->registered) return -EPROBE_DEFER;
Replace of_drm_find_panel with drm_of_find_panel_or_bridge for finding panel, this indeed help to find the bridge if bridge support added. Added NULL in bridge argument, same will replace with bridge parameter once bridge supported. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> --- Changes for v3: - none drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-)