Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4095087pxu; Wed, 9 Dec 2020 08:14:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJyClo9Y4SOPbfhEMlAGwamjvLVwgDC3PPlZ352e70L11ggQclT5EnS32JHikHe+wliHuvbJ X-Received: by 2002:a17:906:4d17:: with SMTP id r23mr2830194eju.87.1607530499329; Wed, 09 Dec 2020 08:14:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607530499; cv=none; d=google.com; s=arc-20160816; b=cc7eTvMqit5qf7MUrsl87OJz2ZpXJT71DqsBpLghq8/8K6p/q4dpaj3GzOBUtLmpei HaRovJr8QU8DIFs6M0ikof4X7bb19+6uPEiX1T/yZgTeCRJxE1rpv46cOn+qGCGwz/yi h90lGL8QppiCEsKDXwLEuHmh4UQpDLkNbWHB7vKay2Sdls09YE0UcIk5dEb/Iwqhq1w/ 0xO92b60OfLGQZ+E4tdFlDP5T3reXYgVzWTmdj0c6qv1xV1GgdN4JVpwkrGIjTjn7ruK +y6K9G2xPPzeuu+0gJ3PXaLQDLPnH/zZpUToq7Mv63gEOCXz7fCchnFp0mNB5p63shOa YoRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=fipZl5uCSfpjBwhFw+Tu/HVyI847gMCd2EVKajyVQks=; b=lqP7LUgQtHwaPe4glm7ShfXLSxgN48Uma6a91rVWyRx96HShP/me+Ph0CdVCSt29Lt bDcRHfEgLcSL9EBkCvm/O5iQ+pH8tAr0ZZ8k5pbhstkmEidanf0Ibns2J1UdUEe2JWGR VrsSvuO1rz8SyoYRzonbmoHyCzjYp7yQ5lt0tgvVqJbvqG6eCtSlMRQdX9NOkMXR4Mkt rZfoWnZzvQ2qlaazQL6K2ftS0RcMbMyg4iLBI02YBuDjqnE93fCzfZjocKe+dlzgp2qq 3x2Gf/A851g90FZDpabCVjhnY3WYTHvVnX52u6K91jvvf4ww4Ayodr1DtyRl41t+fpKH cKvQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z40si1084058ede.39.2020.12.09.08.14.34; Wed, 09 Dec 2020 08:14:59 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730007AbgLIQK3 (ORCPT + 99 others); Wed, 9 Dec 2020 11:10:29 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:46750 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729519AbgLIQKT (ORCPT ); Wed, 9 Dec 2020 11:10:19 -0500 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kn21v-00B5Hf-Q6; Wed, 09 Dec 2020 17:09:27 +0100 Date: Wed, 9 Dec 2020 17:09:27 +0100 From: Andrew Lunn To: Wong Vee Khee Cc: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Jakub Kicinski , Maxime Coquelin , Voon Wei Feng , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Ong Boon Leong , linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH net-next 1/1] net: stmmac: allow stmmac to probe for C45 PHY devices Message-ID: <20201209160927.GC2602479@lunn.ch> References: <20201209111933.16121-1-vee.khee.wong@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201209111933.16121-1-vee.khee.wong@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 09, 2020 at 07:19:33PM +0800, Wong Vee Khee wrote: > 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; It looks like this needs to be conditional on the version. xgmax2 supports C45. And gmac4. But other versions don't. Andrew