Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp1070095rdf; Wed, 22 Nov 2023 05:03:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IFa4VdZYdxNUH1ceI7CUaeT2vAmIo6V0J0YUDnXegQp9SVrcX99hz+aHrZg7voLUymZvYR9 X-Received: by 2002:a05:6820:1502:b0:58a:231d:750d with SMTP id ay2-20020a056820150200b0058a231d750dmr2538734oob.9.1700658222543; Wed, 22 Nov 2023 05:03:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700658222; cv=none; d=google.com; s=arc-20160816; b=ZezXhdIY94TQ0nAnBQNT/d/uqnFAeQpUZeKRnb7Ip2Rgty/RIfZb4U8l1m1Rhi3z7m /2rrsofEtmBix3xz92bAKZ8iPdfkYapaI9rRQtmnFSIWYxwUfOpwA1dSBqExiYQQRDzq 8J+mg7KZ0Aq3pOt9UTZlpQZI3uNsnwp+Fda73yjm6543ZD7ere+kFe7CbnApiwSX8hRD 98cKa3ktiDTqR4gS1ehIS3R8KyjJOJyn4CsY2puXDAp7kIXVIzggYUA9PPTe9tFAFDL0 x0Uh4jOA1hOjOVM93Asa6krRBsd6Z/rgz2gGn+vR51m/UkbyuQKRRiegx/aQIpXqqZCu sMuw== 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=YcYUWH5bzrETcKbno6DmH/KmpiVWUmC1uDUZpbNkxL0=; fh=wzvMR2gvKWjmlgd8nzzzxSzRehblqgGuS3QZMWqqh5s=; b=RbYA6vreg4gxMliyc+XfXcGx8heLy5C8il6Dp0UL/VNE5Z0gHOxIJBv+va/EYnfn7E pfIIRTYjIElKBvWb36Nrtxfpvyv/FIzhAiSokEwYdmarIzLx7dubY4OrVvkvDuUAz0BS RwRz3zPlnMxczWpxzjPiD8MrvIHZI0yUZJ2PPxr3LowQWmXM3X33wXo3V7kbvh2ZSB7p lYPfL/LjAvgqkXTAQzNXLwUdcNff1LzwDVSNmedmsCxo8Typ/n2d1+Vd/q3dFGI5TUDB 3HyWQlWcXZtro2jLxffIWOlZxyw3D63sxKfb1wOJGyRk6TM2HHKsvNA1Ke3nqcRoQtaK eiXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hLZbOLas; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id f67-20020a4a5846000000b0057b7df19bdcsi4654713oob.99.2023.11.22.05.03.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 05:03:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hLZbOLas; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 1465E8112A8F; Wed, 22 Nov 2023 05:03:38 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344124AbjKVNDb (ORCPT + 99 others); Wed, 22 Nov 2023 08:03:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343868AbjKVNDa (ORCPT ); Wed, 22 Nov 2023 08:03:30 -0500 Received: from mail-ej1-x62b.google.com (mail-ej1-x62b.google.com [IPv6:2a00:1450:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2DCD0191 for ; Wed, 22 Nov 2023 05:03:26 -0800 (PST) Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-a04196fc957so104535366b.2 for ; Wed, 22 Nov 2023 05:03:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1700658204; x=1701263004; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=YcYUWH5bzrETcKbno6DmH/KmpiVWUmC1uDUZpbNkxL0=; b=hLZbOLasZtPK+NhtkJylKsv/0AptHHps729faXkPUQmdSWlYPwi+eDVtmkAvhqntdg dgbwu0+SNVKZGsJZY9nDG9+gzK+8CT6F2YRL/vmptJbezAzhKRco9VmBcgsiGdFE5ngE uI9TQ3t3bKJBP2TH4JdZvJVt95i/TiN0yZLONa2LttjyJMsyfZzob6aVzDfrlqxpSS9w BZxVB4PRFLUborYGAYnwxtAs5OxxblSv7lWTq+KXR7xQhCa6njEH7Wg+ENEPSkTeL2QI NIyrI3leLS01I+rL/YmH5sKYF07wJzklid8iav3p2GFM7Zu/Lr45dPVkZAUVCwjLPyzU fE7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700658204; x=1701263004; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=YcYUWH5bzrETcKbno6DmH/KmpiVWUmC1uDUZpbNkxL0=; b=Ci8dBrUSgRoxrHC16wF5Ev4UTD4Jcb2DMXr8UwjKFqwdIJXJJDP8uQclcEtr/MZntS 0edGeZNt/HfC1Ps7fqgB8fvfnJXU6j+ITCVbHQxo0L+8HEQzHbGcf/7wszKbxgTf93UJ 3uW+goS/esep7/XfWs7c8nWfVUnXSz6/VCRFSWWoLe6qTbFzXz/LtoCWTbD3SsxG25Ql CjCLM6yiWCs+ZbXLCqfwgDBnVNqAU6uVAzT2KaUX3tszyIXYyeCAj56R2EZHkvBs5fHt ojswpWQ5vCBnodsPsNz2JOSWv+WjwS+KI+Mlm2dEIeCZ0ZopVo9hWcaBgNTyz00E3yK2 KeIQ== X-Gm-Message-State: AOJu0YybOnXuNEwEckh24CfIHOCPYRIStD72MVKWuy7AJBlpyhZU2Wy4 XJSnrXupnAR1hsXLNpwIMIlivw== X-Received: by 2002:a17:906:8e:b0:9c4:6893:ccc5 with SMTP id 14-20020a170906008e00b009c46893ccc5mr1359841ejc.57.1700658204634; Wed, 22 Nov 2023 05:03:24 -0800 (PST) Received: from linaro.org ([86.123.99.122]) by smtp.gmail.com with ESMTPSA id kk17-20020a170907767100b0099cce6f7d50sm6622637ejc.64.2023.11.22.05.03.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Nov 2023 05:03:24 -0800 (PST) Date: Wed, 22 Nov 2023 15:03:22 +0200 From: Abel Vesa To: Johan Hovold Cc: Andy Gross , Bjorn Andersson , Konrad Dybcio , Vinod Koul , Kishon Vijay Abraham I , Rob Herring , Krzysztof Kozlowski , Conor Dooley , linux-arm-msm@vger.kernel.org, linux-phy@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] phy: qcom-qmp-usb: Add Qualcomm X1E80100 USB3 PHY support Message-ID: References: <20231122-phy-qualcomm-usb3-uniphy-x1e80100-v1-0-3f5bd223d5b4@linaro.org> <20231122-phy-qualcomm-usb3-uniphy-x1e80100-v1-2-3f5bd223d5b4@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (agentk.vger.email [0.0.0.0]); Wed, 22 Nov 2023 05:03:38 -0800 (PST) On 23-11-22 13:56:51, Johan Hovold wrote: > On Wed, Nov 22, 2023 at 02:05:22PM +0200, Abel Vesa wrote: > > The X1E80100 platform has two instances of the USB3 UNI phy attached > > to the multi-port USB controller, add definition for these. > > > > Signed-off-by: Abel Vesa > > --- > > drivers/phy/qualcomm/phy-qcom-qmp-usb.c | 152 ++++++++++++++++++++++++++++++++ > > 1 file changed, 152 insertions(+) > > > > diff --git a/drivers/phy/qualcomm/phy-qcom-qmp-usb.c b/drivers/phy/qualcomm/phy-qcom-qmp-usb.c > > index 02f156298e77..bbeba5722cf0 100644 > > --- a/drivers/phy/qualcomm/phy-qcom-qmp-usb.c > > +++ b/drivers/phy/qualcomm/phy-qcom-qmp-usb.c > > @@ -24,6 +24,7 @@ > > #include "phy-qcom-qmp-pcs-misc-v4.h" > > #include "phy-qcom-qmp-pcs-usb-v4.h" > > #include "phy-qcom-qmp-pcs-usb-v5.h" > > +#include "phy-qcom-qmp-pcs-usb-v7.h" > > > > /* QPHY_SW_RESET bit */ > > #define SW_RESET BIT(0) > > @@ -1138,6 +1139,134 @@ static const struct qmp_phy_init_tbl sc8280xp_usb3_uniphy_pcs_usb_tbl[] = { > > QMP_PHY_INIT_CFG(QPHY_V5_PCS_USB3_LFPS_DET_HIGH_COUNT_VAL, 0xf8), > > }; > > > > +static const struct qmp_phy_init_tbl x1e80100_usb3_uniphy_serdes_tbl[] = { > > These tables and... > > > @@ -1411,6 +1540,26 @@ static const struct qmp_phy_cfg sc8280xp_usb3_uniphy_cfg = { > > .regs = qmp_v5_usb3phy_regs_layout, > > }; > > > > +static const struct qmp_phy_cfg x1e80100_usb3_uniphy_cfg = { > > + .lanes = 1, > > + > > + .offsets = &qmp_usb_offsets_v5, > > + > > + .serdes_tbl = x1e80100_usb3_uniphy_serdes_tbl, > > + .serdes_tbl_num = ARRAY_SIZE(x1e80100_usb3_uniphy_serdes_tbl), > > + .tx_tbl = x1e80100_usb3_uniphy_tx_tbl, > > + .tx_tbl_num = ARRAY_SIZE(x1e80100_usb3_uniphy_tx_tbl), > > + .rx_tbl = x1e80100_usb3_uniphy_rx_tbl, > > + .rx_tbl_num = ARRAY_SIZE(x1e80100_usb3_uniphy_rx_tbl), > > + .pcs_tbl = x1e80100_usb3_uniphy_pcs_tbl, > > + .pcs_tbl_num = ARRAY_SIZE(x1e80100_usb3_uniphy_pcs_tbl), > > + .pcs_usb_tbl = x1e80100_usb3_uniphy_pcs_usb_tbl, > > + .pcs_usb_tbl_num = ARRAY_SIZE(x1e80100_usb3_uniphy_pcs_usb_tbl), > > + .vreg_list = qmp_phy_vreg_l, > > + .num_vregs = ARRAY_SIZE(qmp_phy_vreg_l), > > + .regs = qmp_v5_usb3phy_regs_layout, > > +}; > > ...this struct no longer looks like they've been added at the right > places. > > > + > > static const struct qmp_phy_cfg qmp_v3_usb3_uniphy_cfg = { > > .lanes = 1, > > > > @@ -2247,6 +2396,9 @@ static const struct of_device_id qmp_usb_of_match_table[] = { > > }, { > > .compatible = "qcom,sc8280xp-qmp-usb3-uni-phy", > > .data = &sc8280xp_usb3_uniphy_cfg, > > + }, { > > + .compatible = "qcom,x1e80100-qmp-usb3-uni-phy", > > + .data = &x1e80100_usb3_uniphy_cfg, > > Same here, please keep the entries sorted by compatible (and please > check your other x1e80100 patches for such issues after changing the SoC > name). Thanks for reviewing and catching this. Will triple check from now on. > > > }, { > > .compatible = "qcom,sdm845-qmp-usb3-uni-phy", > > .data = &qmp_v3_usb3_uniphy_cfg, > > Johan