Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1518192rdb; Thu, 7 Dec 2023 01:02:46 -0800 (PST) X-Google-Smtp-Source: AGHT+IFS9DHG3+LKFlFd5Mx/FrZh4v/m3JHlJfSifj9ST11FonIZhUUkchcjtKuKb9kqv8VfgxUR X-Received: by 2002:a17:903:22cf:b0:1d0:6ffd:e2e0 with SMTP id y15-20020a17090322cf00b001d06ffde2e0mr2617325plg.122.1701939766603; Thu, 07 Dec 2023 01:02:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701939766; cv=none; d=google.com; s=arc-20160816; b=iFw+ox3d0hjct+RF5a3oGJZFEJZxKe/O0ESE3ohbgc3LKRF7R1OoBtFoaW7qkpn4Wy 6EYHspSOiaBdDvK21DKz7GoyA3KdhR9xDZG4IBLjJ7QJMy8rcq1eGaIWkvRzkXa/Viy/ Dj2/s2Cnk6y9pffMBcs6dsiSLCTdSwteBtI3FOnOtfZaGCTS/YVOSIYryAwZin41J3Eo 9qygdesisQeGOZkrx0EOLEDbcIn8pdvUuhh3hihiHy8GNqeTve4WoI3mOtRuvMmRCxkq Y5ZfcTT6/9qG5Ps2gvCgphRyrqSIJsQL8t87OBG2sKwzV9Kx8AH5DSVEEO0QHs0ecjfg AIdg== 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:dkim-signature; bh=qKsrC2p/dEstQQ0QtE5+II/Axy3OGpRA/lKlIyxGMfU=; fh=fAAiZjaB5qgFmESW549ZjUJPYxr9CBAIh0/4pjqyIsY=; b=BNjeuKigz4p8wmzHp6ajoy4dHx3rcuUIw54f9yBIDEoj6cZn6TpmBgpLYrXAbtWTrg rQxwVZLejOEt5/YAAiHRWzqQgIj0nKLrI2BnSpXEkrY/+T9UgFZ4naVGAALiIlScVxsL tqfAh19uBCYzdz2aL92gpLrnLJgHhaESZkId6mbMt3TG24Ku3db/zwq3vd1j3IxP5mTQ vhxE6JcG6GWuXmSGU1wZp+ONADrRV1JOrhJKhd9xAeLHRHO9Epe0he2THkAbWETWLwhk u4IXfZ+60WLWhtH/Z+i73tyKdaCspkD/aCbpBg+bQHwbi2UZ62gGz+OMMRv6nKR5ACKT BWiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=P50b6a6E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id iz17-20020a170902ef9100b001cfb971ee05si785421plb.78.2023.12.07.01.02.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 01:02:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=P50b6a6E; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 85E1B807EDB2; Thu, 7 Dec 2023 01:01:26 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229379AbjLGJBL (ORCPT + 99 others); Thu, 7 Dec 2023 04:01:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51970 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229775AbjLGJBH (ORCPT ); Thu, 7 Dec 2023 04:01:07 -0500 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7521B19A; Thu, 7 Dec 2023 01:01:13 -0800 (PST) Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-40c0f3a7717so8336185e9.1; Thu, 07 Dec 2023 01:01:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701939672; x=1702544472; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=qKsrC2p/dEstQQ0QtE5+II/Axy3OGpRA/lKlIyxGMfU=; b=P50b6a6EiNqeI3saTqQWSxr8707DjD2giXkYr68M+X82gzEw6GkQpFAX0ywwVXeBkA M5JnIPlJHaE6tNi4aw+aGcR3CL5r1C6WQuba7XP3E0FXv4v5OzgEgBdN+8fe7QNW92Pb N88C5lpd4xdCVWbC4NngSRSxj3dtYc6k4ApfAOamDeWnoAeh13VsgY4LxSkp0XL/nvxh AvEuvaz6KkCpCuhuTh4s+yyKWQAC1Syx/E7VtmpDt49EEXJ7L79ziSsTFfblle/9Upad qRIVJqJQwdy4j+lccdJ6tDrD4Yf4u7L2gBKVuxUeD10Ar0/+vpJ7TfN+DqD58cdKIipb bwTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701939672; x=1702544472; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qKsrC2p/dEstQQ0QtE5+II/Axy3OGpRA/lKlIyxGMfU=; b=jDWRQiZwpfLHnQia2D7NZwcD1TIjp0g0ib2wzGgJnIDhSvt61r3/61G//l7rYdkkU5 mDPXlkrJXdmpnTtRc58FHLFsV1sB13ZNWxIT7w3ivqe2lpR5XbBST/0UR6l+h+sfpC+4 cr79hqEnk9oKixsDyPRH4AyI5VTprGZ0WcbVDjhuJUViatgS5a7TIlKyEambOWfDh6Ts pQunmw4ljS6Yf+IJ0z6Yehu6mJBoSSt7RjC3gVhM0xKA2vkHLHxNqJBk7FQiWIIICYWW WscoqlHqjHTTAfzUNGxKd6Lt/BZLuBv7CwoFVhWf8uBsfwDUgoJOLQj5sb38OcgBJjCN Xb2w== X-Gm-Message-State: AOJu0YxJ7c+AP9poVIPi9jDl602q+9uZZ22qxTRbhE4j7Q7HI1MEf5uf hPLMjYwiqa06Q7YPKdD/cPk= X-Received: by 2002:a05:600c:4f03:b0:40b:5f03:b3db with SMTP id l3-20020a05600c4f0300b0040b5f03b3dbmr657798wmq.253.1701939671713; Thu, 07 Dec 2023 01:01:11 -0800 (PST) Received: from eichest-laptop ([2a02:168:af72:0:5036:93fe:290b:56de]) by smtp.gmail.com with ESMTPSA id s9-20020a05600c45c900b0040b3d8907fesm1173675wmo.29.2023.12.07.01.01.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Dec 2023 01:01:10 -0800 (PST) Date: Thu, 7 Dec 2023 10:01:08 +0100 From: Stefan Eichenberger To: Maxime Chevallier 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: References: <20231206160125.2383281-1-eichest@gmail.com> <20231206182705.3ff798ad@device.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231206182705.3ff798ad@device.home> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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 (snail.vger.email [0.0.0.0]); Thu, 07 Dec 2023 01:01:26 -0800 (PST) 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! Regards, Stefan