Message ID | 20230126144427.607098-5-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBCVEZKPAMGQEKMRAFHY@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id EC0FF3F046 for <linux-amarula@patchwork.amarulasolutions.com>; Thu, 26 Jan 2023 15:45:31 +0100 (CET) Received: by mail-pj1-f70.google.com with SMTP id y11-20020a17090a86cb00b0022bec81bf5esf937298pjv.4 for <linux-amarula@patchwork.amarulasolutions.com>; Thu, 26 Jan 2023 06:45:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1674744330; cv=pass; d=google.com; s=arc-20160816; b=QZrBfOs9HZ6MuJt5lo17B/QZVo2KPabGy1cQM3cluuZ0D3K3kJ48d/dwp188VvzVD5 uKr4G3JMgpuW419OZZpSKGjiVUF1fU/Ke3oVbKqiWSNmKnG5AZzGDeUgvcMDQUAADKhE YeWYQM9hWqMW5j3/Qy/y5Awx4/XBT6rrdLOYTf8YuhRxM4nYqxaXsKm+KBVK+Xhk4GrI 0kHFwKKwdCdYR8rTAEDxZDN3b2p/LgnxtN3o6/ev4b713sXpUb9eDJDCyaoJ+HrZwEb6 wzLzdKrxNzySMAjOWxSNO17r8XnoWtl0Mm2Jwk4Ubc6tHTPAhvUOcAp/g5stS4hOidZi nunA== 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=fvOYYIbSxsqUPGZQt3xm564caWHKm8MIQO4tvyLIdo8=; b=q2C96tDztY/soWraWKFw37+w57KAt0LATLOB1/XEycKC0hejxEP4M+KnLPawi/tcO6 wVzRDwaX8maSN3BrMORuvZo/k1Q7CLqt0Tq9KGRcOLSAhp4/0ZHycfjXLAakjriZCkG7 fcXM/Ak1vnpoQJxl0rihe9SQNVACZzEzRtXCvs68nKJHukAbM2Gnyw3I8JvQwiyduSTL bBTJwMbzBAW2JMUbjPzKOr/lkUKP8rjd1I3mDlFDkTj+qxMkpU2hnut5uD2qgKnE8hlN DlfmAMk8qpbjuZhUMwWopaygTd6VbSOC65gDVSdqtQBLFRX2phyfWkA3zoynIETkLJSH KILA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=eXOCY6fE; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:x-original-authentication-results :x-original-sender:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=fvOYYIbSxsqUPGZQt3xm564caWHKm8MIQO4tvyLIdo8=; b=jy8t2d0pZStVVyhcd6QmB9Q6W3H6eCjyFGhHbN0IWq4uZRCINzWcEbdlMmoZ7Rcbt4 jBda1OxPPafuspZCgTXsTxFhBLqlwngkfgPctfT/qBz9KTwIxwQTNP74Jx0MtQLk06fX QfyP7jnj72YX6iB8am4y6/kvxtViTpW0FmLUA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=fvOYYIbSxsqUPGZQt3xm564caWHKm8MIQO4tvyLIdo8=; b=RwLElYEWw3SVZM5evkdFhpQa99x2WlyR8wxhNpU8+jgWYXMEbDMHE9S0Y1oWxwjGQb ixM5RYTh5/WQnEM2JNPh8KYSAxAM6CXta+uClreeQv8InnEvoQbR5Ieh79LClXwg47rJ dEvEEypoQoIgGMRPDf5FIsOzxToPHSQH40SIggRt7sFc4gLP6jLYJRDHXcp8maistRD1 c7KI/xe0UKFMijSOR4/DiH8VQOOF7pFnttXBN1MjFmKER0pNUcJw2sYX6VfxSzlXe6zE LqTlfFpNONm2PCaHJH7DNvlxc/qvmPFEsrjeUf1Ur73ceOWMjjPFNMiDVhLD4wELFemy eyHg== X-Gm-Message-State: AFqh2kqSFR6tHXkhU43jIlmVqJXQGdwznQIEVTxpIveYy4IEhKqAlEZO 643AnSfxoB3EjYdb7MTb1Bc6q45s X-Google-Smtp-Source: AMrXdXsf5RTeXXF6n4WMZ2V3mseXyOHwtlWSw7Ocz6ajJQvW2BYpgsEAEBReEhVKY9qigksS9uv3zw== X-Received: by 2002:a17:902:c3c6:b0:195:e436:6814 with SMTP id j6-20020a170902c3c600b00195e4366814mr2688093plj.14.1674744330740; Thu, 26 Jan 2023 06:45:30 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:7088:b0:178:3881:c7e3 with SMTP id z8-20020a170902708800b001783881c7e3ls2312169plk.11.-pod-prod-gmail; Thu, 26 Jan 2023 06:45:30 -0800 (PST) X-Received: by 2002:a17:902:cf08:b0:192:c125:ac2f with SMTP id i8-20020a170902cf0800b00192c125ac2fmr39039178plg.8.1674744329823; Thu, 26 Jan 2023 06:45:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674744329; cv=none; d=google.com; s=arc-20160816; b=PMJujf7r3zKVGOmYKlq1nwJ7YUNmYzQo0EzY/TcsJpGUwM2BnO2x3rO+clM8cUDbJ9 AAAWOeQw40b4Qz4LkY4TdolhP6sRbyIdVSwyg5Qebdq2WMy4HWv7QK8Dc1s0kLHZftUm 5ikixh5uDh+wFQYbfgQImZ9lpBgJIZGl4a48+RUjNVkN0TMtc/aguhGbPJpjEhi7Hgzp B5jn3H7YOFH724nru25YYBxucrUbaKUMm7EyV9l/B4l2KB4RkeMHp2ysK3HyjT3ReUMU WWUdEhv0TWIqA2NkbTvDysWU8hTvmrjWo1nTYA8+uOVfi04GQT/UT39XmcMCdjn+aUj9 sXxA== 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=+otNyxyXWcvyXtJMZVAopiBO8ADOw+cl3pmhYxy9GFM=; b=R73WlY+J2fYilEsR1gSeQAI4KOeS7k4WnOis4ECQENyUyYSVppUD9+LVhWZNcmI5GE WlDJAokbl0jYO44CWwCsC8mg9ZVPa96sWOQZRye3ANl0YcTuloaGbpKw57On7fhllvJP 2zn61waYxKvTyChcNoK4H0QSpxnHwPEKxETfecXmkiF1PH0MhbVYkOFhtXce2/ldGnqH j9/3/c+huG590a6jE1IuLWlCduicxJzo03ToXLn2Nev7XVSMFRuMHBxafj7ClBXadCpd jtQOqiuTW81QwWB4/USzlPC3E81WIOzYyA1OgB92jSZ4hA/4aES41s0IgB84+OtuWNm1 WBBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=eXOCY6fE; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 r18-20020a170903411200b0019487b1c90fsor679353pld.163.2023.01.26.06.45.29 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Thu, 26 Jan 2023 06:45:29 -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:a05:6a20:8b88:b0:b8:aca6:b64f with SMTP id m8-20020a056a208b8800b000b8aca6b64fmr34401167pzh.34.1674744329524; Thu, 26 Jan 2023 06:45:29 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a238:3cb1:2156:ef87:8af5]) by smtp.gmail.com with ESMTPSA id d197-20020a6336ce000000b0042988a04bfdsm823660pga.9.2023.01.26.06.45.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Jan 2023 06:45:28 -0800 (PST) From: Jagan Teki <jagan@amarulasolutions.com> To: Andrzej Hajda <andrzej.hajda@intel.com>, Inki Dae <inki.dae@samsung.com>, Marek Szyprowski <m.szyprowski@samsung.com>, Seung-Woo Kim <sw0312.kim@samsung.com>, Kyungmin Park <kyungmin.park@samsung.com>, Frieder Schrempf <frieder.schrempf@kontron.de>, Tim Harvey <tharvey@gateworks.com>, Adam Ford <aford173@gmail.com>, Robert Foss <robert.foss@linaro.org>, Laurent Pinchart <Laurent.pinchart@ideasonboard.com>, Marek Vasut <marex@denx.de> Cc: Matteo Lisi <matteo.lisi@engicam.com>, dri-devel@lists.freedesktop.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, NXP Linux Team <linux-imx@nxp.com>, linux-amarula <linux-amarula@amarulasolutions.com>, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH v12 04/18] drm: exynos: dsi: Switch to devm_drm_of_dsi_get_bridge Date: Thu, 26 Jan 2023 20:14:13 +0530 Message-Id: <20230126144427.607098-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230126144427.607098-1-jagan@amarulasolutions.com> References: <20230126144427.607098-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=eXOCY6fE; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index df15501b1075..4a165764121d 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -1470,18 +1470,9 @@ static int exynos_dsi_host_attach(struct mipi_dsi_host *host, struct device *dev = dsi->dev; struct drm_encoder *encoder = &dsi->encoder; struct drm_device *drm = encoder->dev; - struct drm_panel *panel; int ret; - panel = of_drm_find_panel(device->dev.of_node); - if (!IS_ERR(panel)) { - dsi->out_bridge = devm_drm_panel_bridge_add(dev, panel); - } else { - dsi->out_bridge = of_drm_find_bridge(device->dev.of_node); - if (!dsi->out_bridge) - dsi->out_bridge = ERR_PTR(-EINVAL); - } - + dsi->out_bridge = devm_drm_of_dsi_get_bridge(dev, dev->of_node, 1, 0); if (IS_ERR(dsi->out_bridge)) { ret = PTR_ERR(dsi->out_bridge); DRM_DEV_ERROR(dev, "failed to find the bridge: %d\n", ret); @@ -1531,8 +1522,6 @@ static int exynos_dsi_host_detach(struct mipi_dsi_host *host, struct exynos_dsi *dsi = host_to_dsi(host); struct drm_device *drm = dsi->encoder.dev; - dsi->out_bridge = NULL; - if (drm->mode_config.poll_enabled) drm_kms_helper_hotplug_event(drm);
devm_drm_of_dsi_get_bridge is capable of looking up the downstream DSI bridge and panel and trying to add a panel bridge if the panel is found. Replace explicit finding calls with devm_drm_of_dsi_get_bridge. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> --- Changes for v12, v11: - none Changes for v10: - new patch drivers/gpu/drm/exynos/exynos_drm_dsi.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)