From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="hKmLcNgG" Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFB9110C3; Thu, 7 Dec 2023 03:27:19 -0800 (PST) Received: by mail.gandi.net (Postfix) with ESMTPSA id 67271E0002; Thu, 7 Dec 2023 11:27:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1701948438; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=pkhKb9cna+Ui8j44O1HcDJ/iUVeFsHwWP3sKQpboDq8=; b=hKmLcNgG1Wz6oLkUF3olTFFphoSS+buonhnO6I+jekfB43jFFCevz8DZoyWcmaWlHAK/qI L/ldUATCqbPpsyUN/Ohb8Uz+3JtmVslehv80JbA//Ievye4Dl8GDy6w7Qi2im+HBbZDNIY xm0HYQRIoYBN3Is5ao/Zv2lZGQtibOQNf7Kx15ts649aNZOVfp5i9LXeVqBDxyc6E1bVKf VRCBgapMc21RwnrjhKYWY9q11ttKWmWAAQ77Z2fs2TpCkhXknmZlVgRLPsKgeU0uejHGof hN2+wZ2ZMlaOdQnCRIMjH1LFrJpLrZdKRMmZGtpx05rt9AQ5tWHODd0UuvCgHg== Date: Thu, 7 Dec 2023 12:27:16 +0100 From: Maxime Chevallier To: Stefan Eichenberger Cc: mw@semihalf.com, linux@armlinux.org.uk, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net: mvpp2: add support for mii Message-ID: <20231207122716.7ff58c91@device.home> In-Reply-To: References: <20231206160125.2383281-1-eichest@gmail.com> <20231206182705.3ff798ad@device.home> Organization: Bootlin X-Mailer: Claws Mail 4.1.1 (GTK 3.24.38; x86_64-redhat-linux-gnu) Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-GND-Sasl: maxime.chevallier@bootlin.com Hello Stefan, On Thu, 7 Dec 2023 10:01:08 +0100 Stefan Eichenberger wrote: > Hi Maxime, > > On Wed, Dec 06, 2023 at 06:27:05PM +0100, Maxime Chevallier wrote: > > > @@ -6973,6 +6988,9 @@ static int mvpp2_port_probe(struct platform_device *pdev, > > > port->phylink_config.supported_interfaces); > > > __set_bit(PHY_INTERFACE_MODE_SGMII, > > > port->phylink_config.supported_interfaces); > > > + } else if (phy_mode == PHY_INTERFACE_MODE_MII) { > > > + __set_bit(PHY_INTERFACE_MODE_100BASEX, > > > + port->phylink_config.supported_interfaces); > > > > Can you explain that part ? I don't understand why 100BaseX is being > > reported as a supported mode here. This whole section of the function > > is about detecting what can be reported based on the presence or not of > > a comphy driver / hardcoded comphy config. I don't think the comphy > > here has anything to do with MII / 100BaseX > > > > If 100BaseX can be carried on MII (which I don't know), shouldn't it be > > reported no matter what ? > > I missunderstood that part, I thought it is a translation from interface > type to speed but it is obviously not. I already verfied that everything > works without this part and will remove it in version 2 of the patch. > Thanks a lot for the review! No problem, thanks for the patch :) Maxime