Received: by 10.213.65.68 with SMTP id h4csp1910559imn; Mon, 19 Mar 2018 17:17:43 -0700 (PDT) X-Google-Smtp-Source: AG47ELsJ02ITFqxPBtRXabpTW9nkuZI7Idud0ovbKdP58i4Bq9znTIfrYze7qLkRZJ1pnK+Dmk5J X-Received: by 10.98.73.214 with SMTP id r83mr3138214pfi.76.1521505063014; Mon, 19 Mar 2018 17:17:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521505063; cv=none; d=google.com; s=arc-20160816; b=FnQwpkt2i4/tbvO8nX1j3TwSi6+Oy8JSo8cjLfAMLauuokMSshLFoygEfovXKKZxQC 3+WaRUYLfrXQADNbd02BeUF5i4EMptCbQ7vZX1/ERb/5uKdSfyTB0YQc/BLhId4ORW5E t76d/hdaW+nspXcVEoWFa4+2seZJMmT7Ujlqzmc5x6IUw0HbfLrPJ/YhUQDHwTrkOZTZ YNSprPcsV82Qv3ohDvT5sEIFIj7MnLEMEDIevkNtdsuZ/S5evPzGwM1ifa24Tr1F/AAk t+vGHOMieY4ma2j8z8bUkybYTyhRw6nNaJMmKeWXFMh+rXgBSDkzvjzfd+rkOKICX2be TIEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature :arc-authentication-results; bh=f75CNPfdrXlCt4BVCo6gnS4ZeEe/f/ifhIfi/OWoxLM=; b=oncTK0D1Wo+xsF+L71NNMXBhV2cFpcFY/TZWsqkw4t1G7V2hCxam5XOWNN0BvSrLtO Q9jvu/oNcZ20ReZ/cADynk+2b87NZbfgQZo1DAbiUM1Vwia3scRl5RV0QIxTtIUANZ/2 Elb1SdYEOuLn7haeImq3EBc5dQaYABHh/ukd9ntY+sNfYL2hGcKefA4AGVPKrxTHMXHq 9en3qOKh5k2LqTS+GNoFxwBY8Wn2T5gzaah08qgk1R06fGSTm2QR1JpakqKMgumI30cr eGplNFYoH/HJRSMTbRtlDMenrw9sQlVPjmrE420sMglv6Lt7Om1XUImZV3pxEiNEZ+pi OoLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Mfi1EbC4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z69si324462pfk.321.2018.03.19.17.17.26; Mon, 19 Mar 2018 17:17:43 -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=@chromium.org header.s=google header.b=Mfi1EbC4; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030226AbeCSRwS (ORCPT + 99 others); Mon, 19 Mar 2018 13:52:18 -0400 Received: from mail-ot0-f193.google.com ([74.125.82.193]:40359 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965752AbeCSRwK (ORCPT ); Mon, 19 Mar 2018 13:52:10 -0400 Received: by mail-ot0-f193.google.com with SMTP id l12-v6so18282108otj.7 for ; Mon, 19 Mar 2018 10:52:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=f75CNPfdrXlCt4BVCo6gnS4ZeEe/f/ifhIfi/OWoxLM=; b=Mfi1EbC4JUkemB7MiXPEGyrWaPETRosGxuDyDl8Uf39ma3pQ0L+G9zgGqDnulMJniR j/euZJyMa7tEJQzcddl7FaChFEd5IJPK4M8ahpSljvKCNC52mDOrR+cL0DaI37WekBKZ gbhI0OuiGpf3xXnbnlJfEotdSFMJMJFx71tC0= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=f75CNPfdrXlCt4BVCo6gnS4ZeEe/f/ifhIfi/OWoxLM=; b=Q1bBHrO1pJ7+YLX0yUaYWIeTvAYB8oMibYh1AJZf1i3UNGUlUQDGoqxvEUy71arW60 WIdvs5dpvv+nIqKDdYeEATJo6uV3Z074VVd3oAHuJGUdNvEM0RlLDO9H5QCnDKd/AQkt RcffeJq3QjuEkgoa30Uqef84ie+DKp4U5RF0JVBYEt8lCaItCtz6apYUjbMdPnK32Rnj MZrBS1F6tdiLm9t4DTMUm8KBT4oU5ueJ9Arj17w8LX5Z4bCju6VHJ5Uu6wOZ611SbUrl 3m2AYzfGBichSpAkTnYEM7T6f9Bp0FRRmP0Ik1791YuiIHkFsbdq1IBWcF9vy1jZsV20 7nXw== X-Gm-Message-State: AElRT7H8diylAul/BTFpd3mXYze7Nq6f65qHZo1IHYzABoO5BMXNe0rF MVuvk5H/gkB8M15d01lf7ESX+DcTmN0= X-Received: by 2002:a9d:5413:: with SMTP id j19-v6mr7952670oth.262.1521481929372; Mon, 19 Mar 2018 10:52:09 -0700 (PDT) Received: from mail-ot0-f174.google.com (mail-ot0-f174.google.com. [74.125.82.174]) by smtp.gmail.com with ESMTPSA id y188sm293813oie.4.2018.03.19.10.52.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 19 Mar 2018 10:52:08 -0700 (PDT) Received: by mail-ot0-f174.google.com with SMTP id 79-v6so18250798oth.11 for ; Mon, 19 Mar 2018 10:52:08 -0700 (PDT) X-Received: by 2002:a9d:7390:: with SMTP id j16-v6mr2317592otk.154.1521481927533; Mon, 19 Mar 2018 10:52:07 -0700 (PDT) MIME-Version: 1.0 References: <1521193500-4696-1-git-send-email-mgautam@codeaurora.org> <1521193500-4696-5-git-send-email-mgautam@codeaurora.org> In-Reply-To: <1521193500-4696-5-git-send-email-mgautam@codeaurora.org> From: Evan Green Date: Mon, 19 Mar 2018 17:51:31 +0000 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 4/6] phy: qcom-qmp: Add QMP V3 USB3 UNI PHY support for sdm845 To: Manu Gautam Cc: kishon@ti.com, linux-arm-msm@vger.kernel.org, vivek.gautam@codeaurora.org, varada@codeaurora.org, weiyongjun1@huawei.com, fengguang.wu@intel.com, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Manu, On Fri, Mar 16, 2018 at 2:46 AM Manu Gautam wrote: > QMP V3 UNI PHY is a single lane USB3 PHY without support > for DisplayPort (DP). > Main difference from DP combo QMPv3 PHY is that UNI PHY > doesn't have dual RX/TX lanes and no separate DP_COM > block for configuration related to type-c or DP. > While at it, fix has_pwrdn_delay attribute for USB-DP > PHY configuration. > Signed-off-by: Manu Gautam > --- > drivers/phy/qualcomm/phy-qcom-qmp.c | 148 ++++++++++++++++++++++++++++++++++++ > drivers/phy/qualcomm/phy-qcom-qmp.h | 5 ++ > 2 files changed, 153 insertions(+) ... > diff --git a/drivers/phy/qualcomm/phy-qcom-qmp.h b/drivers/phy/qualcomm/phy-qcom-qmp.h > index d1c6905..5d78d43 100644 > --- a/drivers/phy/qualcomm/phy-qcom-qmp.h > +++ b/drivers/phy/qualcomm/phy-qcom-qmp.h > @@ -214,6 +214,8 @@ > #define QSERDES_V3_RX_UCDR_FASTLOCK_FO_GAIN 0x030 > #define QSERDES_V3_RX_UCDR_SO_SATURATION_AND_ENABLE 0x034 > #define QSERDES_V3_RX_RX_TERM_BW 0x07c > +#define QSERDES_V3_RX_VGA_CAL_CNTRL1 0x0bc I noticed you add this definition, but never use it. Are you missing a QMP_PHY_INIT_CFG line for this register in qmp_v3_usb3_uniphy_rx_tbl[], or is that register "don't care"? It looks important, and while its default value out of reset might be valid, you never know what nutty value boot firmware might set it to. > +#define QSERDES_V3_RX_VGA_CAL_CNTRL2 0x0c0 > #define QSERDES_V3_RX_RX_EQ_GAIN2_LSB 0x0c8 > #define QSERDES_V3_RX_RX_EQ_GAIN2_MSB 0x0cc > #define QSERDES_V3_RX_RX_EQU_ADAPTOR_CNTRL2 0x0d4 > @@ -227,6 +229,7 @@ > #define QSERDES_V3_RX_SIGDET_DEGLITCH_CNTRL 0x10c > #define QSERDES_V3_RX_RX_BAND 0x110 > #define QSERDES_V3_RX_RX_INTERFACE_MODE 0x11c > +#define QSERDES_V3_RX_RX_MODE_00 0x164 > /* Only for QMP V3 PHY - PCS registers */ > #define QPHY_V3_PCS_POWER_DOWN_CONTROL 0x004 > @@ -273,6 +276,8 @@ > #define QPHY_V3_PCS_FLL_CNT_VAL_H_TOL 0x0d0 > #define QPHY_V3_PCS_FLL_MAN_CODE 0x0d4 > #define QPHY_V3_PCS_RX_SIGDET_LVL 0x1d8 > +#define QPHY_V3_PCS_REFGEN_REQ_CONFIG1 0x20c > +#define QPHY_V3_PCS_REFGEN_REQ_CONFIG2 0x210 > /* Only for QMP V3 PHY - PCS_MISC registers */ > #define QPHY_V3_PCS_MISC_CLAMP_ENABLE 0x0c > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project > -- > To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html