Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5720802rwd; Wed, 24 May 2023 06:03:26 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4SLRjAhLIhU89O95N+SUTCJOvo9Z7yEE/4nSHfHkNK9Dus7Pbvq5EQsDYw4PSviWkDQS2d X-Received: by 2002:aa7:88d4:0:b0:64c:ecf7:f49a with SMTP id k20-20020aa788d4000000b0064cecf7f49amr3399749pff.21.1684933405348; Wed, 24 May 2023 06:03:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684933405; cv=none; d=google.com; s=arc-20160816; b=ix7R+vxgH3kuv+jd6wU6bAekpqc6wlWrR+oWpUQrRYAA8AzE4LVs45wHSOZf1rwUYD JALQjcR4+bIzW9gJEHHOueE2PsVcgHyYZMMOngPBWFKwem7QdUkIMX4IsBhrB1hAwL91 qcJU3ChrHkvPTpk9g5rmhUC8TWNdWyehokEXMkSxE010mgIDK/Wr85W97Py2NMzZxoAb nKi3d3Jf3Lcexr57vFkUEMF4NGBYM9/aDmRPydKMlqlPZ81qkN/ERE1E7BR04TkccwGS kSjZa3T3Mt40w6iDrmZyo+ddCC86U84AaPUWFzH1gkvl3IDxRCNRuoHaGCgHFnOgoMOr Vehg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Z8lMX3u0iolA/Z40Kqv7W/k+Ppjd7QtSS15518Cnjks=; b=C7RHYR2dSAqxboLido2fXKqc7pyQqojUpJPY8arf9ixjKUHUnQTZ/+lAnN0Y8Jbswr X8UPh7/RwJgXRdOfAWV7xucd08liB+gjswrU3CE7KXU1aVIOGVB5RkWdBo3Sv39q0spn RlXTSuv5thQNpXiPCi9CogvQj75yfWI+qXYVA/kMUu42fm5CZ9VoUrzrvI9AAFofsifT yU/B93JF6ANRK+005bx/UdvSj+IRG7Ly6UV5rETvVuCUzSezZD/2e53QA8ssK6y0MLSC Icq1zoMDm1i/nbOKqvhnEJ2guyWof5k6QF0ehC5qBDuj2I/gWFRhWUL9S6d6fYDPCRcZ WqQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=x9N8FnyM; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k191-20020a6384c8000000b005348f85f89fsi1074181pgd.226.2023.05.24.06.03.07; Wed, 24 May 2023 06:03:25 -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=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=x9N8FnyM; 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=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233637AbjEXMht (ORCPT + 99 others); Wed, 24 May 2023 08:37:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56852 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230031AbjEXMhr (ORCPT ); Wed, 24 May 2023 08:37:47 -0400 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D0BEA1B0; Wed, 24 May 2023 05:37:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=Z8lMX3u0iolA/Z40Kqv7W/k+Ppjd7QtSS15518Cnjks=; b=x9N8FnyMMqsU3RvBuYxtrvBzQ0 OjZft50FwrSLCsV7kGYeal0U4F7t0DsNG0xMBo+3eImkEqzfXuoyiC72a1ppYJR6wcAWOipuqhkAl jZ81dDGzP9EmR9qa6/BHmipLTzeqZrANqIMpfCuHHcLGXHFYTIzZUo19neGUHr/h2/pELzjRQsiQ5 QRfTnchJ7A3uOheBu8ELc8wiWFATOvq5CcWWD3OEFNKlTYC2UKOhNcdJiqH85Ak1VBFYlh1W/hMDG 2NnJCSED68NmQc7H2sS1++qkYnMuIkjp6RQJ2vQx4M/jA52S2o38sv7jDjrtboc/F3E/e0OSLmPg0 m9/mf0oQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:33900) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1q1njx-0002Ia-DX; Wed, 24 May 2023 13:37:17 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1q1njw-0001cb-0s; Wed, 24 May 2023 13:37:16 +0100 Date: Wed, 24 May 2023 13:37:15 +0100 From: "Russell King (Oracle)" To: Lukasz Majewski Cc: Andrew Lunn , Vladimir Oltean , Eric Dumazet , Florian Fainelli , "David S. Miller" , Jakub Kicinski , Paolo Abeni , Alexander Duyck , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v7 0/3] dsa: marvell: Add support for mv88e6071 and 6020 switches Message-ID: References: <20230523142912.2086985-1-lukma@denx.de> <89fd3a8d-c262-46d8-98ad-c8dc04fe9d9c@lunn.ch> <20230524141743.1322c051@wsk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230524141743.1322c051@wsk> Sender: Russell King (Oracle) X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE,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 Wed, May 24, 2023 at 02:17:43PM +0200, Lukasz Majewski wrote: > Hi Andrew, > > > On Tue, May 23, 2023 at 04:29:09PM +0200, Lukasz Majewski wrote: > > > After the commit (SHA1: 7e9517375a14f44ee830ca1c3278076dd65fcc8f); > > > "net: dsa: mv88e6xxx: fix max_mtu of 1492 on 6165, 6191, 6220, > > > 6250, 6290" the error when mv88e6020 or mv88e6071 is used is not > > > present anymore. > > > > > dsa: marvell: Define .set_max_frame_size() function for mv88e6250 > > > SoC family > > > > Hi Lukasz > > > > commit 7e9517375a14f44ee830ca1c3278076dd65fcc8f > > Author: Vladimir Oltean > > Date: Tue Mar 14 20:24:05 2023 +0200 > > > > net: dsa: mv88e6xxx: fix max_mtu of 1492 on 6165, 6191, 6220, > > 6250, 6290 > > There are 3 classes of switch families that the driver is aware > > of, as far as mv88e6xxx_change_mtu() is concerned: > > > > - MTU configuration is available per port. Here, the > > chip->info->ops->port_set_jumbo_size() method will be present. > > > > - MTU configuration is global to the switch. Here, the > > chip->info->ops->set_max_frame_size() method will be present. > > > > - We don't know how to change the MTU. Here, none of the above > > methods will be present. > > > > Switch families MV88E6165, MV88E6191, MV88E6220, MV88E6250 and > > MV88E6290 fall in category 3. > > > > > > Vladimir indicates here that it is not known how to change the max MTU > > for the MV88E6250. Where did you get the information from to implement > > it? > > Please refer to [1]. > > The mv88e6185_g1_set_max_frame_size() function can be reused (as > registers' offsets and bits are the same for mv88e60{71|20}). > > After using Vladimir's patch there is no need to add max_frame size > field and related patches from v6 can be dropped. However, you haven't responded to: https://lore.kernel.org/all/ZGzP0qEjQkCFnXnr@shell.armlinux.org.uk/ to explain why what you're doing (adding this function) is safe. Thanks. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!