Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2758529rdb; Wed, 4 Oct 2023 10:28:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGzG3vZg9mr9bscgJ/FzcbWOC+wZbbYbXKXX8b1WO+7wtkpGLpaZGwVNAy0OqlYBzAEh9TJ X-Received: by 2002:a05:6a21:7906:b0:14c:7800:f3f4 with SMTP id bg6-20020a056a21790600b0014c7800f3f4mr2308528pzc.36.1696440533279; Wed, 04 Oct 2023 10:28:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696440533; cv=none; d=google.com; s=arc-20160816; b=CdVf69xq6ZC1IY1j5jyDoJFB8A6GP6Yq4IKCmfEug7FEfvXx//l6I0YEag9VRE76cG SzKXYzXgPgCvRG44pU6+Q7Qltyj2+sTK6dzImBcc+kVcsMFJmW2FiV1zSwidBbVF0dbW bY7OOnZd9zjOEHnT8hpC0cSv/0naoPxSggmWfo20ivSKd0wjUluCpbsRwVfgR6vIFAwd u7JCCgiHbMMie7bf8OC7lDytuZHKJn6MxnjYwkYiAOhkpdzNO8+iHEhyt9uJazJ/2j3u QAQRt+B5Z4AyHuptNSi0mI4v9Rm1df2eO81bG8eqtFuWSGQfwGRy4QRNuBOarxbb/Qwp qgDg== 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:from :content-language:references:to:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=EsMX9IBFw4KgDI0eQ/LM4jZAEEAU2sAB7Cpb6RK7TbE=; fh=YrxfFM3mTNXE6ugjDoitF6lXlfi6pMaTfHZd3txhRjs=; b=Ih82IiMhjtZzqOK965C1XkrnJyKAyRd3Cz9lhe/yXRYXchQyi6wGUX4MDmidLnjtat JvP8NNX6IMc92d5dPwjuVZBYxuTFv5DMI5/J4pCrsRrOrWBG/XL6+YA/xooNMgqKrosh /mUxKdWu+13YMtfenPndNipd8u+/IJ/2rNq1n8163CnbhUqXarrYETRzyOgRxeQpOtdG Uj2lup8cpYAHlhmNtfCsbLf940uE3iZu9ajdktBJZm4cM9H3TtuUximmQ5mILud6EKWn qVlCbqG5kjPLDGWedB4f1o0PCvpgQZGM0VzFI86kl3F9gJ4K1XcEfSJZlp5bX8KT4rxE sb6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RV6gPY7r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id k20-20020a056a00169400b00690da053918si4058319pfc.4.2023.10.04.10.28.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 10:28:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=RV6gPY7r; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 3D25081C4AAF; Wed, 4 Oct 2023 10:28:49 -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 S243651AbjJDR2E (ORCPT + 99 others); Wed, 4 Oct 2023 13:28:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39158 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243503AbjJDR2D (ORCPT ); Wed, 4 Oct 2023 13:28:03 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3894C9E; Wed, 4 Oct 2023 10:27:59 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-9a9f139cd94so11426366b.2; Wed, 04 Oct 2023 10:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1696440477; x=1697045277; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=EsMX9IBFw4KgDI0eQ/LM4jZAEEAU2sAB7Cpb6RK7TbE=; b=RV6gPY7r/LhxUFFemMVmK58WiZOSuYgPMuAXIQPI0QStA2b9oHezOYF5NILQoUgeIm 5gM06NmeCtvq7e7EhWIXRv8sHd7EoMJlbCAAb/TKsL7paTKdiv4WWESpCxPttiipT0bt nUpX/JbdvzM/ZaVgBbBVuRObJCYsPCl6brLqdrM+gFUVRdlrsqNbX3EydVGwWUKGOVvT 1Ies55oANhAsrMiGUxZRDlnKrlBL1jFUVNM0UIGduWnhEaTBKLlsDQip59mR5d6c+Itt XpQPYvXAG4CD4jkpKuWc1qQ724GKvmUlrv5eYg/hmzciaqoV1QMvFY0fpzx7qPxeEipS cCgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696440477; x=1697045277; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=EsMX9IBFw4KgDI0eQ/LM4jZAEEAU2sAB7Cpb6RK7TbE=; b=Jafv3JNjtPHHZRcAlERx5cA5UcpP3Q7vwHSiD2EjVioxYYQn9D7dNdrtnhgQtjzB/u QNjOLW+ZFCUhOYV6NELPuW918RW3gjOC4nDPEAprJOBUReadrFdGhi7SbXMLzjhEkHOo DPFbSQIZlOsHkye+i84nQtbmQlRW9gSfxTiV3BFcx3KllP63I7+QNyzfMJpFe/Oam+No /88IWQ6D0S28jldKv76nJhaiIFKmE/5uQk49A5bMJEQ76/w+MK2U5uPrPKFOZROi8PWi 7D+KWkcI8kM3HNFP2JDowVcs1J1vp51ezTe1ylQ4HO12xQcUvMu7nKBffmPYgmKbZxPh PmsA== X-Gm-Message-State: AOJu0YzW6M2+yse6tKAGfVai+MGjl6tCmMsLymauromhIlieUymp2GmF atlgxwiohpcBx+jkrjaEgf0= X-Received: by 2002:a17:906:7389:b0:9ae:406c:3420 with SMTP id f9-20020a170906738900b009ae406c3420mr2351151ejl.30.1696440477236; Wed, 04 Oct 2023 10:27:57 -0700 (PDT) Received: from [192.168.3.32] (cpezg-94-253-131-161-cbl.xnet.hr. [94.253.131.161]) by smtp.gmail.com with ESMTPSA id uz5-20020a170907118500b0099cce6f7d50sm3123328ejb.64.2023.10.04.10.27.55 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 04 Oct 2023 10:27:56 -0700 (PDT) Message-ID: <32389b66-48f3-8ee8-e2f1-1613feed3cc7@gmail.com> Date: Wed, 4 Oct 2023 19:27:54 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 3/6] phy: qcom: Introduce PCIe UNIPHY 28LP driver 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> Content-Language: en-US From: Robert Marko In-Reply-To: <20231003120846.28626-4-quic_nsekar@quicinc.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, 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 10:28:49 -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 > --- > drivers/phy/qualcomm/Kconfig | 12 + > drivers/phy/qualcomm/Makefile | 1 + > .../phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c | 336 ++++++++++++++++++ > 3 files changed, 349 insertions(+) > create mode 100644 drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c > > diff --git a/drivers/phy/qualcomm/Kconfig b/drivers/phy/qualcomm/Kconfig > index d891058b7c39..b7d37cd98f02 100644 > --- a/drivers/phy/qualcomm/Kconfig > +++ b/drivers/phy/qualcomm/Kconfig > @@ -154,6 +154,18 @@ config PHY_QCOM_M31_USB > management. This driver is required even for peripheral only or > host only mode configurations. > > +config PHY_QCOM_UNIPHY_PCIE_28LP > + bool "PCIE UNIPHY 28LP PHY driver" > + depends on ARCH_QCOM > + depends on HAS_IOMEM > + depends on OF > + select GENERIC_PHY > + help > + Enable this to support the PCIe UNIPHY 28LP phy transceiver that > + is used with PCIe controllers on Qualcomm IPQ5018 chips. It > + handles PHY initialization, clock management required after > + resetting the hardware and power management. > + > config PHY_QCOM_USB_HS > tristate "Qualcomm USB HS PHY module" > depends on USB_ULPI_BUS > diff --git a/drivers/phy/qualcomm/Makefile b/drivers/phy/qualcomm/Makefile > index ffd609ac6233..31105cd17bc9 100644 > --- a/drivers/phy/qualcomm/Makefile > +++ b/drivers/phy/qualcomm/Makefile > @@ -17,6 +17,7 @@ obj-$(CONFIG_PHY_QCOM_QMP_USB_LEGACY) += phy-qcom-qmp-usb-legacy.o > obj-$(CONFIG_PHY_QCOM_QUSB2) += phy-qcom-qusb2.o > obj-$(CONFIG_PHY_QCOM_SNPS_EUSB2) += phy-qcom-snps-eusb2.o > obj-$(CONFIG_PHY_QCOM_EUSB2_REPEATER) += phy-qcom-eusb2-repeater.o > +obj-$(CONFIG_PHY_QCOM_UNIPHY_PCIE_28LP) += phy-qcom-uniphy-pcie-28lp.o > obj-$(CONFIG_PHY_QCOM_USB_HS) += phy-qcom-usb-hs.o > obj-$(CONFIG_PHY_QCOM_USB_HSIC) += phy-qcom-usb-hsic.o > obj-$(CONFIG_PHY_QCOM_USB_HS_28NM) += phy-qcom-usb-hs-28nm.o > diff --git a/drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c b/drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c > new file mode 100644 > index 000000000000..5ef6ae7276cf > --- /dev/null > +++ b/drivers/phy/qualcomm/phy-qcom-uniphy-pcie-28lp.c > @@ -0,0 +1,336 @@ > +// SPDX-License-Identifier: GPL-2.0+ > +/* > + * Copyright (c) 2023, The Linux Foundation. All rights reserved. > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +#define PIPE_CLK_DELAY_MIN_US 5000 > +#define PIPE_CLK_DELAY_MAX_US 5100 > +#define CDR_CTRL_REG_1 0x80 > +#define CDR_CTRL_REG_2 0x84 > +#define CDR_CTRL_REG_3 0x88 > +#define CDR_CTRL_REG_4 0x8C > +#define CDR_CTRL_REG_5 0x90 > +#define CDR_CTRL_REG_6 0x94 > +#define CDR_CTRL_REG_7 0x98 > +#define SSCG_CTRL_REG_1 0x9c > +#define SSCG_CTRL_REG_2 0xa0 > +#define SSCG_CTRL_REG_3 0xa4 > +#define SSCG_CTRL_REG_4 0xa8 > +#define SSCG_CTRL_REG_5 0xac > +#define SSCG_CTRL_REG_6 0xb0 > +#define PCS_INTERNAL_CONTROL_2 0x2d8 > + > +#define PHY_MODE_FIXED 0x1 > + > +enum qcom_uniphy_pcie_type { > + PHY_TYPE_PCIE = 1, > + PHY_TYPE_PCIE_GEN2, > + PHY_TYPE_PCIE_GEN3, > +}; > + > +struct uniphy_regs { > + unsigned int offset; > + unsigned int val; > +}; > + > +struct uniphy_pcie_data { > + int lanes; > + /* 2nd lane offset */ > + int lane_offset; > + unsigned int phy_type; > + const struct uniphy_regs *init_seq; > + unsigned int init_seq_num; > +}; > + > +struct qcom_uniphy_pcie { > + struct phy phy; > + struct device *dev; > + const struct uniphy_pcie_data *data; > + struct clk_bulk_data *clks; > + int num_clks; > + struct reset_control *resets; > + void __iomem *base; > +}; > + > +#define phy_to_dw_phy(x) container_of((x), struct qca_uni_pcie_phy, phy) > + > +static const struct uniphy_regs ipq5018_regs[] = { > + { > + .offset = SSCG_CTRL_REG_4, > + .val = 0x1cb9, > + }, > + { > + .offset = SSCG_CTRL_REG_5, > + .val = 0x023a, > + }, > + { > + .offset = SSCG_CTRL_REG_3, > + .val = 0xd360, > + }, > + { > + .offset = SSCG_CTRL_REG_1, > + .val = 0x1, > + }, > + { > + .offset = SSCG_CTRL_REG_2, > + .val = 0xeb, > + }, > + { > + .offset = CDR_CTRL_REG_4, > + .val = 0x3f9, > + }, > + { > + .offset = CDR_CTRL_REG_5, > + .val = 0x1c9, > + }, > + { > + .offset = CDR_CTRL_REG_2, > + .val = 0x419, > + }, > + { > + .offset = CDR_CTRL_REG_1, > + .val = 0x200, > + }, > + { > + .offset = PCS_INTERNAL_CONTROL_2, > + .val = 0xf101, > + }, > +}; > + > +static const struct uniphy_pcie_data ipq5018_2x2_data = { > + .lanes = 2, > + .lane_offset = 0x800, > + .phy_type = PHY_TYPE_PCIE_GEN2, > + .init_seq = ipq5018_regs, > + .init_seq_num = ARRAY_SIZE(ipq5018_regs), > +}; > + > +static void qcom_uniphy_pcie_init(struct qcom_uniphy_pcie *phy) > +{ > + const struct uniphy_pcie_data *data = phy->data; > + const struct uniphy_regs *init_seq; > + void __iomem *base = phy->base; > + int lane = 0; > + int i; > + > + while (lane != data->lanes) { > + init_seq = data->init_seq; > + > + for (i = 0; i < data->init_seq_num; i++, init_seq++) > + writel(init_seq->val, base + init_seq->offset); > + > + if (data->lanes == 2) > + base = base + data->lane_offset; > + > + lane++; > + } > +} > + > +static int qcom_uniphy_pcie_power_off(struct phy *x) > +{ > + struct qcom_uniphy_pcie *phy = phy_get_drvdata(x); > + > + reset_control_assert(phy->resets); > + > + clk_bulk_disable_unprepare(phy->num_clks, phy->clks); > + > + return 0; > +} > + > +static int qcom_uniphy_pcie_power_on(struct phy *x) > +{ > + int ret; > + struct qcom_uniphy_pcie *phy = phy_get_drvdata(x); > + > + ret = reset_control_assert(phy->resets); > + if (ret) { > + dev_err(phy->dev, "reset assert failed (%d)\n", ret); > + return ret; > + } > + > + /* > + * Delay periods before and after reset deassert are working values > + * from downstream Codeaurora kernel > + */ > + usleep_range(100, 150); > + > + ret = reset_control_deassert(phy->resets); > + if (ret) { > + dev_err(phy->dev, "reset deassert failed (%d)\n", ret); > + return ret; > + } > + > + usleep_range(PIPE_CLK_DELAY_MIN_US, PIPE_CLK_DELAY_MAX_US); > + > + ret = clk_bulk_prepare_enable(phy->num_clks, phy->clks); > + if (ret) { > + dev_err(phy->dev, "clk prepare and enable failed %d\n", ret); > + return ret; > + } > + > + usleep_range(30, 50); > + > + qcom_uniphy_pcie_init(phy); > + return 0; > +} > + > +static int qcom_uniphy_pcie_get_resources(struct platform_device *pdev, > + struct qcom_uniphy_pcie *phy) > +{ > + struct resource *res; > + > + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > + phy->base = devm_ioremap_resource(phy->dev, res); > + if (IS_ERR(phy->base)) { > + dev_err(phy->dev, "cannot get phy registers\n"); > + return PTR_ERR(phy->base); > + } > + > + phy->num_clks = devm_clk_bulk_get_all(phy->dev, &phy->clks); > + if (phy->num_clks < 0) > + return phy->num_clks; > + > + phy->resets = devm_reset_control_array_get_exclusive(phy->dev); > + if (IS_ERR(phy->resets)) > + return PTR_ERR(phy->resets); > + > + return 0; > +} > + > +/* > + * Register a fixed rate pipe clock. > + * > + * The _pipe_clksrc generated by PHY goes to the GCC that gate > + * controls it. The _pipe_clk coming out of the GCC is requested > + * by the PHY driver for its operations. > + * We register the _pipe_clksrc here. The gcc driver takes care > + * of assigning this _pipe_clksrc as parent to _pipe_clk. > + * Below picture shows this relationship. > + * > + * +---------------+ > + * | PHY block |<<---------------------------------------+ > + * | | | > + * | +-------+ | +-----+ | > + * I/P---^-->| PLL |---^--->pipe_clksrc--->| GCC |--->pipe_clk---+ > + * clk | +-------+ | +-----+ > + * +---------------+ > + */ > +static int phy_pipe_clk_register(struct qcom_uniphy_pcie *phy, > + struct device_node *np) > +{ > + struct clk_fixed_rate *fixed; > + struct clk_init_data init = { }; > + int ret; > + > + ret = of_property_read_string(np, "clock-output-names", &init.name); > + if (ret) { > + dev_err(phy->dev, "%pOFn: No clock-output-names\n", np); > + return ret; > + } > + > + fixed = devm_kzalloc(phy->dev, sizeof(*fixed), GFP_KERNEL); > + if (!fixed) > + return -ENOMEM; > + > + init.ops = &clk_fixed_rate_ops; > + fixed->fixed_rate = 125000000; > + fixed->hw.init = &init; > + > + ret = devm_clk_hw_register(phy->dev, &fixed->hw); > + if (ret) > + return ret; > + > + ret = devm_of_clk_add_hw_provider(phy->dev, of_clk_hw_simple_get, > + &fixed->hw); > + if (ret) > + return ret; > + > + return 0; > +} > + > +static const struct of_device_id qcom_uniphy_pcie_id_table[] = { > + { > + .compatible = "qcom,ipq5018-uniphy-pcie-gen2x2", > + .data = &ipq5018_2x2_data, Hi, did you also forget the single lane PHY? As you have the "qcom,ipq5018-uniphy-pcie-gen2x1" compatible used later in the DTS but its not implemented in the driver at all. Regards, Robert > + }, > + { /* Sentinel */ }, > +}; > +MODULE_DEVICE_TABLE(of, qcom_uniphy_pcie_id_table); > + > +static const struct phy_ops pcie_ops = { > + .power_on = qcom_uniphy_pcie_power_on, > + .power_off = qcom_uniphy_pcie_power_off, > + .owner = THIS_MODULE, > +}; > + > +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; > + } > + > + 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, > + .of_match_table = qcom_uniphy_pcie_id_table, > + }, > +}; > + > +module_platform_driver(qcom_uniphy_pcie_driver); > + > +MODULE_ALIAS("platform:qcom-uniphy-pcie"); > +MODULE_LICENSE("Dual BSD/GPL"); > +MODULE_DESCRIPTION("PCIE QCOM UNIPHY driver");