From patchwork Fri Jun 2 12:26:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Ujfalusi X-Patchwork-Id: 9764351 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 F15A3602B6 for ; Sat, 3 Jun 2017 14:56:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E19CA283E7 for ; Sat, 3 Jun 2017 14:56:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D67E528579; Sat, 3 Jun 2017 14:56:52 +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 2CF1F283E7 for ; Sat, 3 Jun 2017 14:56:52 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 9147E6E5AF; Sat, 3 Jun 2017 14:55:22 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from lelnx193.ext.ti.com (lelnx193.ext.ti.com [198.47.27.77]) by gabe.freedesktop.org (Postfix) with ESMTPS id D117B89780 for ; Fri, 2 Jun 2017 12:26:24 +0000 (UTC) Received: from dlelxv90.itg.ti.com ([172.17.2.17]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id v52CQMvk028715; Fri, 2 Jun 2017 07:26:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1496406382; bh=88fQi08LuAeGZ0G9iSAqcgxVXgFEx/YDpZdi0iUAUgc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=JgU709ijhK0BR/r7mqYAm6K7joe8i5k72mo5yg61OQ938sN4OnDpDa1aEV3a6Fd9Q 1v4619b5coqi4DvYMJgPHMj1xzNWrnDPPgoXSIZKh97lAlJnoeExOoojrxe+Dl1BdN +DNN8odzx/HgWfXg6MdCVo+sps1cHIE446LQkPmc= Received: from DFLE73.ent.ti.com (dfle73.ent.ti.com [128.247.5.110]) by dlelxv90.itg.ti.com (8.14.3/8.13.8) with ESMTP id v52CQMoC021331; Fri, 2 Jun 2017 07:26:22 -0500 Received: from dlep32.itg.ti.com (157.170.170.100) by DFLE73.ent.ti.com (128.247.5.110) with Microsoft SMTP Server id 14.3.294.0; Fri, 2 Jun 2017 07:26:21 -0500 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by dlep32.itg.ti.com (8.14.3/8.13.8) with ESMTP id v52CQHE2026825; Fri, 2 Jun 2017 07:26:20 -0500 From: Peter Ujfalusi To: , , Subject: [PATCH v2 1/3] drm/omap: Support for HDMI hot plug detection Date: Fri, 2 Jun 2017 15:26:35 +0300 Message-ID: <20170602122637.5091-2-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.13.0 In-Reply-To: <20170602122637.5091-1-peter.ujfalusi@ti.com> References: <20170602122637.5091-1-peter.ujfalusi@ti.com> MIME-Version: 1.0 X-Mailman-Approved-At: Sat, 03 Jun 2017 14:55:14 +0000 Cc: dri-devel@lists.freedesktop.org, jsarha@ti.com 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 | 37 +++++++++++++++++++++++++++++++- drivers/gpu/drm/omapdrm/omap_drv.c | 29 +++++++++++++++++++++++++ 3 files changed, 82 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