Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp5684452rwd; Wed, 24 May 2023 05:33:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7nAH2xCfiGsV+Rr0KYSGHgYfFZzo8VrgvFgTyGkgzt7HmqvasEl128vVBEdMhsEWZfUzoz X-Received: by 2002:a05:6a00:13a4:b0:643:b27f:6c43 with SMTP id t36-20020a056a0013a400b00643b27f6c43mr3479344pfg.27.1684931610719; Wed, 24 May 2023 05:33:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684931610; cv=none; d=google.com; s=arc-20160816; b=jdDLmhxdn52JgBWF/n6XBunIyTcdmw74lVpWTZ+IVoOta1BI8vz2861q+0MXM/Bbyd c6cJY9lps3wlEkreg6drjsS4vpeqr8Jecu+/v+16x1/6S2osOY6M/MZR92jSjoGoUO8P TLRowOfmZVZgIww0MEynUtQdy8e3Wp1vCeZHXYwT8n0+3Btn1TsC/itskxr8sTqRpWXj mb9vNuKgO35lWsIBrwwT3Z4bmX/7paILbLQkDfNRO37wAhAC+yjr0XHIMBcixJf1hKQk f36KDDazk2Ac5OLNupqT/MEtd49ELllh7A7x4XkeZw1Gf7MP0PRMooic2yu9ZxMbFOOb 45Vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:organization:references:in-reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=LkM/bZ9fUL4pshbM4qtC4eGKFgQaRWUq/wKzWk4QxFQ=; b=Zvhlsxjq0m8ZbPlgGFLu3w1TK4JwSp/fcL6uQ1/QGM7TRclTPXxn3QxwLfq+DW+/fD pqtTD+lbW3jxbbqHgP1edkLHY60mxHHtz3NtkPo1EEkf7w/PHaBH4+JFp8qI8mvEnPbv 6l20dQ2ttKcifu8yUlTI/m+rUKuutiuITBMdf/jws0BDVatF4HDX4CCtGva7QSsckEHl SpABI8U1S6ONJuBW/KGtfPwey4dQ98+EPe6uJXDHhsph1/XzR6qbbc7fRZzZJ1Ve3la1 UonBltqZj9jpjVC5jktfAoknUFR0YkX+VbrdXwR1CDDILKX/2qPcVnws68W70mXm/KKM 9i8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=EO26svgA; 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=NONE dis=NONE) header.from=denx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o12-20020aa7978c000000b00637745fdf99si8441838pfp.370.2023.05.24.05.33.13; Wed, 24 May 2023 05:33:30 -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=@denx.de header.s=phobos-20191101 header.b=EO26svgA; 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=NONE dis=NONE) header.from=denx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232699AbjEXMR4 (ORCPT + 99 others); Wed, 24 May 2023 08:17:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45212 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbjEXMRy (ORCPT ); Wed, 24 May 2023 08:17:54 -0400 Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E551135; Wed, 24 May 2023 05:17:53 -0700 (PDT) Received: from wsk (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: lukma@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id E72F5820F2; Wed, 24 May 2023 14:17:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1684930671; bh=LkM/bZ9fUL4pshbM4qtC4eGKFgQaRWUq/wKzWk4QxFQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=EO26svgA/TNan6SW6K/zaPBN71CX/OiBtClp1OaWhxTyddi86uSEAN0wEx81J93lR tqxBe+7Kwwf8QFwbSvJBLNwbSVdgCojMGDmf0AJL9t8QSmHu6Wk+sncvfDwmZ+GXnE NV+L9pp9cA+YnkTUUGf/3ROCJiHx2bzSUfmtxiSmlQ9MASE4dizH/OBqG/0wwKtX3U PWrFwR+Ao3OqUOIlh5c80kumaVWuznGRPiRVL0g4IxDukfP5NdpnNn/K2flks10+Xn ty9UV+NjtwvE5nN/XfwFNpJEDXxIWD1mGP5hNURQDC1kzSACVIHfPHul6Q7J2BKlCd ayoNiCJUk5vlw== Date: Wed, 24 May 2023 14:17:43 +0200 From: Lukasz Majewski To: Andrew Lunn Cc: Vladimir Oltean , Russell King , 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: <20230524141743.1322c051@wsk> In-Reply-To: <89fd3a8d-c262-46d8-98ad-c8dc04fe9d9c@lunn.ch> References: <20230523142912.2086985-1-lukma@denx.de> <89fd3a8d-c262-46d8-98ad-c8dc04fe9d9c@lunn.ch> Organization: denx.de X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/hxSIXto_jl.E+eAfLXTCiOR"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean 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_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 --Sig_/hxSIXto_jl.E+eAfLXTCiOR Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable 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. =20 >=20 > > dsa: marvell: Define .set_max_frame_size() function for mv88e6250 > > SoC family =20 >=20 > Hi Lukasz >=20 > commit 7e9517375a14f44ee830ca1c3278076dd65fcc8f > Author: Vladimir Oltean > Date: Tue Mar 14 20:24:05 2023 +0200 >=20 > net: dsa: mv88e6xxx: fix max_mtu of 1492 on 6165, 6191, 6220, > 6250, 6290=20 > There are 3 classes of switch families that the driver is aware > of, as far as mv88e6xxx_change_mtu() is concerned: > =20 > - MTU configuration is available per port. Here, the > chip->info->ops->port_set_jumbo_size() method will be present. > =20 > - MTU configuration is global to the switch. Here, the > chip->info->ops->set_max_frame_size() method will be present. > =20 > - We don't know how to change the MTU. Here, none of the above > methods will be present. > =20 > Switch families MV88E6165, MV88E6191, MV88E6220, MV88E6250 and > MV88E6290 fall in category 3. >=20 >=20 > 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. >=20 > Andrew Links: [1] - https://www.spinics.net/lists/kernel/msg4798861.html Best regards, Lukasz Majewski -- DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma@denx.de --Sig_/hxSIXto_jl.E+eAfLXTCiOR Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEgAyFJ+N6uu6+XupJAR8vZIA0zr0FAmRuAGcACgkQAR8vZIA0 zr0mwwgAlLajNzPWKh8DfgQzUDlUa6AdtQ8/xbBwHVh2YdV34VJUPZGghWjSG3NJ 4YfP+YnsUdo7FnYRXHyqYel2X6fOR0wWo+VAlEDRk0VbIZyTmRh21eRm71zhz++1 IrgemMToB3XOsrvkHyicfQxGynRzvcsENoDW4aFDO/eFdDcFmtRf6Dw/AvMHmQIP sUXPTxxZR8pGQpFnZZXslYs8P+0GJ/vAb8Ak61inDVMfZziphHUNlQYMuudKzkp7 EBf7KNWAN1jRGlXTMJqqYfuuvKM3sfRElfh75PjyPkFh61BvifuZ98QBkxkOdGXo 7ughGBgzF2phWJj1yZV/qjCDwis7nw== =BRNr -----END PGP SIGNATURE----- --Sig_/hxSIXto_jl.E+eAfLXTCiOR--