Received: by 10.213.65.68 with SMTP id h4csp789326imn; Tue, 13 Mar 2018 23:19:10 -0700 (PDT) X-Google-Smtp-Source: AG47ELtVV9f5LtnbgDOY0hNSMlmNcAZKe6FUmYuPeYiwp4Nl93TDbJldFauYANqng1E+Xl/TMshF X-Received: by 10.98.215.2 with SMTP id b2mr3127546pfh.87.1521008350148; Tue, 13 Mar 2018 23:19:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521008350; cv=none; d=google.com; s=arc-20160816; b=EGenkbiHC1yqYiLeE5w1V9IEr+jYEFywKk3Qzn1j1JTzNaZlbF6mbMXSYRCOOjb7mE W/rajJi7sIxD9hbICIrRDwjpb1d2VvjKAPCZrZrtLJstDNx0iZv4n5OWTKAsmkvcq2qT B8mY+GeNvfxXVWW7OUhB2airO6gPoL/bUgSh1tjlRTxZjHjUIxUpAWAaalZNzlQc6wtS vzZ7tCj8Xg6ws15upNOedSfVWzEe4HuJa4i4eJCXO2WG93BTqQTgEA/ZE5VN4Ume5Fnb Mm02IDH6QrY5QrzXYpTy29c6NMRrMz/ZMLut5UqrYGwLoR/QR5A15r+REKfJPRfMCD81 ym0Q== 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=JerayNlWqUTyi0DKDPguMgvOZEPWq+ceegl0FjKL/s4=; b=0DmK6BH9L1g5BGuLykv3PymPDzJrH5q39Ns1TCyO0YE+jp/CUAWq6JQ6KvyRsiO3Lc PJ0Bs4lQICLhybLLqfnMaqa/z/zJvlKllzg1xWHCTfXwXyMWMPJh6PJPeKY1LJjlhBDO 48R4Mwyu5OSIRlqZe9TU2zUPZA+CM9SbnlgKiBqMOn9Xqkn8auzSUoRrDZ5xelT1QNi1 qblnxNwQdXGCahGmP/Q4GFwOmT3KgEIA9hXSgmIqotVQVV61pxLcIJR9Zomn1NuLb/ck lyL/5r5UCETuPVsMGIySeZm+DC6OpVWlI5j1IabjuOnHPOM0Qh/Uq/8IETonUMuLr2ai fFQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=T+KNsfzV; dkim=pass header.i=@codeaurora.org header.s=default header.b=JHymyNBL; 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 l63-v6si1447805plb.7.2018.03.13.23.18.55; Tue, 13 Mar 2018 23:19:10 -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=T+KNsfzV; dkim=pass header.i=@codeaurora.org header.s=default header.b=JHymyNBL; 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 S1753409AbeCNGRe (ORCPT + 99 others); Wed, 14 Mar 2018 02:17:34 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:42050 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753270AbeCNGRc (ORCPT ); Wed, 14 Mar 2018 02:17:32 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 5538F60854; Wed, 14 Mar 2018 06:17:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521008252; bh=1FSDc7fTaQGLtQUI8h1yH8g2jmQsfMZu8TwC9KCl8uQ=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=T+KNsfzVL4GqLBVnPB1s2v5+lm5MCX/DVDEEK+jipzplMUxozi0tSbc1juJ+gJN+T ySrFdRp64YiMRsBJxS7VJ3ho8XRMxUtDvkbkQTKd4yWi5UVQTx69MGMzrkm7X6ZEi0 KEeGJjtOSklljOm6EwMGNDevkC7Yk6HO29/MaR/U= 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 59D7E60314; Wed, 14 Mar 2018 06:17:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1521008250; bh=1FSDc7fTaQGLtQUI8h1yH8g2jmQsfMZu8TwC9KCl8uQ=; h=Subject:To:Cc:References:From:Date:In-Reply-To:From; b=JHymyNBL3N3ellSYaaWNJI4EhjFSKhgcgDf9fAtkhayHN3PniVQEeuQpNG5MVHleg uD6g+dbXrmMRzj2cljZO67UfmIPW3ZJ9f+VNl1gTetPAeGQAsEttwUhKdhOmx3X8EV Ye788vTzOUHOcpzfV67sEOyx7XhaAJyJq/M0a5JE= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 59D7E60314 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 15/36] drm/bridge: analogix_dp: Fix incorrect usage of enhanced mode 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, dianders@chromium.org, a.hajda@samsung.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, 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, linux-kernel@vger.kernel.org, kyungmin.park@samsung.com, Laurent.pinchart@ideasonboard.com, kuankuan.y@gmail.com, hshi@chromium.org References: <20180309222327.18689-1-enric.balletbo@collabora.com> <20180309222327.18689-16-enric.balletbo@collabora.com> From: Archit Taneja Message-ID: <4e001e69-576d-c284-fcfc-aad1bc60e28e@codeaurora.org> Date: Wed, 14 Mar 2018 11:47:16 +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-16-enric.balletbo@collabora.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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 > > Enhanced mode is required by the eDP 1.2 specification, and not doing it > early could result in a period of time where we have a link transmitting > idle packets without it. Since there is no reason to disable it, we just > enable it at the beginning of link training and then keep it on all the > time. Reviewed-by: Archit Taneja Thanks, Archit > > Cc: Tomasz Figa > Signed-off-by: zain wang > Signed-off-by: Sean Paul > Signed-off-by: Thierry Escande > Reviewed-by: Andrzej Hajda > Signed-off-by: Enric Balletbo i Serra > Tested-by: Marek Szyprowski > --- > > drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > index 6cbde8473f58..1eed35f9eb8d 100644 > --- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > +++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c > @@ -281,6 +281,8 @@ static int analogix_dp_link_start(struct analogix_dp_device *dp) > retval = drm_dp_dpcd_write(&dp->aux, DP_LINK_BW_SET, buf, 2); > if (retval < 0) > return retval; > + /* set enhanced mode if available */ > + analogix_dp_set_enhanced_mode(dp); > > /* Set TX pre-emphasis to minimum */ > for (lane = 0; lane < lane_count; lane++) > @@ -593,8 +595,6 @@ static int analogix_dp_process_equalizer_training(struct analogix_dp_device *dp) > dev_dbg(dp->dev, "fast link training %s\n", > dp->fast_train_enable ? "supported" : "unsupported"); > > - /* set enhanced mode if available */ > - analogix_dp_set_enhanced_mode(dp); > dp->link_train.lt_state = FINISHED; > > return 0; > @@ -940,8 +940,6 @@ static int analogix_dp_commit(struct analogix_dp_device *dp) > } > > analogix_dp_enable_scramble(dp, 1); > - analogix_dp_enable_rx_to_enhanced_mode(dp, 1); > - analogix_dp_enable_enhanced_mode(dp, 1); > > analogix_dp_init_video(dp); > ret = analogix_dp_config_video(dp); >