From patchwork Mon May 15 09:03:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 9728241 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C8AF6602B4 for ; Tue, 16 May 2017 00:52:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B238628878 for ; Tue, 16 May 2017 00:52:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A66FB289E4; Tue, 16 May 2017 00:52:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 875B828878 for ; Tue, 16 May 2017 00:52:00 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6E9266E2B0; Tue, 16 May 2017 00:51:22 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org X-Greylist: delayed 860 seconds by postgrey-1.35 at gabe; Mon, 15 May 2017 09:18:08 UTC Received: from fllnx209.ext.ti.com (fllnx209.ext.ti.com [198.47.19.16]) by gabe.freedesktop.org (Postfix) with ESMTPS id BA9826E1A5 for ; Mon, 15 May 2017 09:18:08 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id v4F939Bb005205; Mon, 15 May 2017 04:03:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1494838989; bh=6pYoAYUeuPNfyM+LSQ9ZRN/nwe98OBCHDPkrtfQ31Ts=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=szEwc6nk+Oa+95oURQcLGcJFtOJSAZpygbf3I9coWijzJzFPCycwxBvgraP7S0I3A mRZMsDx5x0bYDldZwFB6Sdquxh48u7z7dbEvMRyxuKmElUGz2DDCjVTkjU138COCrR SlZyHay9uuItcLS4gzGjTcY+pRuq0jREnu/QWTuI= Received: from DLEE70.ent.ti.com (dlee70.ent.ti.com [157.170.170.113]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v4F932bv014669; Mon, 15 May 2017 04:03:04 -0500 Received: from dlep33.itg.ti.com (157.170.170.75) by DLEE70.ent.ti.com (157.170.170.113) with Microsoft SMTP Server id 14.3.294.0; Mon, 15 May 2017 04:03:02 -0500 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep33.itg.ti.com (8.14.3/8.13.8) with ESMTP id v4F92wD3029231; Mon, 15 May 2017 04:03:01 -0500 From: Peter Ujfalusi To: , , Subject: [PATCH 1/3] drm/omap: Support for HDMI hot plug detection Date: Mon, 15 May 2017 12:03:10 +0300 Message-ID: <20170515090312.32051-2-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170515090312.32051-1-peter.ujfalusi@ti.com> References: <20170515090312.32051-1-peter.ujfalusi@ti.com> MIME-Version: 1.0 X-Mailman-Approved-At: Tue, 16 May 2017 00:51:18 +0000 Cc: dri-devel@lists.freedesktop.org, jsarha@ti.com, linux-kernel@vger.kernel.org X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 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" X-Virus-Scanned: ClamAV using ClamSMTP The HPD signal can be used for detecting HDMI cable plug and unplug event without the need for polling the status of the line. This will speed up detecting such event because we do not need to wait for the next poll event to notice the state change. Signed-off-by: Peter Ujfalusi --- drivers/gpu/drm/omapdrm/dss/omapdss.h | 17 +++++++++++++++++ drivers/gpu/drm/omapdrm/omap_connector.c | 32 +++++++++++++++++++++++++++++++- drivers/gpu/drm/omapdrm/omap_drv.c | 29 +++++++++++++++++++++++++++++ 3 files changed, 77 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/omapdrm/dss/omapdss.h b/drivers/gpu/drm/omapdrm/dss/omapdss.h index b19dae1fd6c5..1f01669eb610 100644 --- a/drivers/gpu/drm/omapdrm/dss/omapdss.h +++ b/drivers/gpu/drm/omapdrm/dss/omapdss.h @@ -25,6 +25,7 @@ #include