Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3891439pxu; Wed, 9 Dec 2020 03:20:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJym/4KOgt2BVRdn5t69v+yAUJvYvrparF5vfp649n+BrG1JiFHo3L8lcBtKO+wfN/Yh4c3J X-Received: by 2002:a17:906:178b:: with SMTP id t11mr1563771eje.152.1607512824910; Wed, 09 Dec 2020 03:20:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607512824; cv=none; d=google.com; s=arc-20160816; b=ri4wTkpdqIQV/tiUp9nHyye9Ev3SBa13g7S4W6gcpsyuKuLN2DuCE8k4p93qk1yNZW Pw3v9VD0s8nw/itPDR706KN2Vt849LXX8jHIEKRQsqlQJZ56fmbfJh74kg7kIEQRkrux qTUiEa4JlxSCt8/WRKfSL81BeVyrOKj8otEMjQCMMhp86xgT2icEhgfLKRjlHRG3m0yE RrwZy8C5WMIU0IelScJBVFxO880yygelDS1VYFIdc3lq7RJhgxaCb4/Hkx3b5U21BdUo ZyhwDV9XZ4qoyG1VWnSxQqj6N2ibO9fvjFXXs7aaBnpyJIFQavJL+wP0yQ6n8PTXIY/K IZKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from:ironport-sdr :ironport-sdr; bh=poxiYDsVr8ayN1sLV5vDDjYAsFsbCUrEOq2JubLW/lo=; b=qYMhkntn8LwM31tnoJvVBse/7UP7sbzYXXhZw2OquTT+0L0hb9SmJKY0kOEt3lmgFP 4TD5JLtclSQWmrhq12cpS3q+ppe2c/vo4R5wSZ+EStFsyIyZRmGTSuJJ+stADfWI/HmO 7bKb3dVz5GfOcTlOsQt8vlMjVGuQQyuKO/s4D0J2orUmCVXAPbaYGdpgltXNBQS8Kutj Ud4dU3TY6fvzf/GrUUMVKfucmE3ceMqYkvOHzHNOe5ORpOf/LcIcZy5peBfZ4BS67qTE 9S8NZOTlbVbW+3UT16qlJh0roUPZBIqpwLJ7ugt+mYaCHcHin1BwjUIL4n9irkjK+v/z c3Aw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jg16si571887ejc.580.2020.12.09.03.20.01; Wed, 09 Dec 2020 03:20:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730535AbgLILQ5 (ORCPT + 99 others); Wed, 9 Dec 2020 06:16:57 -0500 Received: from mga17.intel.com ([192.55.52.151]:37324 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726954AbgLILQ4 (ORCPT ); Wed, 9 Dec 2020 06:16:56 -0500 IronPort-SDR: pX558xBZYEW9rPWkL9bBTVgrI3BPoOuWKfE2/O71OwiS/KD4yO3ROGFtLjvhT2Es456jYGmDgl KNYbbYRSt6pQ== X-IronPort-AV: E=McAfee;i="6000,8403,9829"; a="153869054" X-IronPort-AV: E=Sophos;i="5.78,405,1599548400"; d="scan'208";a="153869054" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Dec 2020 03:16:16 -0800 IronPort-SDR: eee8sjsM9prCLqQtVC0BnY60zaqw2Zpdbf1FUEdxvtY2pQUkOMDpP/p5Pys6PpqEvyF3EtTul9 NA/5xNo8/d9w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,405,1599548400"; d="scan'208";a="318747975" Received: from unknown (HELO glass.png.intel.com) ([10.158.65.144]) by fmsmga007.fm.intel.com with ESMTP; 09 Dec 2020 03:16:13 -0800 From: Wong Vee Khee To: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Jakub Kicinski , Maxime Coquelin Cc: netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Ong Boon Leong , Voon Wei Feng , Wong Vee Khee Subject: [PATCH net-next 1/1] net: stmmac: allow stmmac to probe for C45 PHY devices Date: Wed, 9 Dec 2020 19:19:33 +0800 Message-Id: <20201209111933.16121-1-vee.khee.wong@intel.com> X-Mailer: git-send-email 2.17.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Assign stmmac's mdio_bus probe capabilities to MDIOBUS_C22_C45. This extends the probing of C45 PHY devices on the MDIO bus. Signed-off-by: Wong Vee Khee --- drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c index b2a707e2ef43..9f96bb7d27db 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c @@ -364,6 +364,7 @@ int stmmac_mdio_register(struct net_device *ndev) memcpy(new_bus->irq, mdio_bus_data->irqs, sizeof(new_bus->irq)); new_bus->name = "stmmac"; + new_bus->probe_capabilities = MDIOBUS_C22_C45; if (priv->plat->has_xgmac) { new_bus->read = &stmmac_xgmac2_mdio_read; -- 2.17.0