Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2451729rdb; Wed, 4 Oct 2023 01:14:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGvBTMS5LFmBBS+a6u7z0lnLhLyLuN1YEkNVwQDRmZlTNSdHtsc92bgq4WbkcsJDJvvW+rY X-Received: by 2002:a05:6a20:160c:b0:163:b85e:6348 with SMTP id l12-20020a056a20160c00b00163b85e6348mr1856749pzj.39.1696407262056; Wed, 04 Oct 2023 01:14:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696407262; cv=none; d=google.com; s=arc-20160816; b=P5rmqxT5WrgPUwpe2YUrrW6PwUWdMSm3jnGqx8SCWgqVn72rXbebV5FP1BD1DGiPzS 7Vh7aMJ/DJHRRSt9QFw2TnL7/3oxoYrhhAGb7XPnDi+z6momREabNANVwvqEjQRr5mUl sFIHnlKr3ehNYFm8ADxhl0YWtnWYgc+inole5/T6pk+5Nan772eadNfpa94SwPnaaC7R qJAu6KU+mj5DrREgw2mtPZH6WrGtab0KXZVIFUABPCrANQSPzZldE2W6C20D6dZSXTnL nldIY/wOLOBmNr5HGK6ZxiYnsWRL2H1Zq603HvxIAH6qAJG4GhKK22W82bFIp8RKqlS3 AB8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:autocrypt :from:references:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=vEAkgzjm67adR59AmQUSqLjVe6MV57/HUmn4S8l30lk=; fh=YrxfFM3mTNXE6ugjDoitF6lXlfi6pMaTfHZd3txhRjs=; b=dcSRV2GOR1WBxQTbLvYZra0h74MamuixJc3wFj018T//N14MB3XlQQyvqzLobPFNOA C69/C6mosGFEB84N7qSozxuZeaXLE3lGDoYsOGjHWLKsSCrqYK5qByRspN6NtAvpQ5ue 18vhKWZQuqAjgwMOVLxMWuWtmd3EFvqiJjAXnMSBiefphrA/fNrh2RApz/O8yJeX1hdv WsamqArgbhqae/PenzCsV0ospLySbbZ51xTswBNJWY1EGI3Q/3qR3MgivwOCBGjc7YrJ ZTBKMONDRhQ/lF7hcmg1CyRWLErb2fZ8LstCikcRC0jSoQHwQLaLySccH1TMPEZKcfw1 U6SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uYuHGwrE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id d4-20020a633604000000b00578ac490e7bsi3221957pga.638.2023.10.04.01.14.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 01:14:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=uYuHGwrE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 7019981A4465; Wed, 4 Oct 2023 01:14:19 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241574AbjJDIOH (ORCPT + 99 others); Wed, 4 Oct 2023 04:14:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229712AbjJDIOG (ORCPT ); Wed, 4 Oct 2023 04:14:06 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F718A6; Wed, 4 Oct 2023 01:14:03 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CD46C433C7; Wed, 4 Oct 2023 08:13:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1696407242; bh=UPqOSLYhH7npzWNNSeA82XKeFXdrUVJstVbJYeo2EaA=; h=Date:Subject:To:References:From:In-Reply-To:From; b=uYuHGwrE5OxB82TgQSr5LMX4noPjfoLvkxmKL8OrfQkG+7N5uXHIZtAhHMPnlbV5B Fx0MgdGd1Vj94JYaFk7zvtk0c1Z7S/N9Zokz0DEqxn7v0LexXaZvSkGZXqOsq0zUOg GvBJTpTYyfoOcD6aj1gt2ECThArU3Au5y9TcxJ2tyOgO8Drw9QgZqg3crNTAdWEE28 eqLYE0WyskczES/GsoIPjPknXtBIQgoxM9dcv8kNzTxYAHNen7iSjwFykpgf2z3GWU c1npePM7PD+txXmFftPA0e3vXTMa05KfkXpt3Ib31Ys2cwOqSNWlmI4xPDQKmkel7n RuTIGY+SvY8Ow== Message-ID: <959363c6-9ecb-4e5f-960d-65dd23b74ce2@kernel.org> Date: Wed, 4 Oct 2023 10:13:52 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/6] phy: qcom: Introduce PCIe UNIPHY 28LP driver Content-Language: en-US To: Nitheesh Sekar , agross@kernel.org, andersson@kernel.org, konrad.dybcio@linaro.org, lpieralisi@kernel.org, kw@linux.com, robh@kernel.org, bhelgaas@google.com, krzysztof.kozlowski+dt@linaro.org, conor+dt@kernel.org, vkoul@kernel.org, kishon@kernel.org, mani@kernel.org, p.zabel@pengutronix.de, quic_srichara@quicinc.com, quic_varada@quicinc.com, quic_ipkumar@quicinc.com, linux-arm-msm@vger.kernel.org, linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-phy@lists.infradead.org References: <20231003120846.28626-1-quic_nsekar@quicinc.com> <20231003120846.28626-4-quic_nsekar@quicinc.com> From: Krzysztof Kozlowski Autocrypt: addr=krzk@kernel.org; keydata= xsFNBFVDQq4BEAC6KeLOfFsAvFMBsrCrJ2bCalhPv5+KQF2PS2+iwZI8BpRZoV+Bd5kWvN79 cFgcqTTuNHjAvxtUG8pQgGTHAObYs6xeYJtjUH0ZX6ndJ33FJYf5V3yXqqjcZ30FgHzJCFUu JMp7PSyMPzpUXfU12yfcRYVEMQrmplNZssmYhiTeVicuOOypWugZKVLGNm0IweVCaZ/DJDIH gNbpvVwjcKYrx85m9cBVEBUGaQP6AT7qlVCkrf50v8bofSIyVa2xmubbAwwFA1oxoOusjPIE J3iadrwpFvsZjF5uHAKS+7wHLoW9hVzOnLbX6ajk5Hf8Pb1m+VH/E8bPBNNYKkfTtypTDUCj NYcd27tjnXfG+SDs/EXNUAIRefCyvaRG7oRYF3Ec+2RgQDRnmmjCjoQNbFrJvJkFHlPeHaeS BosGY+XWKydnmsfY7SSnjAzLUGAFhLd/XDVpb1Een2XucPpKvt9ORF+48gy12FA5GduRLhQU vK4tU7ojoem/G23PcowM1CwPurC8sAVsQb9KmwTGh7rVz3ks3w/zfGBy3+WmLg++C2Wct6nM Pd8/6CBVjEWqD06/RjI2AnjIq5fSEH/BIfXXfC68nMp9BZoy3So4ZsbOlBmtAPvMYX6U8VwD TNeBxJu5Ex0Izf1NV9CzC3nNaFUYOY8KfN01X5SExAoVTr09ewARAQABzSVLcnp5c3p0b2Yg S296bG93c2tpIDxrcnprQGtlcm5lbC5vcmc+wsGVBBMBCgA/AhsDBgsJCAcDAgYVCAIJCgsE FgIDAQIeAQIXgBYhBJvQfg4MUfjVlne3VBuTQ307QWKbBQJgPO8PBQkUX63hAAoJEBuTQ307 QWKbBn8P+QFxwl7pDsAKR1Inem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nRBY fv0= In-Reply-To: <20231003120846.28626-4-quic_nsekar@quicinc.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Wed, 04 Oct 2023 01:14:19 -0700 (PDT) On 03/10/2023 14:08, Nitheesh Sekar wrote: > Add Qualcomm PCIe UNIPHY 28LP driver support present > in Qualcomm IPQ5018 SoC and the phy init sequence. > > Signed-off-by: Nitheesh Sekar > --- ... > +static int qcom_uniphy_pcie_probe(struct platform_device *pdev) > +{ > + struct qcom_uniphy_pcie *phy; > + int ret; > + struct phy *generic_phy; > + struct phy_provider *phy_provider; > + struct device *dev = &pdev->dev; > + struct device_node *np = of_node_get(dev->of_node); > + > + phy = devm_kzalloc(&pdev->dev, sizeof(*phy), GFP_KERNEL); > + if (!phy) > + return -ENOMEM; > + > + platform_set_drvdata(pdev, phy); > + phy->dev = &pdev->dev; > + > + phy->data = of_device_get_match_data(dev); > + if (!phy->data) > + return -EINVAL; > + > + ret = qcom_uniphy_pcie_get_resources(pdev, phy); > + if (ret < 0) { > + dev_err(&pdev->dev, "failed to get resources: %d\n", ret); > + return ret; Syntax is: return dev_err_probe() > + } > + > + ret = phy_pipe_clk_register(phy, np); > + if (ret) > + dev_err(&pdev->dev, "failed to register phy pipe clk\n"); > + > + generic_phy = devm_phy_create(phy->dev, NULL, &pcie_ops); > + if (IS_ERR(generic_phy)) > + return PTR_ERR(generic_phy); > + > + phy_set_drvdata(generic_phy, phy); > + phy_provider = devm_of_phy_provider_register(phy->dev, > + of_phy_simple_xlate); > + if (IS_ERR(phy_provider)) > + return PTR_ERR(phy_provider); > + > + return 0; > +} > + > +static struct platform_driver qcom_uniphy_pcie_driver = { > + .probe = qcom_uniphy_pcie_probe, > + .driver = { > + .name = "qcom-uniphy-pcie", > + .owner = THIS_MODULE, Run coccinelle/coccicheck. > + .of_match_table = qcom_uniphy_pcie_id_table, > + }, > +}; > + > +module_platform_driver(qcom_uniphy_pcie_driver); > + > +MODULE_ALIAS("platform:qcom-uniphy-pcie"); You should not need MODULE_ALIAS() in normal cases. If you need it, usually it means your device ID table is wrong. Best regards, Krzysztof