Received: by 10.213.65.68 with SMTP id h4csp786223imn; Tue, 13 Mar 2018 23:11:15 -0700 (PDT) X-Google-Smtp-Source: AG47ELu+BQ1ratGTfu6P971nhyxcaN684MqV2QP3junbaKurb81Tn+rDu0kGZ2uURNtacfsp5YgU X-Received: by 2002:a17:902:650c:: with SMTP id b12-v6mr2985785plk.147.1521007875905; Tue, 13 Mar 2018 23:11:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521007875; cv=none; d=google.com; s=arc-20160816; b=iIQcWlsaLaH+prL3OcGm6JcRUYNn6jvT2vJdQqACm+WtSnjV5jV9rP3J+UUqtOV6zM C7QjcIGUDPbTX8X7ESspb463C0P+y4ZiG312NYoikwQgsZxfTvi5D4UIH3mKwjTUMVMe 6ypyHLekzfTA7UWERrkWt5Hx81z6kHjTXNpZvDEVhLf1cuSGot8RKNMqK3T4Cl/rHgJY aLWjIxbvO9R8oK1NYJ+nWF1tOZVP5SoWadDHd9IBES1KXhddWtVx8D67o29PQ8V15ohv G73UoeJkYRAITEz6Jfhr2tJmxVUJsNv5ocsWzITS7TBf6YWA2lM8BXJUvFhBvtl6MgyT eomA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dmarc-filter :dkim-signature:dkim-signature:arc-authentication-results; bh=o8CaykqaB+oJGUWLAsHBFWAmAUpptHXG+rPmuZ/1tDE=; b=kBWNqwW4yROcXxMl/H41KGW4uJBt5devsHzxqqw0Quw2YxqH5fwjC+pKNhnAouUkif 0/kITQbu+rhSYxbXxgR5JvC5We9oC/aKVVxoWayStPObh03R7Nr3zXo/OmKdBxSlyNPY 3485fwHgFRau2q1DyFOAFrIjtZmVz5wF89GnbOk8lrbK2lL9JZaLFyYIlL5ZmUWpUhuq 6Tb4/WT5iJlEwtxQXGt3q1Yy4hAzi3qL9yQujQJYsygwdW1cr71ACb39ohtitkDxgTYa wEUF7XflLdNQhYdOFmPPK62fCVDXzUtyp+aws3mE+oR/jvfI8E1Dq48FrBIIrUIoZpwq a9lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=gFvrvPs8; dkim=pass header.i=@codeaurora.org header.s=default header.b=GeyvlClb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b8si1357138pgr.612.2018.03.13.23.11.01; Tue, 13 Mar 2018 23:11:15 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=gFvrvPs8; dkim=pass header.i=@codeaurora.org header.s=default header.b=GeyvlClb; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753405AbeCNGJr (ORCPT + 99 others); Wed, 14 Mar 2018 02:09:47 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:33964 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751426AbeCNGJo (ORCPT ); Wed, 14 Mar 2018 02:09:44 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4284D60848; Wed, 14 Mar 2018 06:09:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521007784; bh=KGoOrqKyq+3AOz4DMDyrUGTnlEXVf4KDMnk+452qxmA=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=gFvrvPs8l8mpOZhFHAIBnwkJIxJc1I9Hrl/bk3OesdXqNyaHqXzrKQV6RzY65cedT KDPPqjQUOHSY6LCYY29kLPSVvyQUaTeA+jvJ6umpVG7NRVJBFqH3F3Egww1dmp7YAr TJoyoxjkaXlTd0PA+mzt5FSs3uIZB3k+7YpwPMds= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.0 Received: from [192.168.1.84] (unknown [182.71.117.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: architt@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id BEE0A60B67; Wed, 14 Mar 2018 06:09:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521007782; bh=KGoOrqKyq+3AOz4DMDyrUGTnlEXVf4KDMnk+452qxmA=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=GeyvlClbsKs7OKDtM+Jqz6omyrW4eu7KHVjhnLoV/7eIwSXohWEVaZNDZa9o+ouvG NiSRiMbj0uyl0Fb3bWcaKtt794KP1Qy7ZvNisCVanFAciZtLKulMMYhb4ULCaOjEPP vaEYKB1N980de4QX0Pib0WYQGVV8TJHq0I2Vg59I= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org BEE0A60B67 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=architt@codeaurora.org Subject: Re: [PATCH v5 11/36] drm/bridge: analogix_dp: Wait for HPD signal before configuring link To: Enric Balletbo i Serra , inki.dae@samsung.com, thierry.reding@gmail.com, hjc@rock-chips.com, seanpaul@chromium.org, airlied@linux.ie, tfiga@chromium.org, heiko@sntech.de Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, a.hajda@samsung.com, Laurent.pinchart@ideasonboard.com, ykk@rock-chips.com, kernel@collabora.com, m.szyprowski@samsung.com, linux-samsung-soc@vger.kernel.org, jy0922.shim@samsung.com, rydberg@bitmath.org, krzk@kernel.org, linux-rockchip@lists.infradead.org, kgene@kernel.org, linux-input@vger.kernel.org, orjan.eide@arm.com, wxt@rock-chips.com, jeffy.chen@rock-chips.com, =?UTF-8?Q?St=c3=a9phane_Marchesin?= , linux-arm-kernel@lists.infradead.org, mark.yao@rock-chips.com, wzz@rock-chips.com, hl@rock-chips.com, jingoohan1@gmail.com, sw0312.kim@samsung.com, dianders@chromium.org, kyungmin.park@samsung.com, kuankuan.y@gmail.com, hshi@chromium.org References: <20180309222327.18689-1-enric.balletbo@collabora.com> <20180309222327.18689-12-enric.balletbo@collabora.com> From: Archit Taneja Message-ID: <636d85d6-64bb-5387-912d-1ec09e47f0ef@codeaurora.org> Date: Wed, 14 Mar 2018 11:39:27 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180309222327.18689-12-enric.balletbo@collabora.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Saturday 10 March 2018 03:53 AM, Enric Balletbo i Serra wrote: > From: zain wang > > According to DP spec v1.3 chap 3.5.1.2 Link Training, Link Policy Maker > must first detect that the HPD signal is asserted high by the Downstream > Device before establishing a link with it. Reviewed-by: Archit Taneja Thanks, Archit > > Cc: Stéphane Marchesin > Signed-off-by: zain wang > Signed-off-by: Sean Paul > Signed-off-by: Thierry Escande > Signed-off-by: Enric Balletbo i Serra > Tested-by: Marek Szyprowski > --- > > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > index c81733b8185e..92fb9a072cb6 100644 > --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > @@ -1169,6 +1169,17 @@ static int analogix_dp_set_bridge(struct analogix_dp_device *dp) > if (ret) > goto out_dp_init; > > + /* > + * According to DP spec v1.3 chap 3.5.1.2 Link Training, > + * We should first make sure the HPD signal is asserted high by device > + * when we want to establish a link with it. > + */ > + ret = analogix_dp_detect_hpd(dp); > + if (ret) { > + DRM_ERROR("failed to get hpd single ret = %d\n", ret); > + goto out_dp_init; > + } > + > ret = analogix_dp_commit(dp); > if (ret) > goto out_dp_init; >