Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1582445rdb; Thu, 7 Dec 2023 03:27:38 -0800 (PST) X-Google-Smtp-Source: AGHT+IFHlZggvcKbZUdcyC99HMyvZrsAfWqo2k7lBNwPBkk/TdRPPGfb7EbPtkZaTzUdH+EC40A7 X-Received: by 2002:a17:903:230e:b0:1d0:cf22:c6ca with SMTP id d14-20020a170903230e00b001d0cf22c6camr2642899plh.52.1701948458469; Thu, 07 Dec 2023 03:27:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701948458; cv=none; d=google.com; s=arc-20160816; b=SHyd7wkp/QBfXK2TngAdIW3ahhEOC619lNIW15N4kplxQMVeTlQGRulUcFetHitz0z AE4c6OlHaw1TwjXsWk8Z0xH526IlAv4Mu67SpREfGCVlW9g/MFfB+1SZmg28dRrPkNBY 6H9a44uDPjjdoy8LTooX7KuzkAHK6IzQn589sUbJRxLKKtYkm1u/fEbSNcD2S7qSlGU0 iP4wYkeyU/S72ZSgfOuF44x4fZQLa3cg4AvbkMDdsTWQW2lXxyGVQrXDMxKFyvZizFGf hkmDffg+ib8EOAxdq4x096vGWCoegT4XgUBFPCVpRZjfuCRsY9rq+ejpLp2mOEHirJql Gr5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=pkhKb9cna+Ui8j44O1HcDJ/iUVeFsHwWP3sKQpboDq8=; fh=Bd07Nsc/H6raZm/RAWh3fvYmiHlgBrjmxdIX4xchpRI=; b=u/G0++p/RmXOMDnC3LRKRaayaj6J3qKH5k4GoRVWh1cuvGCQhepZS+CbebV1Jv2NOo GSiRMtO2XFgGgYjHRHAURv63m+LtwJ5RUDT8Kikl+jSFxwiIXRg88uvzLrU321vs2n+d Tb0yDhbKEFxLdYftdEM63gnqvCA0nP9dPEJ/6MTVmvMVY39ZmsLK/wqgAlftPMEDCBni 9xrZaXiNOoIpwnW8w+A3TllaATdaz2qWX6S4oi0WzzOg8Isq/1hisWPw84azyClcc15f hynyKqZghj98eVqIqgKfADVxYjQxso2lyUXDx8dno8D0MHpaXFZFvNG542nVN11wBwbR HJCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=hKmLcNgG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id f18-20020a170902e99200b001d07c56fd79si956166plb.638.2023.12.07.03.27.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 03:27:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=hKmLcNgG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id C95AE8041C04; Thu, 7 Dec 2023 03:27:35 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232411AbjLGL1P (ORCPT + 99 others); Thu, 7 Dec 2023 06:27:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232395AbjLGL1O (ORCPT ); Thu, 7 Dec 2023 06:27:14 -0500 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) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-GND-Sasl: maxime.chevallier@bootlin.com X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 07 Dec 2023 03:27:36 -0800 (PST) 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