From patchwork Sun May 9 23:08:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 432882 Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp2351039jao; Sun, 9 May 2021 16:08:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4rw58u4G7bWZGg3uZQBemykJPi9o3ka7rCdtj+qmZodGRL38yI6nE7/nIaaVdGbimxHJW X-Received: by 2002:a17:90a:c8:: with SMTP id v8mr37207407pjd.18.1620601698217; Sun, 09 May 2021 16:08:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620601698; cv=none; d=google.com; s=arc-20160816; b=yaE3o/OV2XGrZpuY5gwIMfhpgmelYqSCo/ihgyzQqsrPe8Sg/hF9IwadsnADBlPP4X mqvNJ9HB5PWu99xg9Jtr5w62/lgJeq8BheZfwJfPJKl2ibEKTq3An4ongCkMKp4hl64X LDhVThhLz2bd76HwRyx3aSIkVQNkrSr8VVEoFDQIa6nyOEm+B9lvUGKoFgELxzcPoOQT je+dbymwd6qokWKtDfwmF5yND8nIgxI3e/ISyeM664MsRoaaZgRn+CGwNBoD/hNdnjIC xINugMv3q/pACOyfmBaj1xRp/kcVQrU5qjjHnsioHlcJ+lbIKeFGXgXNR6suuqNBvPMm 26eA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :delivered-to; bh=zHzOOhfOgoUHL2x5o1obRb2s5HZRhRoK1MqHS26Nfm0=; b=KrJ6CIYbSMDQ427Zs+OQKCYLVi0308HqQRtIe3Ax9JGJ2O2shP3WbWw1iqy0Ni+IJ3 8eD4DHGYQ/H6wFjSUCGA6PJg1BefEE+xteKE2OZoLma+SBzlGJt41mAgkVXEpUYA9p7+ wNmD0V09RPfYATzlx49zBQPx7pdFaWS5CmesQGNW/wVJqYfaMXByQMUAUtrEQOuldsoL eA8viyMfJ88fkb4Qs6ZudU1uW+g2w4TPC/StfB9gnDTck1JLsJpyfTRE+54qh0BMsUu4 +zunrvBX7skuXPpGkLWd0I4TOaJ0PXCnViqQTACeZjiXK+37080AViogjgrm8ZOzHmDR +WJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=iM3uoTMi; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id f9si150310plg.285.2021.05.09.16.08.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 May 2021 16:08:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=iM3uoTMi; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6FF9289AC3; Sun, 9 May 2021 23:08:14 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6467E899B0 for ; Sun, 9 May 2021 23:08:13 +0000 (UTC) Received: by mail-lf1-x12d.google.com with SMTP id h4so20671866lfv.0 for ; Sun, 09 May 2021 16:08:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zHzOOhfOgoUHL2x5o1obRb2s5HZRhRoK1MqHS26Nfm0=; b=iM3uoTMikFkfV8KA30Nyc/TOp+I2fqtcPREwL/D/mqTjw3BsYlEmdoSUjcuo+gknxH n6edv+vJpkOQr/CzfogsOeFTgyA47SLI1zpNETGLMt+Sm0zqQNxNsFrIsNBEMLSJL9qB TNcadOh2zA5YusmrrcHQa8uGV66ZlYoqc5L5K2xDbbbbeXmVow7HYyfWaqt127VvLioN IzBXel8rbVrltdwLoWRbYIM2GsPoT3esA4CpBBKVI6WUyxIOrT/Vl9KF0J6Zn/DAF3bs EM5VVUNqKPCSHY5dUJh1a6aMH7NJRI0g/RT8KafUHarYmQFhSSpm4qnGGEhWWlHRvC5M WMnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zHzOOhfOgoUHL2x5o1obRb2s5HZRhRoK1MqHS26Nfm0=; b=Xf81irSafTaJ86osR//awiXWkiaWKJGUYDOvCjEkl/mplAEa0TaJSDDaokSrWI0s3w nh+I2krWkR4G99Uht2FFMm8vss0d132hWwEPt96hBX2B2+fcOURz9kIDhhjfkeO5uq7g 1R/OCaq+C7k/F1YMIqQ3a3LacqSDG7eNgdbE9zCJFBcaU8dYrv2Z1ynt3d03Pib+POt1 h1WaMMEBZj4Q4o8hQI31RgZE8u9bpUOzik9Vq/HrOm0sKNC7yf9XFAQUqaaMlYHQlFlB pPBEqhGMotxV3JXPvmKd67Dh7vROamDXsfKha7bSh6lYG/+Ri+qeTuDz37T5ySx79P9M KnSQ== X-Gm-Message-State: AOAM5332j4kQWhlbGpgYnNtSttO0Dz34EBnYl7QX6rd9Vv2lmrm9U5P8 Fx+Yo0EvOBVTy3TXcGHwSl4X/w== X-Received: by 2002:a05:6512:130e:: with SMTP id x14mr14636390lfu.321.1620601691554; Sun, 09 May 2021 16:08:11 -0700 (PDT) Received: from localhost.localdomain (c-fdcc225c.014-348-6c756e10.bbcust.telenor.se. [92.34.204.253]) by smtp.gmail.com with ESMTPSA id w21sm2057773lfl.230.2021.05.09.16.08.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 May 2021 16:08:11 -0700 (PDT) From: Linus Walleij To: Thierry Reding , Sam Ravnborg , dri-devel@lists.freedesktop.org Subject: [PATCH] RFC: drm/panel: s6e63m0: Register ESD IRQ handler Date: Mon, 10 May 2021 01:08:08 +0200 Message-Id: <20210509230808.353422-1-linus.walleij@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The S6E63M0 can emit an "ESD IRQ" which spells out electrostatic discharge interrupt request. This exist on other panels as well. The interrupt will according to some sources occur as a result of the display being bent or cracked and generally failing to display the desired content. I have no idea about how we should handle this IRQ, but the codebase for the Samsung GT-S7710 handles it by restarting the display controller pipeline, and possibly we should also bring the panel, bridge, and display controller down/up in response. One idea I have is to broadcast a notifier so that the core can react to this in process context in response to this interrupt and restart the display pipeline. I.e. raw_notifier_call_chain(). Signed-off-by: Linus Walleij --- drivers/gpu/drm/panel/panel-samsung-s6e63m0.c | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) -- 2.30.2 diff --git a/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c b/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c index 603c5dfe8768..5e4d2e8aa7a7 100644 --- a/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c +++ b/drivers/gpu/drm/panel/panel-samsung-s6e63m0.c @@ -17,6 +17,8 @@ #include #include #include +#include +#include #include