Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2221126rwd; Fri, 19 May 2023 02:40:56 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5rnBeOk0xL0YElNI71NPutxJAzgtCtJ1cmIfyUw8RdG0F86r3QU/XWZCNIWSAWk5NaHx4U X-Received: by 2002:a05:6a00:2314:b0:64d:2d26:71c with SMTP id h20-20020a056a00231400b0064d2d26071cmr3379387pfh.1.1684489255925; Fri, 19 May 2023 02:40:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684489255; cv=none; d=google.com; s=arc-20160816; b=bN5Xj7n16IKdfBi6vquqEGvxopLJn+5vT2xFi5BdfTcD2lJM49NcA9R+q48v7d44YE +UmmzVRPscMGj6LEZrE0Q47pG47grXxwxNoZOd9OKxT8nHOshjDbSXpPLhKnaAR2rmnx GAc101+RVkk/+yX5hi+UasTWFQx+3FeJ6pLMuounHJcHCQLHl+kaxYAkpySFb6JgVSlK gCAM3F2T/d+HTP+0faqeP3zKoU6szYVQ09vRAlJGhvA0e80wEV8rCmamakyhwyVPH1JB aYCH3TKY9vjmA+YTUTWpWw4SKBtdbkLeap3/be5QxzUEOt6jDPfRXqtGGuRkVGKyOxBz Y+bQ== 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=8FtU58ZSqUb//QETjnoWYvSe6+lYScaOwUjlDpCnasg=; b=O84UfkY02k/yde/Ms6Six5Wd8AQry4BaX5ZJTb+4EmTU8aRB0mhbAX5Jc29dtqs9kB k75DZAzEBpiEPtz12jsZcyQ9oXMSISLxkM3zNgONDAoRKBUKVt/tO/yub/VhLweqYhu4 SnW7ayPqNQm7bSqE2L8jBGnP9TUAxwhgh8kc4eJ+X/nGPntWmMvTPbtqKGNWlJSBDNdL h0daoicwaVuEd91FfR5Gkgb7qUg2hnvHqsTfRwI3D2iNLfHcK6A9wLDBry2lN3lazIS5 LIWhYguN8q/MPGuLTP7ylPRKjI3A/62O1gC40kXdphYnkIQ2SPoNrRtOIjXaBEyBJhcC t9TA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=U6fG4FHj; 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 24-20020a631258000000b00524d1d335bbsi2782335pgs.56.2023.05.19.02.40.43; Fri, 19 May 2023 02:40:55 -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=U6fG4FHj; 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 S230218AbjESJVV (ORCPT + 99 others); Fri, 19 May 2023 05:21:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60694 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229876AbjESJVU (ORCPT ); Fri, 19 May 2023 05:21:20 -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 1E0D618C; Fri, 19 May 2023 02:21:19 -0700 (PDT) Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-96f576ba41dso122854666b.1; Fri, 19 May 2023 02:21:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684488077; x=1687080077; 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=8FtU58ZSqUb//QETjnoWYvSe6+lYScaOwUjlDpCnasg=; b=U6fG4FHjn0kFNeJsljVk2PqisCNYdfOVHzYuyUb5chbStuXKVEfaKd/eLcXxSw0v9J DcjIO8jWx5829KvOEEoE50GWOJpxjjWuBauVP+9kuw6Thz8eculH0sFjUI5hhpEgrC8y pmZueQnwYvCHczLAt8AqwJ0JcFJSXbdGzdf2SI4TC4U6xddV+4BKPOBWF0SjsTiS8b8O 3txL4Xn3H7mCNYIog8O7Ww21hJsloycn3b/z+B9phzMXiQjb938ZQpiQNmz9cmdWMQlr 6joh9obIZFNGNAG/INdnBHUPB0fWmKzfVXU3d3o4OXza5KHa9oIYlKpb3INRCsNmXcbe jObQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684488077; x=1687080077; 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=8FtU58ZSqUb//QETjnoWYvSe6+lYScaOwUjlDpCnasg=; b=bwyqUAdF0ouGqU7nIeWp+mmk9xBvhCji26ecxw0qjmzvULecaWzVHxWTKLT7rUDSYS 27AYltUqruz3P/Tw9BJuJGHXwgJxMfJZsE82xkhM14x227z4Vvwtn0fvOCdkTyK2Iyqw 4Gma+lU+b3fgEiRcUiUokqq2Jk0EoP3mf0u2fDEQMV+6MBfoTYG26uamHG5tMasr3/q3 D3v/ZXvCNs23Ad4XF2g5dxdgSA9KtXOtrQwsh+XLftDBygkwxgzctHngITfmIk/y6vlv NYQRK7MQGNNoN/pZ4lNc1G+K4m8bbCTDatTD8VSXskhoqOGMys2y8vDxFd3C+h2eIOz7 k1kg== X-Gm-Message-State: AC+VfDxqgR6ODIh68C7zwGT5RlrtyY2uxssdeqXayMcQwgu1OeJgTlJx 4+krUvuCkTkRGkAqgj9BXwo= X-Received: by 2002:a17:907:7291:b0:95f:969e:dc5a with SMTP id dt17-20020a170907729100b0095f969edc5amr916016ejc.30.1684488076655; Fri, 19 May 2023 02:21:16 -0700 (PDT) Received: from skbuf ([188.27.184.189]) by smtp.gmail.com with ESMTPSA id s20-20020a1709062ed400b0096efd44dbefsm2054633eji.1.2023.05.19.02.21.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 May 2023 02:21:16 -0700 (PDT) Date: Fri, 19 May 2023 12:21:14 +0300 From: Vladimir Oltean To: Oleksij Rempel Cc: "David S. Miller" , Andrew Lunn , Eric Dumazet , Florian Fainelli , Jakub Kicinski , Paolo Abeni , Woojung Huh , Arun Ramadoss , "Russell King (Oracle)" , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com Subject: Re: [PATCH net-next v3 1/2] net: dsa: microchip: ksz8: Make flow control, speed, and duplex on CPU port configurable Message-ID: <20230519092114.jiunl3marjgxxkl2@skbuf> References: <20230518092913.977705-1-o.rempel@pengutronix.de> <20230518092913.977705-1-o.rempel@pengutronix.de> <20230518092913.977705-2-o.rempel@pengutronix.de> <20230518092913.977705-2-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230518092913.977705-2-o.rempel@pengutronix.de> <20230518092913.977705-2-o.rempel@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 Hi Oleksij, On Thu, May 18, 2023 at 11:29:12AM +0200, Oleksij Rempel wrote: > +void ksz8_phylink_mac_link_up(struct ksz_device *dev, int port, > + unsigned int mode, phy_interface_t interface, > + struct phy_device *phydev, int speed, int duplex, > + bool tx_pause, bool rx_pause) > +{ > + if (dsa_is_upstream_port(dev->ds, port)) > + ksz8_upstream_link_up(dev, port, speed, duplex, tx_pause, > + rx_pause); > +} Can we make phylink control independent of DSA switch tree topology please? Whether the port goes towards the host or not has no saying in whether it is an xMII port. DSA's phylink integration makes it possible to connect the CPU port to the host SoC through a PHY + RJ45 cable, case in which the xMII port could be used as a user port.