Message ID | 20221214125907.376148-5-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBUER46OAMGQENUTTAFI@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f199.google.com (mail-pf1-f199.google.com [209.85.210.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 653003F0FB for <linux-amarula@patchwork.amarulasolutions.com>; Wed, 14 Dec 2022 14:00:01 +0100 (CET) Received: by mail-pf1-f199.google.com with SMTP id e6-20020aa78c46000000b005772151d489sf4084016pfd.15 for <linux-amarula@patchwork.amarulasolutions.com>; Wed, 14 Dec 2022 05:00:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1671022800; cv=pass; d=google.com; s=arc-20160816; b=uXFrq6PXDCdPbFjiGTxCiDGl+2YkCXn5rSXU/chVsUKOJADVTv+v6fck/EK1Q8t29z Y54E7GHNBSDw+MjGFbb2KJNBNPx3Yq30EC3dPc1V7Tf0Mnw3473RQBeiLluNmJyfEz5Q Vd3CEMyMRVvQdEMkm6gJKra02eO7zCB6i96uVk0LBNStyJMgJx2jmJICBIeipf6QfKdP eKheBSSSevPPOSxN4yCsllcPp9e0+jfZ+XQis8yGoODXNyz+0rHTilUTJYH1Q8h/twcy 2cWbBAdfEZDNb/lw6Plme0Q7XGA2PzUi3v51AERg/UtFju/kh7cNEkYGIAg1lfjZpmtO esbA== 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=KjjTYPuHPN4kdeL89ciXy6DfmZqnCWIYVToDQJLvqPU=; b=gUdcu2rJEhk5JagToyZ/5xq3aR/tKF0OqKjM1USsg38Kc9L3NsG5alhBX7VUHptMJW YJI/yaaD8tOFh5ns/maE7QXsy1NE+vYtWf1g1mdWH0LzWUvscmNQBD1dvDPvsEv2pM9R EPOanldJ3hGVut66S85WnHW+S9iAvaxmwMnb+fA3lTtnoGmfnc8gkZmugL8Ho9Kqyzfi fK/4zdxupFq5l+VXf8lCOA6TQMpMz0ouA1eh8ImNEzhfTnBLfs6H4roQ0AxD/3ERgMf1 y4AF/Utg6hw32ThsRhee+noYup90oosuBWGuvvtvcBCPeekc4V5t5zVgZ4/vsIY5Xqu2 GPFg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MS2PaqXT; 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=KjjTYPuHPN4kdeL89ciXy6DfmZqnCWIYVToDQJLvqPU=; b=HZpLirb1W1651Nsmyu494kEEmfBX0h00BU4sV0OxPjHspH97muX8GS2KCMGeENLhSE UdFYTd49D5JtTtzxVBrZ9wsoWscMtdmBmNZ0KeJJOZR5MnxUT14512FDQstMHVfgzmIL R9Avd9lPSDxuIEsmU89i9dDniVox9i1XiroAc= 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=KjjTYPuHPN4kdeL89ciXy6DfmZqnCWIYVToDQJLvqPU=; b=A6nabmVdL8QIM93RMYtHdlc+sGsOVm37LLrBZ0Y8MMQ+6kZndIbSFU0uF1MC2IwLB2 vu+0lXL3N/7d6tXSA8yH+e6Lm1z2+ZE0WM0+2tgCIZj5FB3IlI+A3/D2MFARbYYjFjEj gZXWHFSLCoJ/DvZ4IVA/btR4enzyPBon6c7aVZ0BDpWhNU/TKqpvA7JFgPieNPWjovRP 8PNuBuP/aUYhiCFTo+HpGcponssBk2rXFi/68EPi2N7/1l+ioGYLAeMl4tYfRo25yW0D zL697QSCdLfgjj5ac4djRIUNCivPq/YAd9Yg35q+X2t1qUOvCxl2wk/OFsGwOmizDQIt oe4w== X-Gm-Message-State: ANoB5pna48zVbbvHcw51PfcTwz/UMsG1GqgO7iJpuNQCZIgNSr7p6F61 0dk9tchxaI8kvajW1RWbW0sEvbn6 X-Google-Smtp-Source: AA0mqf5a+lym9Yib4TxwkfOamJS43qwpt7myR3aLQoGPqnT6+0USmuLsGF7GkOUM41CJI6nfsuqrMw== X-Received: by 2002:aa7:85d6:0:b0:57a:92f7:8f1 with SMTP id z22-20020aa785d6000000b0057a92f708f1mr343714pfn.6.1671022800166; Wed, 14 Dec 2022 05:00:00 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90a:8a94:b0:218:a5af:5c43 with SMTP id x20-20020a17090a8a9400b00218a5af5c43ls24228216pjn.3.-pod-control-gmail; Wed, 14 Dec 2022 04:59:59 -0800 (PST) X-Received: by 2002:a17:902:cf06:b0:187:261a:8441 with SMTP id i6-20020a170902cf0600b00187261a8441mr27782177plg.16.1671022799309; Wed, 14 Dec 2022 04:59:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671022799; cv=none; d=google.com; s=arc-20160816; b=M9mfljMDb9grKwGbjPyTQ88z+66jWV8bTGILqe4FAIg4JT/x/TQMzRkAxc+aAT75oI w//Oi619uT3QmF2gFAi+t7VyXis3R481HwRou/iVAvTsqReoCcvPRTrm9Ctt/mf1Hd7b p5MmJ274WH0BKYv5SbDTYgrZLA6Qmas2sEo7oDHgiMp7nUwZsrZAVRIPEx6DtLjLYigU yntmB36vZGxhkcVfBD/TQ6VZOdggit5Xq7Sb3C1gHgsA5RHr4wkW68sTDKXx78oPVkuz dLJXQY+wJkO70GyU2PmvRhfDZ8cL8ha6UrHlZAc3g1afHBY6lPI3M8EsCeqVjyB5Tx8K DSzw== 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=5XV0iT2+anlnzNFxB8gtw/95iQZwlim72SiDndwZJCQ=; b=otGQWUBiyuqcbSII5vQgdkZQd64DwFmer/vZ+vFKIjGE2+E78mrMgoROgavo24fIjF zxz5f6LQbquQqhkG8Z4FZlCfabtdG3yg/FSUY1QbXWp1f2Uf0PKvkLgQyiKNV3GnmEVt b0NsZXishHgGI+bRlZ2bNNO3fm4/2e+8kyFXn6ubhN9iNo8tIqBNAghrXNsIf6KU1+kK MjImcHM/9Ay2GbpvIdEUVEOg0A4Daq1sm+/i0avqcZKpRvAR0hEjbmkbEHgza2zDQLJQ 2PdyCaY/SVMxC5qQoy55xJDpSsv+lKjjiovh9dm1WBb6T8c7dwBp4TUdUNleP8XfOrHH psEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=MS2PaqXT; 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 d6-20020a170902aa8600b0018969b4a162sor1531332plr.43.2022.12.14.04.59.59 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Wed, 14 Dec 2022 04:59:59 -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:d68b:b0:9d:efbf:6604 with SMTP id it11-20020a056a20d68b00b0009defbf6604mr30432564pzb.18.1671022799002; Wed, 14 Dec 2022 04:59:59 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a809:5e03:faf:846e:352d]) by smtp.gmail.com with ESMTPSA id ix17-20020a170902f81100b001895f7c8a71sm1838651plb.97.2022.12.14.04.59.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Dec 2022 04:59:58 -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>, Joonyoung Shim <jy0922.shim@samsung.com>, Seung-Woo Kim <sw0312.kim@samsung.com>, Kyungmin Park <kyungmin.park@samsung.com>, Frieder Schrempf <frieder.schrempf@kontron.de>, Fancy Fang <chen.fang@nxp.com>, Tim Harvey <tharvey@gateworks.com>, Michael Nazzareno Trimarchi <michael@amarulasolutions.com>, Adam Ford <aford173@gmail.com>, Neil Armstrong <narmstrong@linaro.org>, Robert Foss <robert.foss@linaro.org>, Laurent Pinchart <Laurent.pinchart@ideasonboard.com>, Tommaso Merciai <tommaso.merciai@amarulasolutions.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 v10 04/18] drm: exynos: dsi: Switch to devm_drm_of_dsi_get_bridge Date: Wed, 14 Dec 2022 18:28:53 +0530 Message-Id: <20221214125907.376148-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221214125907.376148-1-jagan@amarulasolutions.com> References: <20221214125907.376148-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=MS2PaqXT; 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 v10: - new patch drivers/gpu/drm/exynos/exynos_drm_dsi.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)