From patchwork Fri Dec 10 19:19:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 1811 Return-Path: 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 61E053F075 for ; Fri, 10 Dec 2021 20:20:05 +0100 (CET) Received: by mail-pj1-f70.google.com with SMTP id b8-20020a17090a10c800b001a61dff6c9dsf6203495pje.5 for ; Fri, 10 Dec 2021 11:20:05 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1639164004; cv=pass; d=google.com; s=arc-20160816; b=EbLtR+fZkiXDbkZEjE8PEzil0ZnoPElIbxsOCPK5Mme2w4Acla4DZk7U3k4kQj5uYz Vd9QVKMVLBrfLnJ0NOVWqLYueuULMxpoa9gy8G/QVdQPfbmwRLycIYNSVoIAzHDmSx/j rvksLUdjhjlc3i5PMuwt1xTK2Vh/PQizmF+QIV5coAeBJO8T9XF2b0fsPPRL4IwcwDRy NzcGuSLbInl98bOKCpx5sgs/uH4gERLHj8bZd948Gr6pcv8xhEqeyQv4ED/NNyjmLRex 1l3uhv4jMDQ/W6eTJrRvnE7dLrUledpZtZL8qCtmzgWEZnSySkaNhFxo8FdNj0d5pHSX N64g== 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=QR6wBdnDMja1A41a+7qG2w4QOwXtGS5rqGj4LTIoU7c=; b=Dg1pQCvs8BqEtm5zrZyfcw+hBVCeNzqkgDHR1IDBx3kB6xceoccABrHXAVrOGV+Jff Om/ORCSqoJmzgl9XmLUo622jhjdfjN0yiXkwdkB5usGhmXy957DdOy6GMwOBBVAXUlu3 wysicBAgLDveVhed9dAy1vu6nv1m+DKNhWm0uoKaRlH/ip+9tNeKxmqb3x2cFp0RRe+T MOax48LFYPF5vJBwWjf5PofswuyJADIAeLOIxtueN3LwGpDFat99GYdGsrWWUsBNvfdM qztL9UThQfqzcA79wRuZ68egikLZdfAUhB6CXGbqRicOhVm6/jhnMt1pC8DmCgFQWujO dchw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cqSBRtko; 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=QR6wBdnDMja1A41a+7qG2w4QOwXtGS5rqGj4LTIoU7c=; b=W73yvCXgDffsIKlBW09deCXjHIl+NChGGlsSIb0FN3BIPCroEGPOFH2wEGG8fniOW9 nXMXCubcT1hiVR/mHWEttM1fg3m8rQgbOlClqiGE2RKHoqOgC0bNG7Exx0Vz2X1lZPvu IIQvVNF2M2lLXMWyZt1N0H79VY7rSioLcG2ok= 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=QR6wBdnDMja1A41a+7qG2w4QOwXtGS5rqGj4LTIoU7c=; b=Wy0w/mF1eeZpa9rDGG24AnCMlmGwnEQT48iSt+usOgiUtxkh/BeCFmcOH9hZLHe0Di 8hH/s6Kdw/jSrt72jMqK2wNg6z0Ip9Wz9e3gBIym4CEx59/Tmhb1nHl8mJgpSyZf3XMR 8ERpbGG9wb5nsJIq/DUNth/1DETZpmGy79oM8jlBapwNZBqxZ5zTx0ZW3xYMAb/gjzTl 0ZrPaRQsY9VK4fNs6cbReEpny/rNVzI2NeGWxLfBf2pi66C/HHVKJlYcQPnKIajboc22 0t7Bbk0PaB6/gX5RIXw4J/V3zz0Dr9tjnpV2KJ7yqrQfuSi4k7anx0UlUfrksRsd5C1T nUtg== X-Gm-Message-State: AOAM533TY5QYDziEeaZdDdP3GsSZoGZVGrmfc3UwC8zKeKR2OsUguuha KTgbBfmMFLGDvhSr6H4fZrRmthr6 X-Google-Smtp-Source: ABdhPJwPTAuMsa/9YcYFAnwU9YpfnR1vuAQgFD9Ax0mgsK468wKgmNjpKOMIBDmUE4gWv5sbJem0/w== X-Received: by 2002:a17:90a:5e06:: with SMTP id w6mr2035927pjf.228.1639164003833; Fri, 10 Dec 2021 11:20:03 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a17:902:e5d0:: with SMTP id u16ls5303999plf.0.gmail; Fri, 10 Dec 2021 11:20:03 -0800 (PST) X-Received: by 2002:a17:90b:1b52:: with SMTP id nv18mr26536607pjb.43.1639164003156; Fri, 10 Dec 2021 11:20:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1639164003; cv=none; d=google.com; s=arc-20160816; b=xZSMtZbF8wpfhrpCmVH9mpeVOGzCQlcm+9cIbkP8u89lgM12PDa1gcN34AbWYd7GCF P/QR2SaNAi7WJF3bgzBnvJ0t56I8lbIpCUkwzgIFwAA+NcaLSPdMj2eGLPj0Rcpxj/7F ou5TLoudn+hFGzMmRw/Qe9Naa0c9jMURM8BokGRdjJ2n7DlvOBQEDHlLhqHVBvmkoNn6 94Ci3oGGCcLUS8c9emobHXOjP4uy9ndGzM4S5I4Fuo4rhpyUpS1j/FzXYdU3MIcIluDT GAYZfKYOZPNDHu1o6+0eyMVku+jUh+xVioLT4bRfytwnEl78PduDAnOjWKGCiDxrPAuO lIjQ== 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=wZ823IYdWVSXlqlfCjZXc9dDMONl8prYaLH+tdv9C84=; b=c7Xq/RZIfKjPwslntYH2PEL/PI1K4KRz3taX25uROV+O0svGUVBbUDlCx0rG1wd5I1 Z+LR6Mk/GpuVPsLGuVKHZ/W2NhYuId2T8tG3D4vlmz50Eb1soIn2S46T7vWj/PrkCdYT PDBJbcQGSHdRvHNkcK0/NIRcRgqY/JsRAXFbXdVBWu/yESL3TlTnpkuvAGiy2Jrvz+aW gLlAyA7WfvtgzJUkPLQXVdjy7hAwSMkjye/oAtSZvw5NkhTv5i0FnarNsQonV6hAe2c+ Fji+gvJs5CGWEM9W+ChJKit7H+AitPNJ+Yuu1tTm+7XxFKgAIwapa3XJPwpG+m+LiTXT xWFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=cqSBRtko; 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 ob11sor3206583pjb.37.2021.12.10.11.20.03 for (Google Transport Security); Fri, 10 Dec 2021 11:20:03 -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:a17:90b:1947:: with SMTP id nk7mr26414009pjb.227.1639164002862; Fri, 10 Dec 2021 11:20:02 -0800 (PST) Received: from localhost.localdomain ([2405:201:c00a:a0a9:28d6:2bae:633e:b110]) by smtp.gmail.com with ESMTPSA id o62sm3493022pfb.211.2021.12.10.11.19.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 Dec 2021 11:20:02 -0800 (PST) From: Jagan Teki To: Marek Szyprowski , Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Sam Ravnborg , Michael Nazzareno Trimarchi , Inki Dae Cc: dri-devel@lists.freedesktop.org, linux-amarula@amarulasolutions.com, Jagan Teki Subject: [PATCH v2 1/4] drm: exynos: dsi: Check panel for panel helpers Date: Sat, 11 Dec 2021 00:49:19 +0530 Message-Id: <20211210191922.2367979-2-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211210191922.2367979-1-jagan@amarulasolutions.com> References: <20211210191922.2367979-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=cqSBRtko; 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: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Trigger the panel operation helpers only if host found the panel. Add check. Signed-off-by: Jagan Teki --- Changes for v2: - new patch drivers/gpu/drm/exynos/exynos_drm_dsi.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)