Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp929901rwb; Thu, 18 Aug 2022 15:08:14 -0700 (PDT) X-Google-Smtp-Source: AA6agR7ylb85a3DY0CTLNuTtjI+2Pw/T2HuPlReOQ6IWmJsP9TifomM2/v3tiei2lTAtBZZQD7sb X-Received: by 2002:a17:90b:3141:b0:1f7:75cf:a449 with SMTP id ip1-20020a17090b314100b001f775cfa449mr4999558pjb.18.1660860494434; Thu, 18 Aug 2022 15:08:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660860494; cv=none; d=google.com; s=arc-20160816; b=Bv/3KDGkuK60lCQPe44PtKoAnaF/2sqbDim4LpHWG8zC2zJdQL7Wtp4+5yXrj9nB4b BkJs7EMQUuifoQ5+0ZusHVqk92j/NyCtoucHK2dvBvOtFSqPG29/4OHDh8chEgbCkSw5 EwdbxaYJdZ6rGAcjD9WuRdID7fsgSg9/ffYN8sP7ofXkV6krFMhCUpY2wfVhmuuZm9Md cSMqN8fzVQN3N95QrAk0lo7GU6DnXRwWY7fClt7cUQaraMLoIszyw4Z95OSl31T+aYlC GG/Q4dPcdu2ggN3y7iuTjdefNy5fT57o0v66ML0fhAwC7DIMVB9ETIQI4s3t4nazJmjY YXwQ== 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=TwzkiQpDimOCFo9I1urYAGSujGIok+UgpBPq/OoMrWc=; b=mxf8TM9OVdkKNtV3uASK5rjlbx58g90ELNBkKGinG3YWjILZM5xeSxv16nm/AO8EdK 70aUGCO4lH9NXN8BVXTR4+Y78EjExk4OQKP6Ye+tT0d3ZM1i9L9LgwfuLVgkzpfGXxgb heLJvS4VPGwFOZ1aoJM+muPGozYQWLkjQE6VFp4hIyFatTaGQoJmA6giCupJWo03i107 Q1sat+P8Ls2GKzCSHKxlq4b6IrVYNc5a1FaqwKaNzw8UICB5SxcQPMD+s6lM3P7Eehk3 HWNSRxxK5ypt+H27gTbNEDNkN0rVMNnX4jsJj2g5qzXu8R9G/Qx6cWznD+3GpPXj9G9R vaSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=kcoyVXsD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e13-20020a17090301cd00b0016ce8847b4dsi2409653plh.27.2022.08.18.15.08.02; Thu, 18 Aug 2022 15:08:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=kcoyVXsD; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345501AbiHRWEj (ORCPT + 99 others); Thu, 18 Aug 2022 18:04:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346061AbiHRWE2 (ORCPT ); Thu, 18 Aug 2022 18:04:28 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE76050054; Thu, 18 Aug 2022 15:04:22 -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=TwzkiQpDimOCFo9I1urYAGSujGIok+UgpBPq/OoMrWc=; b=kcoyVXsDbzoltVhhawj/7b75LG ALbcBmJz0UaQBxPD/C8DMXpPw73a8ljtM9XyX0TCxGi3WR7Qgt1IW7gRcFU2HfP9r6fxVq3mz35gd RlXGTRwEMmD+0TrqlsbwcWfesgsNbqV/628fuTTka2Q646iJ8zh1pqoLe4yF5FRkFjAU=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1oOncf-00Dqj0-3H; Fri, 19 Aug 2022 00:04:17 +0200 Date: Fri, 19 Aug 2022 00:04:17 +0200 From: Andrew Lunn To: Maxime Chevallier Cc: davem@davemloft.net, Rob Herring , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, thomas.petazzoni@bootlin.com, Florian Fainelli , Heiner Kallweit , Russell King , linux-arm-kernel@lists.infradead.org, Richard Cochran , Horatiu.Vultur@microchip.com, Allan.Nielsen@microchip.com, UNGLinuxDriver@microchip.com Subject: Re: [PATCH net-next RESEND v4 3/4] net: phy: Add helper to derive the number of ports from a phy mode Message-ID: References: <20220817123255.111130-1-maxime.chevallier@bootlin.com> <20220817123255.111130-4-maxime.chevallier@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220817123255.111130-4-maxime.chevallier@bootlin.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Wed, Aug 17, 2022 at 02:32:54PM +0200, Maxime Chevallier wrote: > Some phy modes such as QSGMII multiplex several MAC<->PHY links on one > single physical interface. QSGMII used to be the only one supported, but > other modes such as QUSGMII also carry multiple links. > > This helper allows getting the number of links that are multiplexed > on a given interface. > > Signed-off-by: Maxime Chevallier Reviewed-by: Andrew Lunn Andrew