Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4341624pxu; Wed, 9 Dec 2020 14:47:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJwRJg49ZSlj+fnTRJZvfARAuGmn7qcaxWkndlVSftcxLAueHgVKPmnj+aN5MFCyGBVttrtr X-Received: by 2002:a17:906:9588:: with SMTP id r8mr3845447ejx.148.1607554032259; Wed, 09 Dec 2020 14:47:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607554032; cv=none; d=google.com; s=arc-20160816; b=n3XKiqbYt3zUOD8q8qx9ndJ6NEhoHrEUAuExITq8dgyPxBhpE/pwZX3fFFgrGI8MNE VW70r8LNNsjZWXMoUu9hDW4Kj+oZbOVlX/Xy9V/g7FMtwcxdE0Yg+lETKssXsMnXkfju K2L5FtfkWUSzuhfK7GgMXNylHGCDeu14ofgowu+OcKFEsKJ8d8I4cXLvfIiji6kWISiH Vm8OmzRp8C9PrjLcy1auGs7cWl+i52omXpTliLZ5eS307qKOYU0I28q+avb0VqXjW533 ef2mm4ZSng62sDwvApEVzrnGPeNMbVmZtJyyK2fitzaRNomMJia4FR9naeYFcQTA8C9S uSNw== 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=9iymrUvBCDSEblOJQTM9Aj8QYi8Aqd9e9x4iWTiRawU=; b=X7IYmTBp+8Qo7kD+Boin1UGQ/hD5HiR5Mrvue9ZaDD+E6dSHHzrdaNWt8ZwTHnUSda IYTSRGP3+Yzw5gGcbySweZzjz6yb8829FPqjmn/DjflT396jIWYXGpprNjqmtrHEhgRU 8lCDu+QLgEY3YiEYLT2Hvl79PyhySFzmhYcILvXTUP1tMEKtNRMHD7YHWqS91ESswPgr 3e+I/aYIKGHubbepfisBIYEVkEXYQv30tQjAROmNIay7eJot+ek86dMQVdcifrtuNYn3 AtDh39mqlx/eLtsY8d7njK3rJ1Pf4zEFSSSVvvnmADbiypAFlEsQ23YJbLP0Sfr71UCB 42YQ== 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 lz16si1488279ejb.373.2020.12.09.14.46.49; Wed, 09 Dec 2020 14:47:12 -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 S2388813AbgLIWoX (ORCPT + 99 others); Wed, 9 Dec 2020 17:44:23 -0500 Received: from mga18.intel.com ([134.134.136.126]:15832 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388242AbgLIWoX (ORCPT ); Wed, 9 Dec 2020 17:44:23 -0500 IronPort-SDR: IL8iKtOvhi15/qs6ztMwRZ+bZpWfbXOsv0lelIBlT7omlK8srjrvtLGWfFqGWyEDx8DE82MX0V 1Nz78UnCOwkg== X-IronPort-AV: E=McAfee;i="6000,8403,9830"; a="161920277" X-IronPort-AV: E=Sophos;i="5.78,407,1599548400"; d="scan'208";a="161920277" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Dec 2020 14:43:42 -0800 IronPort-SDR: CvYUj1NyjNZmuLu6KhWt70IfCjm+TvOwdSLHpjCAh8vwPJux9UaI0JDKbQtf8RqfdQpQFZoW4+ cxQHwu3hNmdQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.78,407,1599548400"; d="scan'208";a="484179333" Received: from unknown (HELO glass.png.intel.com) ([10.158.65.144]) by orsmga004.jf.intel.com with ESMTP; 09 Dec 2020 14:43:39 -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 v2 net-next 1/1] net: stmmac: allow stmmac to probe for C45 PHY devices Date: Thu, 10 Dec 2020 06:47:00 +0800 Message-Id: <20201209224700.30295-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 extended the probing of C45 PHY devices on the MDIO bus. Signed-off-by: Wong Vee Khee --- v2 changelog: - Added conditional check for gmac4. --- drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c index b2a707e2ef43..d64116e0543e 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_mdio.c @@ -365,6 +365,9 @@ int stmmac_mdio_register(struct net_device *ndev) new_bus->name = "stmmac"; + if (priv->plat->has_gmac4) + new_bus->probe_capabilities = MDIOBUS_C22_C45; + if (priv->plat->has_xgmac) { new_bus->read = &stmmac_xgmac2_mdio_read; new_bus->write = &stmmac_xgmac2_mdio_write; -- 2.17.0