Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5810527rdb; Wed, 13 Dec 2023 23:13:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IGz4y5VmKh6X71woH7aHPCbah81Qd4xlTDrqYrm/6edL09w5fs7v3vZy2EMwammqO1teler X-Received: by 2002:a05:6e02:1a4d:b0:35d:59a2:2b4 with SMTP id u13-20020a056e021a4d00b0035d59a202b4mr14177612ilv.84.1702537989952; Wed, 13 Dec 2023 23:13:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702537989; cv=none; d=google.com; s=arc-20160816; b=pLRKcj3ZlD3jAXOgJPpZzCE3v0Svmdhtp50tNgh8XkyfnKp32gJIzhB5wgqkZL4nKN lviga7GhBCSvCB/sGcT/mwEOPPlqxw4MOrXiJmywiQdimDGpdw8T06i6vnptiYX67nmY om4/3K1gt9obcd+zIekIB4ZK3Lz0mUnTDNNsJCtmaLh5p/0UbYkY/3I5hHLkm+fLkudA iWx/FfcN2HoWikW3D0Tahrk5OVWKXeTWip6cRLSpV/KF5g5ZnMaQ6kGhmmaRBP6iBieJ aH7Dku1hh9m4tLW3fRalmrMFAtTDWbUH3iuiRrselVQU4dyDdC+lgkFW94HDwcUjoy2L 4d7g== 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:from:in-reply-to :references:mime-version:dkim-signature; bh=93QX/jgZBqRf6fwN+rr8BYXawe/tGzkWINFxkuFYXG4=; fh=/L4JRc3Fl9XUKmyhCOWBWJBQFE4usso9evUzQoYT1kU=; b=pj1S2HSj+7Tmf6QpAXF77CChLt/qGOfiASk3VPWM/aEBcDmpfc3arRU2sDEYmJt9qp TD5oahztGM+ivlE+MVdGxrvZaUKHO1naGfrGPvhB67KuimdUU2GXc0anmfW6RE9Lf1E3 fZYRjwP5d/t5sxUspiR9wMl7bptgoDIbBTalIVngyx2HNy80Boy6Op8IzdAqAC/eMoOJ RNT+uuzWfIhTkhSap8tkC/SmIU7y74kgM06j9j5mXoMUvonEEYgUCsSDEpDLVF7molU9 W7ybQjvhnPyyIesBqHkLS0DIvDLRgNxIY+7snrEKtCFMvyuMLjG62s/ou8868DB0L5fo nvMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dfzg5m5c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id h6-20020a170902704600b001d330f638easi4560291plt.514.2023.12.13.23.13.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 23:13:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dfzg5m5c; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 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 howler.vger.email (Postfix) with ESMTP id 51CEB82DFD0C; Wed, 13 Dec 2023 23:13:07 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230255AbjLNHMp (ORCPT + 99 others); Thu, 14 Dec 2023 02:12:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229461AbjLNHMo (ORCPT ); Thu, 14 Dec 2023 02:12:44 -0500 Received: from mail-yw1-x112c.google.com (mail-yw1-x112c.google.com [IPv6:2607:f8b0:4864:20::112c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2BD0C100 for ; Wed, 13 Dec 2023 23:12:51 -0800 (PST) Received: by mail-yw1-x112c.google.com with SMTP id 00721157ae682-5e3b9c14e46so1026857b3.0 for ; Wed, 13 Dec 2023 23:12:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702537970; x=1703142770; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=93QX/jgZBqRf6fwN+rr8BYXawe/tGzkWINFxkuFYXG4=; b=dfzg5m5cRX7sJEbzHZkDU1RpFdYfhM9dqpHmaRCh9PD7VuxEib1ezVAoSwiaq6rreV sizhc+8uHaMbd+0784yyeK0ic77oeRl99O79Iyr34nKGtN5KMw2wWQDpqVoRC0l8RAG8 /J9SVHewGzhyX3jNErvlN9OiRYGz4JKSmlJ8UtLZnoLHZR31VBPxJiwJme98bV3rYLkw LtOMIImPKnGyTwzKayLExy9OFzXFFUh2vU2PmR9nPBp/gxpGVfLFfXvROuoot4xz52LL A57MfkS+6SNteP8vkGj/bmdcs3SPCGHn1zpV8KZUUmTUghmqIzEQXv4iAzaZGNRuSsZA 3Tkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702537970; x=1703142770; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=93QX/jgZBqRf6fwN+rr8BYXawe/tGzkWINFxkuFYXG4=; b=XfJQZ25cQ8ccm/XIiyCeWMg1Fi033Fey54uSxNngC+oidLTNK0Uu4pZnLRAKqpbTpD xk9aHfB/+gsCXKZi4REA2SsIpIa/IqRab9drzigqFpkvKj9gJnxEs+Eq2AV9hsQURRX2 0FIwJ3w7+y27XfMkBDOJDfr1hcJErQlXeBmw9rgFQRK2g4XEJpkJt4YMbZKbGJ6RxsJD DknEOsT443LBcKx41cvWM4X3AkKZyTWtiVqJ/eESFhxAhus+MXMAadLIyw4gDaJNuTg6 mlf7UiPP6VNjLreIw7dadumBPCVyzMpEVSGAg7M3G1FG9I7owoANVsZiuSKaAjzYJpEZ cQFw== X-Gm-Message-State: AOJu0YzGhKxyH3Pu3UavI5Uo69+lF/3Sgpi+fRYnkyfH5q2992ySnBUS JeeQSlz1a9irlSPmKMkuJ8jgPvGGQ07yjwrtXqdkhQ== X-Received: by 2002:a81:49c8:0:b0:5de:93b6:7045 with SMTP id w191-20020a8149c8000000b005de93b67045mr8139176ywa.39.1702537970292; Wed, 13 Dec 2023 23:12:50 -0800 (PST) MIME-Version: 1.0 References: <20231214062847.2215542-1-quic_ipkumar@quicinc.com> <20231214062847.2215542-5-quic_ipkumar@quicinc.com> In-Reply-To: <20231214062847.2215542-5-quic_ipkumar@quicinc.com> From: Dmitry Baryshkov Date: Thu, 14 Dec 2023 09:12:39 +0200 Message-ID: Subject: Re: [PATCH 04/10] phy: qcom: Add support for Pipe clock rate from device data To: Praveenkumar I Cc: agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, mturquette@baylibre.com, sboyd@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, bhelgaas@google.com, lpieralisi@kernel.org, kw@linux.com, vkoul@kernel.org, kishon@kernel.org, mani@kernel.org, quic_nsekar@quicinc.com, quic_srichara@quicinc.com, linux-arm-msm@vger.kernel.org, linux-clk@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-phy@lists.infradead.org, quic_varada@quicinc.com, quic_devipriy@quicinc.com, quic_kathirav@quicinc.com, quic_anusha@quicinc.com Content-Type: text/plain; charset="UTF-8" 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 howler.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 (howler.vger.email [0.0.0.0]); Wed, 13 Dec 2023 23:13:07 -0800 (PST) On Thu, 14 Dec 2023 at 08:29, Praveenkumar I wrote: > > Qualcomm IPQ5332 has the same PCIe UNIPHY PHY with different pipe > clock rate. Add support to define the pipe clock rate in device > data. > > Signed-off-by: Praveenkumar I With the name fixed: Reviewed-by: Dmitry Baryshkov > --- > This patch depends on the below series which adds PCIe support in > Qualcomm IPQ5018 > https://lore.kernel.org/all/20231003120846.28626-1-quic_nsekar@quicinc.com/ > > drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c b/drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c > index 5ef6ae7276cf..9f9a03faf6fa 100644 > --- a/drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c > +++ b/drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c > @@ -54,6 +54,7 @@ struct uniphy_pcie_data { > unsigned int phy_type; > const struct uniphy_regs *init_seq; > unsigned int init_seq_num; > + unsigned int pipe_clk_rate; > }; > > struct qcom_uniphy_pcie { > @@ -117,6 +118,7 @@ static const struct uniphy_pcie_data ipq5018_2x2_data = { > .phy_type = PHY_TYPE_PCIE_GEN2, > .init_seq = ipq5018_regs, > .init_seq_num = ARRAY_SIZE(ipq5018_regs), > + .pipe_clk_rate = 125000000, > }; > > static void qcom_uniphy_pcie_init(struct qcom_uniphy_pcie *phy) > @@ -232,6 +234,7 @@ static int qcom_uniphy_pcie_get_resources(struct platform_device *pdev, > static int phy_pipe_clk_register(struct qcom_uniphy_pcie *phy, > struct device_node *np) > { > + const struct uniphy_pcie_data *data = phy->data; > struct clk_fixed_rate *fixed; > struct clk_init_data init = { }; > int ret; > @@ -247,7 +250,7 @@ static int phy_pipe_clk_register(struct qcom_uniphy_pcie *phy, > return -ENOMEM; > > init.ops = &clk_fixed_rate_ops; > - fixed->fixed_rate = 125000000; > + fixed->fixed_rate = data->pipe_clk_rate; > fixed->hw.init = &init; > > ret = devm_clk_hw_register(phy->dev, &fixed->hw); > -- > 2.34.1 > > -- With best wishes Dmitry