Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2614314rwd; Mon, 22 May 2023 01:20:42 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5LxvUKW/o6izGotMFf2KermLEGzMoFKsUDddiZf3R2/KkYeJjDornRXvs1Z2aLqM68EzPL X-Received: by 2002:a17:902:d483:b0:1a6:f755:a4a0 with SMTP id c3-20020a170902d48300b001a6f755a4a0mr11568491plg.58.1684743641877; Mon, 22 May 2023 01:20:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684743641; cv=none; d=google.com; s=arc-20160816; b=YXnD11GwGlxXA+qMY0R1A8zK6EgjTdKKjj/Txar871SwNY/cUB8Z1im608q4aIWvGR 4crZ4at3FwFYMTGl6+7DRHi6G0IC2AOe72OgUBd1lTb8U8bgzyWUy8B6kpITb37PZy4s 4pfUWE3QpjVlhH9Ph6fNs42SSqae3mOrluhQhXqmoaCw+BX0bRb+tFUfUVuxM1a3BWjb nFl4EL78YcR19KzkazidHtZz4cyewWw+kIN1zUu5xNNJ4U3fHRnQkzr0WYCILrwdUAXP ykBVXnb3dZcuIoFASUEpHHTZpOXA1m+X9Ikj9noyudKkLr4SVRq/1m25For8CU96Hzee m2Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :content-language:references:cc:to:subject:from:user-agent :mime-version:date:message-id:dkim-signature; bh=oWwbyb5Mxk6cx2PzwjH7Aj8olHq6kSORyWUZJykL/eI=; b=0yH9PoX3SZf/wTekmbn4U8s/wosjwnKG5wOQnK0CPAN8IZ+J5ab+q93Jc3ZL8W4Kos n+hDglA+xW2M0BrFyFIlHaxSA+8LidoEbZGrTKmkyongBE4L/3jkYP3bvE2mJ493TrNO UHft3TIN9FzbUNckF/0IB6ICXytJ/jwC1qEK0L6clKUooDY2MLd84lMrSfT824UHvXxX MjFVKsxiEK1Gp93yK8oZ62rbtO933OZ9ytSp/GDgpt1vkYRsrv0oM0ijO7hYEdxsH9Sd PnmImZtjEuK/byF1evunG5GG+JPgybwSEFee+hwt/rGApvrOQpK22ebmAqWKwbZVKGR3 oMmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=b9bRB2K6; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i14-20020a170902c94e00b001ae4c3bbb0fsi4355703pla.356.2023.05.22.01.20.29; Mon, 22 May 2023 01:20:41 -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=@bootlin.com header.s=gm1 header.b=b9bRB2K6; 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=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231983AbjEVIO7 (ORCPT + 99 others); Mon, 22 May 2023 04:14:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49540 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230134AbjEVIO4 (ORCPT ); Mon, 22 May 2023 04:14:56 -0400 Received: from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net [217.70.183.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E4C08AB; Mon, 22 May 2023 01:14:53 -0700 (PDT) Received: (Authenticated sender: alexis.lothore@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id DCD3C1C0005; Mon, 22 May 2023 08:14:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1684743292; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oWwbyb5Mxk6cx2PzwjH7Aj8olHq6kSORyWUZJykL/eI=; b=b9bRB2K6BiXKlseyVVmXLEsjuoXv8WLHYJJKi7Ynvulp7/OkWnioSeBovJ854/vxUoo1vz Bl2933HsDkQ7uQ418f1NQgBQexM1GqO/qK6l5bKLlSL0Lr+a+WGkAGdeeFFiyNct80MJ8R 4scTcsDTdgdsCRYmt2DK+ZF7xc4om50E2fsQzlVzFfpOkAOhzS/+/uNr1ndyIB2nnfmbnw v+14v9JRbCYD4b8pF7hrUtUJrXnHv8xP0eLouAMi1k7F1YEC4eUS/I0JGWFI1UgmX7vgK1 p9VQBlJFjRUEpUrWzyt+UuCTC58nrG7Wg1NqTMAyCcQx9R+4MddS47GzJ/AVfA== Message-ID: <1c104034-b61f-5242-40fa-339de59ac9c9@bootlin.com> Date: Mon, 22 May 2023 10:15:11 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.1 From: =?UTF-8?Q?Alexis_Lothor=c3=a9?= Subject: Re: [PATCH net-next v2 7/7] net: dsa: mv88e6xxx: enable support for 88E6361 switch To: "Russell King (Oracle)" Cc: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Richard Cochran , Rob Herring , Krzysztof Kozlowski , Conor Dooley , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, paul.arola@telus.com, scott.roberts@telus.com, =?UTF-8?Q?Marek_Beh=c3=ban?= References: <20230519141303.245235-1-alexis.lothore@bootlin.com> <20230519141303.245235-8-alexis.lothore@bootlin.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2,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 Russell, thanks for review On 5/19/23 16:43, Russell King (Oracle) wrote: > On Fri, May 19, 2023 at 04:13:03PM +0200, alexis.lothore@bootlin.com wrote: >> From: Alexis Lothoré >> >> Marvell 88E6361 is an 8-port switch derived from the >> 88E6393X/88E9193X/88E6191X switches family. It can benefit from the >> existing mv88e6xxx driver by simply adding the proper switch description in >> the driver. Main differences with other switches from this >> family are: >> - 8 ports exposed (instead of 11): ports 1, 2 and 8 not available >> - No 5GBase-x nor SFI/USXGMII support >> >> --- >> Changes since v1: >> - define internal phys offset >> - enforce 88e6361 features in mv88e6393x_phylink_get_caps >> - enforce 88e6361 features in mv88e6393x_port_set_speed_duplex >> - enforce 88e6361 features in mv88e6393x_port_max_speed_mode > > Not exactly related to this patch, but please do not rely on this "max > speed mode" - please always ensure that you specify the phy-mode and > fixed-link settings for CPU and DSA ports in firmware. Thanks. I would like to make sure to fully understand your point: - when telling so specify phy-mode and fixed-link in firmware, you mean device-tree, right ? - when checking for code and execution flow, I observe that port_max_speed is always called and its output is always used to configure shared ports mode in mv88e6xxx driver. Are you telling that eventually, the whole mv88e6xxx driver should stop relying on port_max_speed_mode for shared ports ? Kind regards, -- Alexis Lothoré, Bootlin Embedded Linux and Kernel engineering https://bootlin.com