Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3164134pxf; Mon, 15 Mar 2021 03:13:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRAjNQAUz/MPxLkGrkqn3e/OKtaJLSAC7X4D6SEVWCXalX6++4P9YMMx8tfRBj5YouYW53 X-Received: by 2002:a05:6402:520b:: with SMTP id s11mr29454935edd.212.1615803195480; Mon, 15 Mar 2021 03:13:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615803195; cv=none; d=google.com; s=arc-20160816; b=FWExr7itfyFdD5nIaEwOwN7/IJqBPR9Lh8VP/ZzCqGlLvpaMyEu6VA5ka0GPX9Xxos QanmaGX33ipECMLKZhBuYI9sNxYtkc7oEZeEPbu3/pivmqhPZCQDYfyN2c8zf13UOVSC cLcLlzP1wwljmp+qbXsPsKriDKvAkrWL/NJhjgB8z8xE8DoQo6YZlvLpRY7wWl2WzNQn W5/pRZE71eDd6k9l3wbttNE7kflgOh1ND2SDMv8mm3JmG5P5fNkYT7S8PYP4xxkIF6Q1 goMOliwBf2RmEyLt6NWadRUqh1RnFPxE2tTUqsbh6e/F4ZkARU/s8sOdQ/R3jgQlZuZS pWkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cNdFKcVSCqf/BTTQpnxTw59k0k+/25DTKwOrMNdkXS0=; b=Ql9zjiXmUZS/IvZwz9Q17zscMr2tZloj8+KsnvPh10hyiM41ls2rtlc6KcG2eolLhh e5fndWMiu4pVl5DdhI4VfP9BT4yLXADv2fPVf7z6OUZWaQCsddpwi+cJOwYq0NtZDYsm 7Lg/RXhrN7t8iQzH1xIcd3VO4nG/eFNo3VQ3RS2coHyJDcUBjbx/GV9vCNfPP8PxoRGV cdWnjw3qe9iTq1yIO+/d0JZC32J4wbEO5QD1xcyIw/mJaUtchQAK5itOTlfcM7La4DxG efCSLevb8mxIUEGxjpDFd2lkTejo0BtN77CE0ieF/Rr2fSkJHWyTwH4DmafEQ1SuQWaC 8w9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kOGSfzOz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id di21si10159010edb.524.2021.03.15.03.12.52; Mon, 15 Mar 2021 03:13:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kOGSfzOz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229574AbhCOKLz (ORCPT + 99 others); Mon, 15 Mar 2021 06:11:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:35040 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229467AbhCOKLZ (ORCPT ); Mon, 15 Mar 2021 06:11:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D959F64E20; Mon, 15 Mar 2021 10:11:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615803084; bh=TBo4JwGbMiYixxXMujavD0wEMBia0P6yh8TLzXUBZzI=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kOGSfzOzZu3WPcJKhfaB+U8hFVaTdnHRTr1+sIvJEryXLDLuDgt8t/MJfqUQOwjIO cp8Q5ACafH+L8yLTejSJOAzUoEqdocdz1y3G8AGmz6bT3KWYUxUtYjj64ug4CmHJGk zO68is3LBZ7kBPlRG+mvmkHLp6AtlzRrioXl+FsxQ6XfCco/SxusF0kDA3Vaq3TL46 EBfzfRGUUZydBWis22hkhpzcoeNffWfmMpnRXkj00+bGIbP7l1FET/BAJPeaq/I5w2 hfBbdU6fnRhX1/7qf2IQu8jFPczuOzrxIo5Gcha/OFvrbbLp1qiaDbI2weT1P1jr9i uEsLjhNC9Ah9Q== Date: Mon, 15 Mar 2021 15:41:20 +0530 From: Vinod Koul To: Kuogee Hsieh Cc: robdclark@gmail.com, sean@poorly.run, swboyd@chromium.org, agross@kernel.org, bjorn.andersson@linaro.org, tanmay@codeaurora.org, abhinavk@codeaurora.org, aravindh@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 1/2] phy/qualcomm: add hbr3_hbr2 voltage and premphasis swing table Message-ID: References: <1613667070-27613-1-git-send-email-khsieh@codeaurora.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1613667070-27613-1-git-send-email-khsieh@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18-02-21, 08:51, Kuogee Hsieh wrote: > Add hbr3_hbr2 voltage and premphasis swing table to support > HBR3 link rate. Please use phy: qcom-qmp: "...." for the patch title > > Changes in V2: > -- replaced upper case with lower case at hbr3_hbr2 table > > Signed-off-by: Kuogee Hsieh > --- > drivers/phy/qualcomm/phy-qcom-qmp.c | 23 +++++++++++++++++++++-- > 1 file changed, 21 insertions(+), 2 deletions(-) > > diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.c b/drivers/phy/qualcomm/phy-qcom-qmp.c > index 0939a9e..4dcc074 100644 > --- a/drivers/phy/qualcomm/phy-qcom-qmp.c > +++ b/drivers/phy/qualcomm/phy-qcom-qmp.c > @@ -2965,6 +2965,20 @@ static void qcom_qmp_phy_dp_aux_init(struct qmp_phy *qphy) > qphy->pcs + QSERDES_V3_DP_PHY_AUX_INTERRUPT_MASK); > } > > +static const u8 qmp_dp_v3_pre_emphasis_hbr3_hbr2[4][4] = { > + { 0x00, 0x0c, 0x15, 0x1a }, > + { 0x02, 0x0e, 0x16, 0xff }, > + { 0x02, 0x11, 0xff, 0xff }, > + { 0x04, 0xff, 0xff, 0xff } This should use tabs and not spaces, please fix this and resend the patch after running checkpatch --strict and adding Steve's acks > +}; > + > +static const u8 qmp_dp_v3_voltage_swing_hbr3_hbr2[4][4] = { > + { 0x02, 0x12, 0x16, 0x1a }, > + { 0x09, 0x19, 0x1f, 0xff }, > + { 0x10, 0x1f, 0xff, 0xff }, > + { 0x1f, 0xff, 0xff, 0xff } > +}; > + > static const u8 qmp_dp_v3_pre_emphasis_hbr_rbr[4][4] = { > { 0x00, 0x0c, 0x14, 0x19 }, > { 0x00, 0x0b, 0x12, 0xff }, > @@ -3000,8 +3014,13 @@ static void qcom_qmp_phy_configure_dp_tx(struct qmp_phy *qphy) > drvr_en = 0x10; > } > > - voltage_swing_cfg = qmp_dp_v3_voltage_swing_hbr_rbr[v_level][p_level]; > - pre_emphasis_cfg = qmp_dp_v3_pre_emphasis_hbr_rbr[v_level][p_level]; > + if (dp_opts->link_rate <= 2700) { > + voltage_swing_cfg = qmp_dp_v3_voltage_swing_hbr_rbr[v_level][p_level]; > + pre_emphasis_cfg = qmp_dp_v3_pre_emphasis_hbr_rbr[v_level][p_level]; > + } else { > + voltage_swing_cfg = qmp_dp_v3_voltage_swing_hbr3_hbr2[v_level][p_level]; > + pre_emphasis_cfg = qmp_dp_v3_pre_emphasis_hbr3_hbr2[v_level][p_level]; > + } > > /* TODO: Move check to config check */ > if (voltage_swing_cfg == 0xFF && pre_emphasis_cfg == 0xFF) > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project -- ~Vinod