From patchwork Thu Jun 27 00:41:29 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Serge Semin X-Patchwork-Id: 13713580 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 23623C30653 for ; Thu, 27 Jun 2024 00:42:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=L/DzP68lfgVfGdnzI91xR3ftLlGlC3/UD2QyQGN9bLk=; b=DBomnxvuc+XxOa3Qf3qZZ24vel fZkkaq0rxCZNqD1Yc7q+Vjw/LUh3bY8G2gyhgguNHHAI8pgurTdOvcSDf24evfMyxwXaqpIJPsiKj OuZ81n7dUWRVDUQOA9ysCjKn406mdcUO/lZnezTBVra0EEnhnd0WsPuFxFmJg2ZTofdrf5mn8iQi1 i2APCUiZhkXkFLDv0CkCCzOSUikOfVFh3m82QeVVazmw/MgBHo7NL7xoqQUnFbW5TRvMXc8MMnzMg 3Z0JR+s6XvWJMYjEYKzXI7JF5cYh9gCJgNDu+i6Z9SIRtdo2Q/gM3zOIqgBfl8OUX+pzsIEftXwyB MerNV5Bw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMdDZ-00000008l7Z-1t8b; Thu, 27 Jun 2024 00:42:29 +0000 Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMdDQ-00000008l3u-2nnT for linux-arm-kernel@lists.infradead.org; Thu, 27 Jun 2024 00:42:23 +0000 Received: by mail-lf1-x12f.google.com with SMTP id 2adb3069b0e04-52cd6784aa4so6797860e87.3 for ; Wed, 26 Jun 2024 17:42:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719448939; x=1720053739; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=L/DzP68lfgVfGdnzI91xR3ftLlGlC3/UD2QyQGN9bLk=; b=NMZExMu0LOkIUBGbgGJdpc+AqCUphUOpajM45NiSp6C9qoM+BWbF+YWh7xQQJOtfgq 8rnsVIHl3W7JBAAHEJSlMDh3oocwRJ5xnMuzFh62Z0Nh/nQYUlaCGq7+96mj7yEO/0Ec Sp2IRF9e/Uez/eMmPtrCzxtUETYnvCIxhosdz4X7I7MElRMET8DPHnytSwrNvvI8OVVo XqGhZbq2YWzSk208ajrxVa5xI8YeYKCJR3WSNDWZYi9TaRuNfKWiaoFY3jlI9YvmuGrF 4WT6sJGV0xHVOA+7Sgk+rbXmbxe5YM5wP6hho4q9clrpVn4v50W9HUutmgZR82yPeyUs T9Ew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719448939; x=1720053739; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=L/DzP68lfgVfGdnzI91xR3ftLlGlC3/UD2QyQGN9bLk=; b=DKH+LNuvIDRIPE9eZ81U/rEs3sRweReqDm7i4wdeswCbN3CJhjId++fBhHs3Tu4mdb WrZLNb6UUz2rsog0CnnsUvhdWmhxps2Dt9tb62zFl/5uPli1UvXN3nuTixzVCWgsHOV8 V9mvPMB/7pdzXSMZP3G3m+ncv7BXiW6WAfoE1a8bBExe2CdiCiuSUngmPvSJAJB1T8U5 KFiCjOwZ589uVxQN64sYJ7sXhAUCgksGbeujgvxQclqIbcZ8xOs0hEj+dhWggyA+pKkN KvQqsdsK8L+0N5tVG92RigR170SoyEWSDwAQfqh0dle3DVHNSJhiXzXoJXx4ochiStJ9 lnvw== X-Forwarded-Encrypted: i=1; AJvYcCW+l73YW8CdY3+91n7ZtQozBgX1kqKGBfG//PyP3Jujm9n50Or2/ksXf8q/k1e15xbKrCgFInhpsxTqyalMDR3k9+MpRAVvKjy/0qhB6As4apZ6eTQ= X-Gm-Message-State: AOJu0YwmDLRpXEF0oSSB50AWusy62RWHfe++2IIIVuDEfHcrARqxxJ/S nIIbp+sDPAnliMtPROE0iUcNusmV7zZAqY4DDSHDclOaV0yGZLjM X-Google-Smtp-Source: AGHT+IGAA2BO5YOL7taM3d9DMMHzx/LRxPmbgipRcJNYHxa+dWLbnw4m2lzAlZ/2X5OQLvSi1Es+Aw== X-Received: by 2002:a05:6512:3130:b0:52b:8ef7:bf1f with SMTP id 2adb3069b0e04-52ce183427cmr7043084e87.17.1719448938737; Wed, 26 Jun 2024 17:42:18 -0700 (PDT) Received: from localhost ([89.113.147.248]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52e712b2f5esm20801e87.86.2024.06.26.17.42.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jun 2024 17:42:18 -0700 (PDT) From: Serge Semin To: Andrew Lunn , Heiner Kallweit , Russell King , Alexandre Torgue , Jose Abreu , Jose Abreu , Vladimir Oltean , Florian Fainelli , Maxime Chevallier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin Cc: Serge Semin , Sagar Cheluvegowda , Abhishek Chauhan , Andrew Halaney , Jiawen Wu , Mengyuan Lou , Tomer Maimon , openbmc@lists.ozlabs.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH net-next v3 09/10] net: stmmac: Create DW XPCS device with particular address Date: Thu, 27 Jun 2024 03:41:29 +0300 Message-ID: <20240627004142.8106-10-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240627004142.8106-1-fancer.lancer@gmail.com> References: <20240627004142.8106-1-fancer.lancer@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240626_174220_742311_4A83CDB4 X-CRM114-Status: GOOD ( 20.37 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Currently the only STMMAC platform driver using the DW XPCS code is the Intel mGBE device driver. (It can be determined by finding all the drivers having the stmmac_mdio_bus_data::has_xpcs flag set.) At the same time the low-level platform driver masks out the DW XPCS MDIO-address from being auto-detected as PHY by the MDIO subsystem core. Seeing the PCS MDIO ID is known the procedure of the DW XPCS device creation can be simplified by dropping the loop over all the MDIO IDs. From now the DW XPCS device descriptor will be created for the MDIO-bus address pre-defined by the platform drivers via the stmmac_mdio_bus_data::pcs_mask field. Note besides this shall speed up a bit the Intel mGBE probing. Signed-off-by: Serge Semin --- Changelog v2: - This is a new patch introduced on v2 stage of the review. Changelog v3: - Convert the stmmac_mdio_bus_data::has_xpcs and stmmac_mdio_bus_data::xpcs_addr fields to a single stmmac_mdio_bus_data::pcs_mask. --- .../net/ethernet/stmicro/stmmac/dwmac-intel.c | 2 +- .../net/ethernet/stmicro/stmmac/stmmac_mdio.c | 19 ++++++------------- include/linux/stmmac.h | 2 +- 3 files changed, 8 insertions(+), 15 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c index 56649edb18cd..ebca8e61087f 100644 --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c @@ -585,7 +585,7 @@ static int intel_mgbe_common_data(struct pci_dev *pdev, /* Intel mgbe SGMII interface uses pcs-xcps */ if (plat->phy_interface == PHY_INTERFACE_MODE_SGMII || plat->phy_interface == PHY_INTERFACE_MODE_1000BASEX) { - plat->mdio_bus_data->has_xpcs = true; + plat->mdio_bus_data->pcs_mask = BIT(INTEL_MGBE_XPCS_ADDR); plat->mdio_bus_data->default_an_inband = true; } diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c index aa43117134d3..74de6ec00bbf 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c @@ -499,8 +499,7 @@ int stmmac_pcs_setup(struct net_device *ndev) { struct dw_xpcs *xpcs = NULL; struct stmmac_priv *priv; - int ret = -ENODEV; - int mode, addr; + int addr, mode, ret; priv = netdev_priv(ndev); mode = priv->plat->phy_interface; @@ -508,16 +507,10 @@ int stmmac_pcs_setup(struct net_device *ndev) if (priv->plat->pcs_init) { ret = priv->plat->pcs_init(priv); } else if (priv->plat->mdio_bus_data && - priv->plat->mdio_bus_data->has_xpcs) { - /* Try to probe the XPCS by scanning all addresses */ - for (addr = 0; addr < PHY_MAX_ADDR; addr++) { - xpcs = xpcs_create_mdiodev(priv->mii, addr, mode); - if (IS_ERR(xpcs)) - continue; - - ret = 0; - break; - } + priv->plat->mdio_bus_data->pcs_mask) { + addr = ffs(priv->plat->mdio_bus_data->pcs_mask) - 1; + xpcs = xpcs_create_mdiodev(priv->mii, addr, mode); + ret = PTR_ERR_OR_ZERO(xpcs); } else { return 0; } @@ -610,7 +603,7 @@ int stmmac_mdio_register(struct net_device *ndev) snprintf(new_bus->id, MII_BUS_ID_SIZE, "%s-%x", new_bus->name, priv->plat->bus_id); new_bus->priv = ndev; - new_bus->phy_mask = mdio_bus_data->phy_mask; + new_bus->phy_mask = mdio_bus_data->phy_mask | mdio_bus_data->pcs_mask; new_bus->parent = priv->device; err = of_mdiobus_register(new_bus, mdio_node); diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h index 8f0f156d50d3..ec05c881b1f4 100644 --- a/include/linux/stmmac.h +++ b/include/linux/stmmac.h @@ -82,7 +82,7 @@ struct stmmac_priv; struct stmmac_mdio_bus_data { unsigned int phy_mask; - unsigned int has_xpcs; + unsigned int pcs_mask; unsigned int default_an_inband; int *irqs; int probed_phy_irq; From patchwork Thu Jun 27 00:41:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Serge Semin X-Patchwork-Id: 13713579 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 801A1C41513 for ; Thu, 27 Jun 2024 00:42:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:Cc:To:From: Reply-To:Content-Type:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=wGa0V/+q1PY+8AtdQff4+HTCc2sbpBqj/v0lwdLsGCU=; b=lHmTyeEPTdKV0aIjYD3j9FbsHg cm81SHsxloAIBK8XoPKmAxE1j1ZIVNJqDjHM7n8h542HTv9wRxmyF6yel35K7ObzBJhBzBUqY/cBe mTcCUZEaI7RF6sX17oOQpPWymPqib7arh/7sTeHNj4uzjp19h2zB/c5pBh9akVhhpchsbZB248ZZX Ir5BGQFajAPiEGIfePqrDvGGaxhjHU7r/de53J5MpWcSiPSyEWf0kx+LO0pBOhaNM1MxEliY1jtjL JxRMTXYxUtvm8y10Hf7s5/nveLItmmK1AWPfZlHnoeuUA7VeRh6dsL/ky+Z+w2jgOtIsVtgIJHXKF F6HtAbng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMdDe-00000008l8j-1EZa; Thu, 27 Jun 2024 00:42:34 +0000 Received: from mail-lf1-x133.google.com ([2a00:1450:4864:20::133]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sMdDS-00000008l4y-2Anl for linux-arm-kernel@lists.infradead.org; Thu, 27 Jun 2024 00:42:24 +0000 Received: by mail-lf1-x133.google.com with SMTP id 2adb3069b0e04-52ce01403f6so4685613e87.0 for ; Wed, 26 Jun 2024 17:42:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1719448941; x=1720053741; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=wGa0V/+q1PY+8AtdQff4+HTCc2sbpBqj/v0lwdLsGCU=; b=kRMNeuSBNNJX498nRRr7wTzSZW1bk99Rq+jJLVGOM9mRcH5eqPXVQsAHiIsvm6wnxA B3S4r6sUz9wbuMSsH2jJCEjtq3Rnhd6gStODjdliLTVlngT94xCpWa6uh0ZF2ljvaUGG vgtTdZqrAZETOq2QEYqC9FLI6ddCbQXfllvcQRQY2qQuac7joHSbwRmOb3zu9UPU9VPO ctkzmrq8IOyYuSHoQf/gnDG6Mqonffkg9UpdK2A8STTiaXhojJSWdCAf2V47sqm+/zk3 +SWxGEafkhpnkpJYwCYh007ONXKdegAthltmk07zm4NgDNB/KOQgBiEaA4f6v9pDc6T5 jwng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719448941; x=1720053741; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wGa0V/+q1PY+8AtdQff4+HTCc2sbpBqj/v0lwdLsGCU=; b=BdNiQ9sJtIXkZBK4rdLJEiGsUTHx3plY2kYV+V06rn8xvs7m753gvjok+W4mX4M3zd NM7Essz+/ZI/umEgGF0cvmRNzv/NhlFwobUPzpb3tsQjOqy/9moWaUO7irXedi/MivVw 4mBepGBHhTeU72hSlLJzNkD0UJ2wF5veR/4waLMiEqn8AczLJpXp0j6pICQsydWZts6+ Awq50JeY1+bG53cQQCi6i1TD2vmFtJpFegJ9tElmWHbI2HhgdeuNaKOaONE1qoiex0JH GQoEmArgJVhovKRX2aQ39B/Ij+Z6A9K1TqfZyA9eiIJxGCDAzbbdIk4WspmiEs21QfUU jZWQ== X-Forwarded-Encrypted: i=1; AJvYcCVJOUwVbl7ui7vnTZfUV8m9uq1Zz/3eLc+3hatuZMtOP+Pgkq5pWeagpkqzYMPkuNFbINHOcJAtWWiDbSzi3wA5W0JG8PsVKtAGX6oMbbouL3PBY50= X-Gm-Message-State: AOJu0YzeWBQpuHqacrPk2J9NzkMCtaD5k15fN6ul5Xaiu4GWXAN4xuFI 157iV59yezgcicbMsY9ffSIfnmcUzRJ7+D8I8fq11gS5I7HqcMXF X-Google-Smtp-Source: AGHT+IHkActpZTtjsuzyiNyp+unFcBPGmpORKiX6h3v1xsvn9qGifn4FXEoGGX308UY64dnWHiAHzA== X-Received: by 2002:ac2:46ee:0:b0:52c:dc25:d706 with SMTP id 2adb3069b0e04-52ce185ec9emr6605174e87.52.1719448940728; Wed, 26 Jun 2024 17:42:20 -0700 (PDT) Received: from localhost ([89.113.147.248]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-52e7131ec55sm18792e87.231.2024.06.26.17.42.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jun 2024 17:42:20 -0700 (PDT) From: Serge Semin To: Andrew Lunn , Heiner Kallweit , Russell King , Alexandre Torgue , Jose Abreu , Jose Abreu , Vladimir Oltean , Florian Fainelli , Maxime Chevallier , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Maxime Coquelin Cc: Serge Semin , Sagar Cheluvegowda , Abhishek Chauhan , Andrew Halaney , Jiawen Wu , Mengyuan Lou , Tomer Maimon , openbmc@lists.ozlabs.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: [PATCH net-next v3 10/10] net: stmmac: Add DW XPCS specified via "pcs-handle" support Date: Thu, 27 Jun 2024 03:41:30 +0300 Message-ID: <20240627004142.8106-11-fancer.lancer@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240627004142.8106-1-fancer.lancer@gmail.com> References: <20240627004142.8106-1-fancer.lancer@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240626_174223_219976_18F76C0A X-CRM114-Status: GOOD ( 15.77 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Recently the DW XPCS DT-bindings have been introduced and the DW XPCS driver has been altered to support the DW XPCS registered as a platform device. In order to have the DW XPCS DT-device accessed from the STMMAC driver let's alter the STMMAC PCS-setup procedure to support the "pcs-handle" property containing the phandle reference to the DW XPCS device DT-node. The respective fwnode will be then passed to the xpcs_create_fwnode() function which in its turn will create the DW XPCS descriptor utilized in the main driver for the PCS-related setups. Signed-off-by: Serge Semin --- drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c index 74de6ec00bbf..03f90676b3ad 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c @@ -497,15 +497,22 @@ int stmmac_mdio_reset(struct mii_bus *bus) int stmmac_pcs_setup(struct net_device *ndev) { + struct fwnode_handle *devnode, *pcsnode; struct dw_xpcs *xpcs = NULL; struct stmmac_priv *priv; int addr, mode, ret; priv = netdev_priv(ndev); mode = priv->plat->phy_interface; + devnode = priv->plat->port_node; if (priv->plat->pcs_init) { ret = priv->plat->pcs_init(priv); + } else if (fwnode_property_present(devnode, "pcs-handle")) { + pcsnode = fwnode_find_reference(devnode, "pcs-handle", 0); + xpcs = xpcs_create_fwnode(pcsnode, mode); + fwnode_handle_put(pcsnode); + ret = PTR_ERR_OR_ZERO(xpcs); } else if (priv->plat->mdio_bus_data && priv->plat->mdio_bus_data->pcs_mask) { addr = ffs(priv->plat->mdio_bus_data->pcs_mask) - 1; @@ -515,10 +522,8 @@ int stmmac_pcs_setup(struct net_device *ndev) return 0; } - if (ret) { - dev_warn(priv->device, "No xPCS found\n"); - return ret; - } + if (ret) + return dev_err_probe(priv->device, ret, "No xPCS found\n"); priv->hw->xpcs = xpcs;