From patchwork Fri Mar 10 04:32:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sean Paul X-Patchwork-Id: 9614761 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 2351D60415 for ; Fri, 10 Mar 2017 04:47:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13FA5286C0 for ; Fri, 10 Mar 2017 04:47:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 06A1A286EF; Fri, 10 Mar 2017 04:47: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 9B4CA286C0 for ; Fri, 10 Mar 2017 04:47:51 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7D4436ED9A; Fri, 10 Mar 2017 04:47:36 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-qk0-x231.google.com (mail-qk0-x231.google.com [IPv6:2607:f8b0:400d:c09::231]) by gabe.freedesktop.org (Postfix) with ESMTPS id 839376ED8E for ; Fri, 10 Mar 2017 04:46:49 +0000 (UTC) Received: by mail-qk0-x231.google.com with SMTP id p64so152458917qke.1 for ; Thu, 09 Mar 2017 20:46:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Ofdv/zFJjB5ylppCFaJi4aHs4T13xAF5Kln1Q37n22o=; b=YSMmiqF5IjQxONV5pAy8sFxDwcj4k4qhzcKi/aIVAphLSKFjIz4hunLER3awKkZO+U VPn1jPxpycfwvu5tFm3hSNEk2tes5tFlJgMEE60D8rz3+Pr8bwfEmG4KfeU+ee0kQmoQ eLDkSYpbi++F8RStFXoTRCEEpru4VAG04sNFM= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Ofdv/zFJjB5ylppCFaJi4aHs4T13xAF5Kln1Q37n22o=; b=PusYvfO89VRnXRcBEX1pxIbWb95jrBtjzUSySeOzvMqJPwUP4Qs+ACIyyoCqewOAWS 58vPqhn/Uwp0gj8Wc8oVY3zuIZiflhZEC9mgr6SYTSs2OWxk0EgID7uxa/UmI7DE5tIj /fXzo8zdMho/91Jl/BM2d/WePlItreffutq6TX+YkZ74AmvakUNmTuaWf2nlT+BoGyZE 3Z4PbX7dxfsSJMMg6Td9QGjopZAqDeMOk6oECH6zh8fIWb1o/BkWHJTXK3NGma2oJA0W RpfTIeB2+mOfVNP0X5Xyfs311D5/yw1X52WqCEU8g3e3wGGPv7Tpa5pD24CTpjYOrpNo UlGA== X-Gm-Message-State: AMke39n2m9LPMSOzSJIqIT5sUC2P10GYM+/KhkMkIN+dN4mAApmvK11n1C6SeTlVtCebYB4k X-Received: by 10.55.210.70 with SMTP id f67mr16913641qkj.304.1489120734349; Thu, 09 Mar 2017 20:38:54 -0800 (PST) Received: from boxwood.roam.corp.google.com (cpe-75-189-128-87.nc.res.rr.com. [75.189.128.87]) by smtp.gmail.com with ESMTPSA id n19sm5697731qtn.35.2017.03.09.20.38.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 09 Mar 2017 20:38:53 -0800 (PST) From: Sean Paul To: linux-rockchip@lists.infradead.org, dri-devel@lists.freedesktop.org Subject: [PATCH 22/41] drm/bridge: analogix_dp: Extend hpd check time to 100ms Date: Thu, 9 Mar 2017 23:32:37 -0500 Message-Id: <20170310043305.17216-23-seanpaul@chromium.org> X-Mailer: git-send-email 2.12.0.246.ga2ecc84866-goog In-Reply-To: <20170310043305.17216-1-seanpaul@chromium.org> References: <20170310043305.17216-1-seanpaul@chromium.org> MIME-Version: 1.0 Cc: =?UTF-8?q?=E5=BE=81=E5=A2=9E=20=E7=8E=8B?= , Lin Huang , Tomeu Vizoso , Douglas Anderson , Yakir Yang , =?UTF-8?q?St=C3=A9phane=20Marchesin?= 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 From: Lin Huang We only allocated 1ms to detect the hpd signal before, it too short to detect a short pulse (hpd signal), extend it to 100ms. Cc: Stéphane Marchesin Cc: 征增 王 Signed-off-by: Lin Huang Signed-off-by: Sean Paul Reviewed-by: Andrzej Hajda --- drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c index 3b2d53935ae9..043641aa0a6f 100644 --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c @@ -76,7 +76,7 @@ static int analogix_dp_detect_hpd(struct analogix_dp_device *dp) return 0; timeout_loop++; - usleep_range(10, 11); + usleep_range(1000, 1100); } /*