Message ID | 20211212181416.3312656-2-jagan@amarulasolutions.com |
---|---|
State | New |
Headers | show
Return-Path: <linux-amarula+bncBD7MFH7A7EEBBE7Y3CGQMGQE3THD4MA@amarulasolutions.com> X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id 4D4E83F071 for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 12 Dec 2021 19:14:46 +0100 (CET) Received: by mail-pg1-f199.google.com with SMTP id t1-20020a6564c1000000b002e7f31cf59fsf7722790pgv.14 for <linux-amarula@patchwork.amarulasolutions.com>; Sun, 12 Dec 2021 10:14:46 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1639332883; cv=pass; d=google.com; s=arc-20160816; b=SNErfgrANEs1FZLCQHCs+TpjHF/qXl6C6DjNBrCvjnc54OU7cz2ZxEwebvjPh5vJfg ag2wYh3qGxqudUupeQmSvzJVJivcNnZaoBWJwMBBk8x2r9c3CaoDW3HelmaSi5DvRJoo 2CMfo19NQz402Yt4hSKMiH8JwQteOdRBNRrZLonSuMLjkJQcQmEDoiHQ1Vmw+7f1Z3ru e7rDngNJhAk5Xuox8x/KzG/ojqHJhLXFKqT8xZzS7q/zEw6dzYYyYMFFJuBNAt3oKXxJ n1pTNVlDMv5KAIP+UExnl5vfzmgN+5CVmo5KSqlLT1w3DrwBoiVxcy5icKvP/Wcq9qop TiKA== 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=wBERMExaS7VPCDHAgqKmQDDKUalFSMsVWRyrPmznXeo=; b=ufFHkX7BUUT3XOJFVI4SN3QtKKbvE1zQ7DyYBMBVvXdJq9Tw782/U+v5J5dy6zpuDc /Q3qVPw4o78Hl13eoMm/pFF0/1iId8qyf3qEF2RDCkYDTvz/79J3ldkMGbRmsn9RFJCO GdijG89k9ua7PklAJSUsWFxMke4UWb3xg9TQDB9JyH6/2Pb4D3n85Lk7CBnPZx8Jz9aq vCzExkjyTQnUee6sbXK1St418NcPpjEka4vIY0gxWUNQiD49oFTnGjavLknrOliSQqQu WhWgKk7Xy0b7sTNIBbQyaYGsNL5hlzA/s15vKA+fOQNeioaJemZuqo+jWqOCFQUf8Cl3 99Ig== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=d91d7+MZ; 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=wBERMExaS7VPCDHAgqKmQDDKUalFSMsVWRyrPmznXeo=; b=MMOnMi8vb/OlZ0nwtKa51ovz2Rs1Idbxpza4J+n1379B9WZkp4STpTXxjX+LExlcG1 7S/hdYoG/Fdn59slMZtRrIXfPu4B1EvDUryqdRVjhxRYMmkXonIPfP6aATbMfF9KKOVN HcHMv3+xEa5CQ88uCdS0qrppFcOUZGxEJ1Ftk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=wBERMExaS7VPCDHAgqKmQDDKUalFSMsVWRyrPmznXeo=; b=Pxj90ixiHafRGxa9+ZIYA9ujNSL/IPToWGk1QHwQ0vikl/lRjEpTFlvr7slX/g764Z x9E3fq51yW3xHWjRAZaurCOMMjKSgKiOt3zM3wyktlLiQpJ0phqWmzNBOFQSsgDoXZk7 C/+x4eMNWlPjJDMIAiA+4cHkbt7tQkcb0a9KM3cs/yUMeGnFjYRLwvGVmnqLKJF4jE3O Mibj6VGsIvPFyK0hh83EVQX2vDBK6WwlXjvABDHWEPo+40qf/I0CqIy1bY3lXuOSJMlK 18efMwtKepp6delQMaHAobv99EzW4hH6TeY0T3aGdfy0WDH81OmI5/UKAIqQAqP5MArJ pN4w== X-Gm-Message-State: AOAM532hXPa6DxgjRPgQiQfuWV+84KntsaegCideWoEUjGcCuC0CUtKu /uC4LjJfa4s5j+yzqMLoxs++MUv6 X-Google-Smtp-Source: ABdhPJxMpUZwfGJ0jBwC+IdIxyk3iBKBdjcHOSLO9ateaouic1jya4G2RAIBpXTfmlxZW12CVn5jvw== X-Received: by 2002:a63:5622:: with SMTP id k34mr13587277pgb.457.1639332883481; Sun, 12 Dec 2021 10:14:43 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:903:1c2:: with SMTP id e2ls7082116plh.9.gmail; Sun, 12 Dec 2021 10:14:43 -0800 (PST) X-Received: by 2002:a17:902:6506:b0:143:84c4:6555 with SMTP id b6-20020a170902650600b0014384c46555mr89980727plk.8.1639332882800; Sun, 12 Dec 2021 10:14:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639332882; cv=none; d=google.com; s=arc-20160816; b=m7rc1iWT/IHE44KIR9JDitugfQpQ2j1+gWc1vukr/0QI1KkBvTcZ6CMwTMXIiZH6Ji MJQMwuCTPU2n9+JfXoRft6ThkPaxyWHmxDaQ8e0lJfLLzd/8NG5FGJWcH+iJRgGcBXds qybu3inAItXdGKubM3RtG18l56SicDzeIduRJuzZRUEauNlk6+tb2wPw3IUncvAkl0CO 8q1ZSg79cAlqAlYZAJxKoOQy4YaPUZvaNz9T5HoUWBWYB3Km2ygZhc4raI4LBteOIXzy fmSS40s02aNEi/0GrfgyohcwSyBWZsf3Dl2XgEL/kDER5DzIj29R3FuElu3B4QZF6eIc jPww== 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=Rs7mrpbyprSOj5xGG1AZsz4IjzgBk2UIZRJDxcV2DW8=; b=jpV5RW/vtyNTFX5DufCFZMMwr075vrareOwLKQ/AoS0BhjkJK2qurphPdUt4GlgMId 09L9VMFxoVMj7T1ceaYUtn931qnbhPfAmoFqPR/44OWFASYc+5yDMnsE8Fxrr35jM8df BdnlhYgq9F6vJUe6uI/KmjO3E6jTQp9LdLrkBWhlqXhQ7STck+PhhFk37PLn2iLmtia1 cQcB5/50Oyf1GSeLTGXlKTA0OFIuvA1LjqthucQQ+WNJo941oHOcUOO6EY4C6EA/oPNr oZs6GpQSoE6NtVhodELyX0AS4KAi9aDr8b4ODSuaUI//XBEL+mdZCbLc/rUruC8xyC08 mpYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=d91d7+MZ; 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 b6sor4170753pgt.3.2021.12.12.10.14.42 for <linux-amarula@amarulasolutions.com> (Google Transport Security); Sun, 12 Dec 2021 10:14:42 -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:a63:6b81:: with SMTP id g123mr49803210pgc.140.1639332882514; Sun, 12 Dec 2021 10:14:42 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a0a9:264b:de7a:bc69:cfbd]) by smtp.gmail.com with ESMTPSA id bt2sm4567904pjb.33.2021.12.12.10.14.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Dec 2021 10:14:42 -0800 (PST) From: Jagan Teki <jagan@amarulasolutions.com> To: Marek Szyprowski <m.szyprowski@samsung.com>, Andrzej Hajda <andrzej.hajda@intel.com>, Neil Armstrong <narmstrong@baylibre.com>, Robert Foss <robert.foss@linaro.org>, Laurent Pinchart <Laurent.pinchart@ideasonboard.com>, Sam Ravnborg <sam@ravnborg.org>, Michael Nazzareno Trimarchi <michael@amarulasolutions.com>, Inki Dae <inki.dae@samsung.com> Cc: dri-devel@lists.freedesktop.org, linux-amarula@amarulasolutions.com, Jagan Teki <jagan@amarulasolutions.com> Subject: [PATCH v3 1/7] drm: exynos: dsi: Check panel for panel helpers Date: Sun, 12 Dec 2021 23:44:10 +0530 Message-Id: <20211212181416.3312656-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211212181416.3312656-1-jagan@amarulasolutions.com> References: <20211212181416.3312656-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=d91d7+MZ; 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/exynos/exynos_drm_dsi.c b/drivers/gpu/drm/exynos/exynos_drm_dsi.c index 8d137857818c..0bb44e476633 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_dsi.c +++ b/drivers/gpu/drm/exynos/exynos_drm_dsi.c @@ -1439,7 +1439,8 @@ static void exynos_dsi_disable(struct drm_encoder *encoder) dsi->state &= ~DSIM_STATE_VIDOUT_AVAILABLE; - drm_panel_disable(dsi->panel); + if (dsi->panel) + drm_panel_disable(dsi->panel); list_for_each_entry_reverse(iter, &dsi->bridge_chain, chain_node) { if (iter->funcs->disable) @@ -1447,7 +1448,8 @@ static void exynos_dsi_disable(struct drm_encoder *encoder) } exynos_dsi_set_display_enable(dsi, false); - drm_panel_unprepare(dsi->panel); + if (dsi->panel) + drm_panel_unprepare(dsi->panel); list_for_each_entry(iter, &dsi->bridge_chain, chain_node) { if (iter->funcs->post_disable)
Trigger the panel operation helpers only if host found the panel. Add check. Signed-off-by: Jagan Teki <jagan@amarulasolutions.com> --- Changes for v3: - none Changes for v2: - new patch drivers/gpu/drm/exynos/exynos_drm_dsi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)