Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp3046233rwd; Fri, 19 May 2023 14:07:18 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ68kBEGyqq3FRT/Wmd2mEH0WkBYY2PE501TKR4V1ofc8qDIeIcylZHFkpyFzDlr7SpUx6O7 X-Received: by 2002:a05:6a21:33aa:b0:10a:b2a2:a301 with SMTP id yy42-20020a056a2133aa00b0010ab2a2a301mr34587pzb.12.1684530437881; Fri, 19 May 2023 14:07:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684530437; cv=none; d=google.com; s=arc-20160816; b=N3GbxxYva6fA+ZcKiT3mgAyDglsQA6OMVnGswX1wPEUKF6jxI9f1d6thjYn/gAK1L6 7TdSXroTHYP+A2R1tU5imLHZN3LM2ODubcC6sSiYEtatucthDo4K34ET6vKXNmw5dirv DpQmAI06/opsQjqHGWfFyq8Q4xoD1ZM/WV2rru1CPIKYOLJPFJMHgK/ExjLzfvQSu13r 6XHNYUsHm8GEK1lp6m3gRqW+kIH54xOLPrwbpSKc+qzmbCK9iC8H0fclDNtKOlY0Ih6a HvG3Vzi78SPSCOqUBTcGK8On7FiHzMoUA6A3okZpXM3459TAwj8z54FhSN76P9a2PX/F Lnfw== 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=3DYhz4q6r+8hJyhMZr5fo0ENEYzNVGjwRINrf0k6BeU=; b=WlGJpbCtr6pDZihYagUJQefCDhHwOK7+73IEAKYlqRVlpg8JXI1sUtV39e/23sJJjQ vjHWFHQ8wqcfR22s/p4Ptv1vXZDxrEipuCBmilEILPHVhRlHva/wDoT87MoKAD2yy3w9 yBIHfF7INuKcrztsYbY4pfjNplYmm0FycMrm2Wp2xoHFXCrtvCpy7ELUCWjiS8MRu2Wc u1RRvaga2yArnaCAf+5XOT04qjSy6jjk5p2C/Ejs7DuQaC2N+8v4dnv0F0AOrD9Asw42 3ckYN304pp6CIeL8oGCLh1YPraWKnt2UoghNCw51SGw8wc+QpWDT+b93dZoo8s8u+T0R 9hug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=JczEPQDD; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k191-20020a6384c8000000b005347d6bd7edsi209615pgd.400.2023.05.19.14.07.05; Fri, 19 May 2023 14:07:17 -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=@gmail.com header.s=20221208 header.b=JczEPQDD; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229508AbjESUfC (ORCPT + 99 others); Fri, 19 May 2023 16:35:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231290AbjESUez (ORCPT ); Fri, 19 May 2023 16:34:55 -0400 Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AEFC107; Fri, 19 May 2023 13:34:54 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-966400ee79aso701925266b.0; Fri, 19 May 2023 13:34:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684528493; x=1687120493; 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=3DYhz4q6r+8hJyhMZr5fo0ENEYzNVGjwRINrf0k6BeU=; b=JczEPQDDUgRxxpDO1Nz8Fqsptg0WMWssCyuRQ+JFFnVmiSt3CZYudNw5WRw85QIN9T r9KbRxt4jT9b9lGagerzf6vDJf+C10HYyIKN83F9o+9rpRi/UBYCcZ4jOqwXdHICFJnc XTrDDxJWxexpVhv52sqzX8yX/WbcBkTFryieiXAwt7M/MvwIpUCZqsm5jGT8/2b91qeS IGMJLIMAJULoBMN/rQbEwqE1KtZ67IbilgUmfNM5R+YcPH016fT0MtpcYTAsW6un3BIK 3xiCdx5yTwMwSQRx0SHEf7okS7vGrZr+ZZUfuglVJcUaqbvHLWegH5E6Jj8erRbDN5i6 6n3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684528493; x=1687120493; 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=3DYhz4q6r+8hJyhMZr5fo0ENEYzNVGjwRINrf0k6BeU=; b=ItXGrKcLkf6zEOj94mdORWjTDBugID9QovMg8ao5ZI736K8SdjIaY8eqKDyBdNQl0r +wBkj44LrQ3hBBb7X4QKjI4qGYcC4vKh0lQGYPWL/Aez7M7VmkjXNvCjUMgaJAWBcNQk 1WA4wrLFYR7o6mBI+mge30Puuet9UgfZib+Tfj48rwIxPYUDGPBr7L/vsHO0pDPYqTIO /KWMqAS0FtVMTyAvMJXKR9NH4bmjcWzY3mQsYI7OxBM97uIjWyJEq1onjE5bjpdWKA5U y/9mrOJXRYByfqCQFx1CHgQ+XBewMLcMr6qV2Aq2z/xxLx+Xezjgsv6ajXG8eLbcnQPV yQvA== X-Gm-Message-State: AC+VfDx6rzTN7sQBPVjSFWaQnqLAfMsVvRXJmVXXy6hwWb6+Nlgzpbtr oaEKwnYCfhX0uzHUC8VhVEg= X-Received: by 2002:a17:907:3da0:b0:95e:d448:477 with SMTP id he32-20020a1709073da000b0095ed4480477mr3733261ejc.33.1684528492332; Fri, 19 May 2023 13:34:52 -0700 (PDT) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id y2-20020a170906914200b0094e597f0e4dsm22928ejw.121.2023.05.19.13.34.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 13:34:52 -0700 (PDT) Date: Fri, 19 May 2023 23:34:49 +0300 From: Vladimir Oltean To: Oleksij Rempel Cc: Woojung Huh , Andrew Lunn , Arun Ramadoss , Florian Fainelli , Simon Horman , "Russell King (Oracle)" , linux-kernel@vger.kernel.org, UNGLinuxDriver@microchip.com, Eric Dumazet , kernel@pengutronix.de, netdev@vger.kernel.org, Jakub Kicinski , Paolo Abeni , "David S. Miller" Subject: Re: [PATCH net-next v4 1/2] net: dsa: microchip: ksz8: Make flow control, speed, and duplex on CPU port configurable Message-ID: <20230519203449.pc5vbfgbfc6rdo6i@skbuf> References: <20230519124700.635041-1-o.rempel@pengutronix.de> <20230519124700.635041-2-o.rempel@pengutronix.de> <20230519143004.luvz73jiyvnqxk4y@skbuf> <20230519185015.GA18246@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230519185015.GA18246@pengutronix.de> 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_NONE,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 On Fri, May 19, 2023 at 08:50:15PM +0200, Oleksij Rempel wrote: > Thank you for your feedback. I see your point. > > We need to remember that the KSZ switch series has different types of > ports. Specifically, for the KSZ8 series, there's a unique port. This > port is unique because it's the only one that can be configured with > global registers, and it is only one supports tail tagging. This special > port is already referenced in the driver by "dev->cpu_port", so I continued > using it in my patch. Ok, I understand, so for the KSZ8 family, the assumption about which port will use tail tagging is baked into the hardware. > It is important to note that while this port has an xMII interface, it > is not the only port that could have an xMII interface. Therefore, using > "dev->info->internal_phy" may not be the best way to identify this port, > because there can be ports that are not global/cpu, have an xMII > interface, but don't have an internal PHY. Right, but since we're talking about phylink, the goal is to identify the xMII ports, not the CPU ports... This is a particularly denatured case because the xMII port is global and is also the CPU port.