Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp968377pxb; Tue, 14 Sep 2021 12:51:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx7191+QJ/iTHbuj1A5F/wMQrBTsAXlkKrK9QmJ3jKju5khiqdoY7tDan+OYvI730ulFuQD X-Received: by 2002:a02:1942:: with SMTP id b63mr16107207jab.49.1631649073204; Tue, 14 Sep 2021 12:51:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631649073; cv=none; d=google.com; s=arc-20160816; b=Qt1etRtQ18BAn7WCJ336GIhLXoX7FDYIShm7xHs03g489Ntv3fS7TJioGXPI4PBnMx gMtzu3uGaDOxmkMmNRRWMz7UX9BW2OzEZZh2aJ/bESGvkEpOfJ0Hd0cZRyLhJ+Pnr5zS tC7T2LRrhlJ9HyYBZ78s4/iKi7NwxJXPUA4F71a4xzw8azZw8M9yB0G/sjtSAyJ4X/40 E+K4rok1hMSMivaQWmJV4Uryy2p8l7QN68Q3DNAkFyupXp/dgtuqfReWaTSUK8/unfGB fadpAd4O4QY0TilmkSP3cjSqBhXtHudjV/b4v9r2yGLNWIvSztIOZWItO4O0YHjnjMZ9 bZXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:user-agent:from :references:in-reply-to:mime-version:dkim-signature; bh=v3c6E6MMQg7r5oBUq1m5l+3onlEbo8USrY7KqxJROCA=; b=XzxeciymzcTx4EqMtfMCgkNmucsuK8rs0ZqHFPCV/wHDCyoRgxePKvoA30g2J0aY0i PAKtl68UqEj0WENu15eYDq+mW8hfILjBAB96J6fQsZg1VInXCNh+qWhxxgjgoart0uzN zjg74OatHwJnV9t5uG76xyQXrAAjWVYo4f/sTnU9MsJq0lG2zbXnIDzF+QhqybfKwynN bKM5btPz6fZ/y0m/sy4Yb90PTwFh0PyFwuDLCFgUpvy5p+N0616fJxdLxXtdGtK6TlqQ CgXF9YJLr82FBWOZe/tINfTHhTU5PdGX782Et0evCpIOaDm0jJGgKV07LgDiiRsDe7zh ppZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=d82STJpl; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t195si12608686iof.69.2021.09.14.12.51.01; Tue, 14 Sep 2021 12:51:13 -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=@chromium.org header.s=google header.b=d82STJpl; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231892AbhINTud (ORCPT + 99 others); Tue, 14 Sep 2021 15:50:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232867AbhINTuc (ORCPT ); Tue, 14 Sep 2021 15:50:32 -0400 Received: from mail-ot1-x32a.google.com (mail-ot1-x32a.google.com [IPv6:2607:f8b0:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BEC0C061574 for ; Tue, 14 Sep 2021 12:49:14 -0700 (PDT) Received: by mail-ot1-x32a.google.com with SMTP id l16-20020a9d6a90000000b0053b71f7dc83so160451otq.7 for ; Tue, 14 Sep 2021 12:49:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:in-reply-to:references:from:user-agent:date:message-id :subject:to:cc; bh=v3c6E6MMQg7r5oBUq1m5l+3onlEbo8USrY7KqxJROCA=; b=d82STJplqEDvwvwojrzgiDLySxHC1xT1ThA3Ss936NRBXycfFJuLyM8brNvGk8Q0BZ RfBmUa9WgZiV5/lphxebcR9MMFlYTDzmZFqlnn1xZL+BdktpnYJhU6VO5vbPEWNE8pmP 0O+noFpedvkPblcENKaTnLBR08KFvN7bCh7tc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:in-reply-to:references:from :user-agent:date:message-id:subject:to:cc; bh=v3c6E6MMQg7r5oBUq1m5l+3onlEbo8USrY7KqxJROCA=; b=bKGVnwZBM+8o6mvuguBSfFVt5ZhSw7puS5lEfrOje7+HOCC99mvFGhPyQ6mGZheddo zdUEE+gY7JtHKmTMU9//dBmwnJxOOfgGcV/PqK2hEG1RHhFZX3dtLVmC3hQSHde47lsV zmp+NNmt4YXtCpRM6zvytBLUNqQjI+vJtYlfjXLtPvd60xKEG3Jsymk8/aGUV3wWzOz3 iKCTIMpx5Vn3hlEMfDt5nIvNazKVjtWAMKD6RsBukkLrFtblwP7/fi1Gf6W1BX+6C92k AdsfMyF2lS2Dhd12XUGn0KE+ns/5KevEBe8ouzcolY29CJA48FIBMuBDezz6w24KaUA0 f2CQ== X-Gm-Message-State: AOAM533REr32TWEbirdVvGi9KK8QTEs8JwV3EVXb+RWklCOP4RDLSocv O3q2EEIlA5k35GaftyygRJBedcjZhcaOPJswMRDFEg== X-Received: by 2002:a05:6830:1212:: with SMTP id r18mr15731034otp.159.1631648953925; Tue, 14 Sep 2021 12:49:13 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Tue, 14 Sep 2021 12:49:13 -0700 MIME-Version: 1.0 In-Reply-To: <1631637901-11603-1-git-send-email-khsieh@codeaurora.org> References: <1631637901-11603-1-git-send-email-khsieh@codeaurora.org> From: Stephen Boyd User-Agent: alot/0.9.1 Date: Tue, 14 Sep 2021 12:49:13 -0700 Message-ID: Subject: Re: [PATCH v4] phy: qcom-qmp: add support for display port voltage and pre-emphasis swing To: Kuogee Hsieh , agross@kernel.org, bjorn.andersson@linaro.org, devicetree@vger.kernel.org, robdclark@gmail.com, robh+dt@kernel.org, sean@poorly.run, vkoul@kernel.org Cc: abhinavk@codeaurora.org, aravindh@codeaurora.org, freedreno@lists.freedesktop.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, kishon@ti.com, p.zabel@pengutronix.de Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Quoting Kuogee Hsieh (2021-09-14 09:45:01) > Both voltage and pre-emphasis swing level are set during link training > negotiation between host and sink. There are totally four tables added. > A voltage swing table for both hbr and hbr1, a voltage table for both > hbr2 and hbr3, a pre-emphasis table for both hbr and hbr1 and a pre-emphasis > table for both hbr2 and hbr3. In addition, write 0x0a to TX_TX_POL_INV is > added to complete the sequence of configure dp phy base on HPG. > > Chnages in v2: > -- revise commit test > -- add Fixes tag > -- replaced voltage_swing_cfg with voltage > -- replaced pre_emphasis_cfg with emphasis > -- delete drv_lvl_reg and emp_post_reg parameters from qcom_qmp_v4_phy_configure_dp_swing() > -- delete drv_lvl_reg and emp_post_reg parameters from qcom_qmp_phy_configure_dp_swing() > > Changes in V3: > -- add __qcom_qmp_phy_configure_dp_swing() to commit swing/pre-emphasis level > > Changes in V4: > -- pass 2D array to __qcom_qmp_phy_configure_dp_swing() > > Fixes: aff188feb5e1 ("phy: qcom-qmp: add support for sm8250-usb3-dp phy") > Signed-off-by: Kuogee Hsieh > --- Reviewed-by: Stephen Boyd