Message ID | 20190524104115.20161-2-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBB3MUT7TQKGQERY6T2FI@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 D3D103F069 for <linux-amarula@patchwork.amarulasolutions.com>; Fri, 24 May 2019 12:41:50 +0200 (CEST) Received: by mail-pg1-f200.google.com with SMTP id e16sf6024671pga.4 for <linux-amarula@patchwork.amarulasolutions.com>; Fri, 24 May 2019 03:41:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1558694509; cv=pass; d=google.com; s=arc-20160816; b=ltrVYEcOWy5+Bhno8chU5uFbNwAxFPtbXYIUfs5w5W6Ctw1emWJDqJUwwflZ7mKoK6 azqKWJoMsByx086lgmp1JCpkcLXnFOpGaBWOiX+dVZnzKZCG4knKObhEGF+CpdEHrGO6 46XwPWRd6uyGrvMm/0MzGK9YReo6eunpM4fYkwjRPLXI8w9Dt+usBv8uPWFRPaqOC+XN Sy7BpTzl+VbAV2NWBQW9sufXkmxJIYWIEmbix3N/u7ocf8pO78i2BYwiM4+eIOygYYcH hfazQ3hqFC7BtmcjjbKss76CPY5ypM0w6XrUYFEbzJfk04diNDC6pFn724VyI2D6Mme1 s3vw== 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=F2X9FXRCRjkMZOyEtKkfaG3J6tW7iDd/8edXMIvv+fk=; b=hJgKZ1mnUg09XpbDOTlY40BtT5OGCWNrPfmh2KMHa5+5jhX5/ss3iCDr0aL8Z3fnau MBaQFXsG7ouxOnD6vZ1aG9kgNdOl0RnIr9BQL5jS6rDDLIKaWFLM4DyyFlWpWIcLLdoE U5hgTtGSiI0qU64nlyk6ijIL18LugKOrP6H+sRoPIUngP0MjTBFJVu9sc7kaahn/EwNS Fa5wf+1r2HXQCi3xp0GbMLrhFAzMZq+ypzaf86uY5Z93wBIOCOqnhO7nxv4+qbXiY14D 9iNSK6qhi85kWcAOfgfyAEgsdoAAiU4+qj888OWVWavK3ba4TebRAwbD4gqK/HzW+/Pd D2lQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=U3C+2Pkv; 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:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=F2X9FXRCRjkMZOyEtKkfaG3J6tW7iDd/8edXMIvv+fk=; b=DV3ITDcl/TCIFOsjaMcot4Mie6zUczsUYPOZYQcj89de7Xk3vFDUlKEda85g11J5yF G7ZfTSYSfI7PXX856wttNlok6ylfmLqhMMJ8CkER2o2RdYYVdWG3VbOP+E5M/TIcDK2C npj22sK88HW4SoJGI3usl9VwgrXHmhvGNPf3A= 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=F2X9FXRCRjkMZOyEtKkfaG3J6tW7iDd/8edXMIvv+fk=; b=Ip9bFnBJheUduuRlY93//kz9vXi+X4d7R6lS7heJXJAFtqElMNAKAMmedERK4Uuc2j /F3d/bJma38xNffhlx5Yjm55E2DxeP+UHaeHp1E62ZAhBMy7Y2MM/omeCRujn0IPLPwV uP0zh1ctTSIrwwW09asOPXMWqRvTyke5+E1fkWHHry8pBswa0kzxLWaQuy44YlfSlHjv Jj9CkZsBhJPLG5PL/DKkkTi7jgBzMFDC75/xP0148wcqS5diXxAfr1a3t3bFGk7KvwUd zeroTrL+maOcJcCA0WaZHgGPwBvMqX72B6SbxxXxcnfCcNzQQ0W/QTlLXX6h5J2tSvN1 f1Yw== X-Gm-Message-State: APjAAAXgHD2LDjwORjoZaDGCzP3gvz5xfitUW+1RIRxjoImbfOzRsVuE s6ErY26TfKeaSRRDsuBPoMogvqak X-Google-Smtp-Source: APXvYqxzsSESmOyTe3cBNdHQERg6VQpMHrvXfYg0JYdp8oMrFhBDOn9pKSyCqovqRGNgITXG6hO/YQ== X-Received: by 2002:aa7:9afc:: with SMTP id y28mr111457340pfp.101.1558694509697; Fri, 24 May 2019 03:41:49 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a65:4c86:: with SMTP id m6ls817646pgt.11.gmail; Fri, 24 May 2019 03:41:49 -0700 (PDT) X-Received: by 2002:a63:560d:: with SMTP id k13mr103838509pgb.124.1558694509359; Fri, 24 May 2019 03:41:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558694509; cv=none; d=google.com; s=arc-20160816; b=ZKJ0Ziuelwov2FuR3rHb52I2NIXEkoTffUVsA5dLjzFi7V4pXW1kV6Rm3EFrTeX8gx 9uAmMk26ppb4H4q196rRTST1PGAfT0GqpCThjogKPeqHqOHN1ibFzmnb0sWAuovMpFfb PhIIvNhYszAACz5qL3r6M1oX0S4F6jOqUXNfM1DzHQlnIOaNOAkzJMO5AmcVGFuJs3Ej zTP9sIjEGiM9s2B2cFGQjqQ5WegvTO9SmN+CGcB5QXEMBxr0rcQ51OmPcOwvlh9of+0d W/CbjXVdAWgQySdx5UEU0B58YEeA0QJbMry6bsmD4oNikrl754qInjiwwlFlABR581vf M6ew== 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=Y5swjDHGKG+ezs/+w53g29T0/qBVH9yKlg23nn55c5E=; b=KI1FAeN/YgCyReDUYetlOZI0PAWl8fZaRNH2HUgk/77wzK5yvsytZ0e0ox66GUbLTG 5JeN5rP2h5Q8WKPBfY3rdEhVkcYeT3OKCyYK1yaApbQ+5N9llx8cAYe+7J2Ra3lNvl5u Y2X/hcRofyaZ7VlMf9XckqDFcAkRXaxZ/6LautFgFYBiIZuu1Lmajtf1AYxgGkoZH061 tbLjoG75py5XoMbPs5gZV/X/Dr9yAgtKWVydaGBIhbi5PMqHh/Uf5rUA1Og/GUgCCW9t 3XTYsWui4WzY4HaQYp06qz8+ADdxXdOA0gpgJcjXxg6G1LtQAJaOwnThzYK0GNXl1pO7 mC0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=U3C+2Pkv; 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 s193sor2400404pfs.6.2019.05.24.03.41.49 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Fri, 24 May 2019 03:41:49 -0700 (PDT) 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:a63:9d8d:: with SMTP id i135mr104296236pgd.245.1558694509078; Fri, 24 May 2019 03:41:49 -0700 (PDT) Received: from localhost.localdomain ([183.82.227.60]) by smtp.gmail.com with ESMTPSA id m72sm6550113pjb.7.2019.05.24.03.41.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 May 2019 03:41:48 -0700 (PDT) From: Jagan Teki <jagan@amarulasolutions.com> To: Andrzej Hajda <a.hajda@samsung.com>, Laurent Pinchart <Laurent.pinchart@ideasonboard.com>, Chen-Yu Tsai <wens@csie.org>, Maxime Ripard <maxime.ripard@bootlin.com>, David Airlie <airlied@linux.ie>, Daniel Vetter <daniel@ffwll.ch>, Rob Herring <robh+dt@kernel.org>, Mark Rutland <mark.rutland@arm.com> Cc: Michael Trimarchi <michael@amarulasolutions.com>, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com>, Paul Kocialkowski <paul.kocialkowski@bootlin.com> Subject: [PATCH v2 1/6] drm/sun4i: dsi: Use drm panel_or_bridge call Date: Fri, 24 May 2019 16:11:10 +0530 Message-Id: <20190524104115.20161-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190524104115.20161-1-jagan@amarulasolutions.com> References: <20190524104115.20161-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=U3C+2Pkv; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 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 65771e9a343a..ae2fe31b05b1 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/drmP.h> #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_probe_helper.h> @@ -964,11 +965,13 @@ static int sun6i_dsi_attach(struct mipi_dsi_host *host, struct mipi_dsi_device *device) { struct sun6i_dsi *dsi = host_to_sun6i_dsi(host); + int ret; dsi->device = device; - dsi->panel = of_drm_find_panel(device->dev.of_node); - if (IS_ERR(dsi->panel)) - return PTR_ERR(dsi->panel); + ret = drm_of_find_panel_or_bridge(host->dev->of_node, 0, 0, + &dsi->panel, NULL); + if (ret) + return ret; dev_info(host->dev, "Attached device %s\n", device->name);
Right now the driver is finding the panel using of_drm_find_panel, replace the same with drm_of_find_panel_or_bridge which would help to find the panel or bridge on the same call if bridge support added in future. Added NULL in bridge argument, same will replace with bridge parameter once bridge supported. Cc: Paul Kocialkowski <paul.kocialkowski@bootlin.com> Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> --- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-)