Message ID | 20230123122319.261341-5-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBZXYXGPAMGQEUFBVWMI@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id EBBEB3F039 for <linux-amarula@patchwork.amarulasolutions.com>; Mon, 23 Jan 2023 13:24:07 +0100 (CET) Received: by mail-pj1-f69.google.com with SMTP id u7-20020a17090a410700b002291f69fbb5sf4694557pjf.2 for <linux-amarula@patchwork.amarulasolutions.com>; Mon, 23 Jan 2023 04:24:07 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1674476646; cv=pass; d=google.com; s=arc-20160816; b=w/wMmsLDjnkMOernxZRvFdrQhw7b3JIVlzYIbjJFlQG/2HFDnDhNvRIsLL5VRNaiHM 6U4nV0cGjyVseJlv4Hg5WPoE+oGUnBU0WhPq6Sp0xBHn3UpqEYO4TND8zsrpn6YBv4rb tGTEgZt7arDQIVTm7W+we9FthsLxWmxtVlGQoVVSSsTzLjdXf+TYG/Nh06GfoEgJape/ dMEZyr6SVMaeIr1ZtX0LJ8lMviGJJRDrNbn9ejP6VxCo4tZugQR5bzfkZS8MCmfpwYQc ZWg56ykc4S6Qh1DZXBeDAvDvvqeylbtqKzQGzk2NFAum2h/HXWf5Zq4L+ZChrIGczK/n /yPA== 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=wlRQ7g1hfLilQYMH3kKtPdXm+8f9QQje/2pG9r40bIg=; b=je6hzypG8oh/sR2f8T9UwN6tXLQz7xmGN9RoF1fi6WhFjIwsmOs8nwfYZK7fwhV7nD 4QWjOrypsFq6oMLzUammIIL+CVlbv1o9vb1Vz8dKIdEoMQL7M0k88v68qci2nnOc1yJj P84FxFNl1ZXp6FLa0depooVgDg+1DmdAkT9c4haIxpzrJ7P2+sVdj1P/snuX0SqG3uqq ZMxiyPhrZZ0N1+r/q+eIqzdVSvZ+rudWV3kTYkuwfs5rIJ7+64OGFo23zLXHFaVKm5hB t2Pg33mzVij3KR5UcPgAiiPPqXb3i7Eeb9I3D1h74bLBn1SoiekYyEvGoNTxWLeEznVh rpiw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Bs0TV7ER; 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=wlRQ7g1hfLilQYMH3kKtPdXm+8f9QQje/2pG9r40bIg=; b=VhD9ezB3OW7Ap4gzFLYiADY+gYaXW8x5Gc8wqZG+vZbbARWhDm/6m39KdO0LZuqTuv /MNDMDl5IVSlp7ZdjtiUkRcJWciRm1AP7DHfcCa74aoO8pl08GFCoAjjsuxlG5NTVloy UzKmroMakB+pxe7bh9WgxbD5eMLYRWXs0hELU= 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=wlRQ7g1hfLilQYMH3kKtPdXm+8f9QQje/2pG9r40bIg=; b=8KesXsi7YQbVny0srmUS5zj4Ko0h6Cje9PQPNZie50OYmnOqofHgIVkzo9vU3USJfb 3NAO4GAaHvN2srBRJieWjxiyOzqGBih3Wc6JeQdMiM7RzWAHce4d2R4OZYrvWWi7Zmrp tDP4eLQK+kisnIa/ht6jl6tTe4y0tUJZGdLENfrvP3CfXQ+e0oIfZZEpBzPTiIO36n2k FGYseZR65JABOSixjB1jZa5R9jeUcRMOMR0UGyU+txnA7Facj/GM0UkXyLbgtZ/QeU5S HtXotRyqj1FHTdUgaUPYc6LcGYn+vLpDuecuPI5qsHVgZB7cwBalQnVFDL+N8nYczg5h pHEA== X-Gm-Message-State: AFqh2kp5zBmvP/6XCJCyFcrC/f18UfOvFD/UCROa582sa0CbUjBhBXPu wpgiBfbtv2HFx8RKOdmyUS7ctjk3 X-Google-Smtp-Source: AMrXdXuwOVx9s56KAtp7D3v4h7CME8bo7QbFXn9SH4QM5GP14V1zOejq9ZfhA8/F1MLu1yDGi7m3Bg== X-Received: by 2002:a62:64c5:0:b0:58d:af8c:feb7 with SMTP id y188-20020a6264c5000000b0058daf8cfeb7mr2815708pfb.1.1674476646538; Mon, 23 Jan 2023 04:24:06 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:90b:3c8d:b0:226:e7:18f9 with SMTP id pv13-20020a17090b3c8d00b0022600e718f9ls11105624pjb.0.-pod-canary-gmail; Mon, 23 Jan 2023 04:24:06 -0800 (PST) X-Received: by 2002:a17:902:d4c3:b0:194:d7d1:4c10 with SMTP id o3-20020a170902d4c300b00194d7d14c10mr15984446plg.66.1674476645696; Mon, 23 Jan 2023 04:24:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674476645; cv=none; d=google.com; s=arc-20160816; b=QGlsVsYkchHlarIYoTMUV6ZlBNlGYEYM2llpfjLM1OKJKUnJ2RJNKPAzkLuODhWzCf AnfxvDpxFTP97Up+OeSLygwbQwme/I3EYNLh80PHURRDWvZXf8jjvY1HhAyMMpXRjqKB nWMWNj09G4usCU+3HuaYLfKFWCvByTf2cuPsKe/o0fAZnMrkFngoICeE8leLREka/2dB H2GU0p9rMDg8CCVIXsjNOUgIDaC5JQcCTBOqia3cN5IgaZGHNsl8wNh2KH/SNeAfHm/G q96uDp4+MteiFJHUpKLij4MwW4oYMVykjHJeLlxDMAiLJoHCbXwGZw8mwu4DfQNpzU9X GPIg== 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=mGTDxW/0FHkTpFMtVsyR5B6P9WvJldck4Y7e8f4Ze3U=; b=nRXDz7ghvYWO0+2W/JLNl4mwqfeM6xvhbOx3e8XnWBLjqe1bae+IDfYj1DdL01IYuy W1jLeRcfs6laqqLXJEfbWeRagfppUNG8NabULaKlb3nhQVKgJqOEETeCLEGp7YQn/SKY 3paUf1m5+SOOXS2KL2WaiKLw1q9pLcKg9k9DY9AKuLYBB8379rx52YdG/ug4N56EngSh FtvSLME+yPCtlmuuOcNLZSrT5e1Zqy4Nf05JBEuxCt03+tMos7Mew8Ap1SN27TKKaVUk KKjvncOb73TIWqVhzfR1DFmV/5DkRvG9j/rS7KkNMj5gaqBRWx9EovdFiuOM533kw5Sk VdQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=Bs0TV7ER; 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 j12-20020a170902c3cc00b00189e9256a07sor622423plj.56.2023.01.23.04.24.05 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Mon, 23 Jan 2023 04:24:05 -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:a00d:b0:9d:efbf:6623 with SMTP id p13-20020a056a20a00d00b0009defbf6623mr28597401pzj.49.1674476645425; Mon, 23 Jan 2023 04:24:05 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a15f:2279:f361:f93b:7971]) by smtp.gmail.com with ESMTPSA id w10-20020a170902e88a00b001960806728asm1291811plg.88.2023.01.23.04.23.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Jan 2023 04:24:04 -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 v11 04/18] drm: exynos: dsi: Switch to devm_drm_of_dsi_get_bridge Date: Mon, 23 Jan 2023 17:53:05 +0530 Message-Id: <20230123122319.261341-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230123122319.261341-1-jagan@amarulasolutions.com> References: <20230123122319.261341-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=Bs0TV7ER; 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 v11: - none Changes for v10: - new patch drivers/gpu/drm/exynos/exynos_drm_dsi.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)