Received: by 2002:a05:7412:31a9:b0:e2:908c:2ebd with SMTP id et41csp4348259rdb; Thu, 14 Sep 2023 22:03:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF8GiTy2u+TWco/UBcYVcz5818IvUSIDiV64HtJGjV0eMo6Ytl08H81epadgWi7I6KQAjX3 X-Received: by 2002:a05:6808:91:b0:3ab:9b4e:d891 with SMTP id s17-20020a056808009100b003ab9b4ed891mr597871oic.30.1694754221417; Thu, 14 Sep 2023 22:03:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694754221; cv=none; d=google.com; s=arc-20160816; b=MShFy5zCgB+O73hcQjOy1phZVFkyU/i3j/pKgNvjV+KSDFCnSoPuprF3wJTVfTGtiS NTthqDoU6RcljEu1xaMzV3JblGk5mCMWAaoWMLd8w+iggLENcgwdCIT5CCIp3/CwJQgU 1bskFNG3MDo5g8lxsE/CRpvXlEC5cSxT9l1ZAsR5gzvn5I1+GJ6AyHwy1T/B9+H3z2Jv gmpmX5gOTo3MFGJDDH/Rh5WxolUXzAeCcNAAx6K7gF3q0wzDBAol9RAgZkiOebA0uefg vpqpiJfLjCNyv9Ti1722jiKyJ1RCtwbewMY+fWTW43ilObqFQGBNEH9RqUbCTICQT1zf fzQg== 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=BqdX0hV4tEYYiC/8IPMSmeBje/hkN8pxNeaKmKo60TU=; fh=zd0/I2JG4nadowCxuf/PW48ST7OpLl5YYfrLs3N8wN0=; b=fWL0zrcgzRqYpudKUL6PSn4dmqy3ppM7TuipCsn7fDKMgc6jbEXnTc7SLeIIppcvpb LtiGa0/P43vMlBKtIdzvCPU+PovaxM65FtvwaAB1tlI6LFxH1dz5Ak0muH58drSLhcOB ZDcZsVnzOTg/Qz1DbNruBI2mkUSxLjJG4gA3NfY2LbIhV2IqQT6wspMAtGlGF+O9YFNN DRhVyDigish/uGRUPknf5V40AryboVQaz25JOpW3WDIihFnpKBJmQmZdjvLvVV4N10fx D6hI0+m5KkIteh1Pa4tYOt1VtuwlxtpWBx7bYJDz1NxMKPzOz64VglHwmifG+x9CCWVi lNxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=aYrPSq1Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id cj11-20020a056a00298b00b00682759c6440si2695595pfb.40.2023.09.14.22.03.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Sep 2023 22:03:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=aYrPSq1Z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 628C38348200; Thu, 14 Sep 2023 05:48:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237164AbjINMr5 (ORCPT + 99 others); Thu, 14 Sep 2023 08:47:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49666 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237188AbjINMr4 (ORCPT ); Thu, 14 Sep 2023 08:47:56 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4DCC31FD0; Thu, 14 Sep 2023 05:47:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=BqdX0hV4tEYYiC/8IPMSmeBje/hkN8pxNeaKmKo60TU=; b=aYrPSq1Z0wwYWNUTdYynOkxBA6 E+w/1eZhLHk4s58sCaIEJ1KFtUw+st8SkT7226R2SLYuikfBIlgVVOVDAFvbyp2B8O+ASrDt0TAht EoSM3A6tvITFl6WHoCdEfs4Yq5cRbq0jPQ9gN7wdenjmmtXKpw5ctvd+/YbeLPe5g/8Y=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qgll2-006P6o-Qu; Thu, 14 Sep 2023 14:47:44 +0200 Date: Thu, 14 Sep 2023 14:47:44 +0200 From: Andrew Lunn To: Christophe Leroy Cc: Maxime Chevallier , "davem@davemloft.net" , "netdev@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Jakub Kicinski , Eric Dumazet , Paolo Abeni , Florian Fainelli , Heiner Kallweit , Russell King , Vladimir Oltean , Oleksij Rempel , =?iso-8859-1?Q?Nicol=F2?= Veronese , "thomas.petazzoni@bootlin.com" Subject: Re: [RFC PATCH net-next 0/7] net: phy: introduce phy numbering Message-ID: <60703503-e592-4467-a942-74400583369d@lunn.ch> References: <20230907092407.647139-1-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: 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 (howler.vger.email [0.0.0.0]); Thu, 14 Sep 2023 05:48:06 -0700 (PDT) > FWIW when thinking about multiple PHY to a single MAC, what comes to my > mind is the SIS 900 board, and its driver net/ethernet/sis/sis900.c > > It has a function sis900_default_phy() that loops over all phys to find > one with up-link then to put all but that one in ISOLATE mode. Then when > the link goes down it loops again to find another up-link. > > I guess your series would also help in that case, wouldn't it ? Yes, it would. However, that driver would need its PHY handling re-written because it is using the old MII code, not phylib. Andrew