Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp11585952rwl; Tue, 3 Jan 2023 01:20:05 -0800 (PST) X-Google-Smtp-Source: AMrXdXvbrWHyoYUggjDgPpIFYnROKMX5zNV1JHVVdCwM+ME4qGrWY+vT+Wzs8qDSOtGR1QcnMQdF X-Received: by 2002:a05:6a20:ce07:b0:af:ee05:fd0b with SMTP id ic7-20020a056a20ce0700b000afee05fd0bmr41102668pzb.3.1672737605145; Tue, 03 Jan 2023 01:20:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672737605; cv=none; d=google.com; s=arc-20160816; b=DYw4hjowpqnm0COXdPAQmP4uae1ZsvvIsdNcFoNeEtSH4f40KS7UrypyMl1wuMyneu 4k23z3qNzlAxbLJ0ApCQ5rPo9wN1n5x5XvuXvAuN9ztJN8cYUykPMISWFfTyNmXavC5q nfMZwLbUg7mKISNFvaBoBvOAQHHCOUMqc1QhDFQPKzNT+Qb8Thi0IQlvDHzOtmzU8d8a hZH9tCdHSHqlm/NLny+Nj8SIurdjbs67xHpDfLRuJYGK3JRU/8Y6YJ97vdcbQWIf2C82 Mev3v7U6Fz6p0MhtnYd4K/O0YQSGteOhFuonbPTOvb40C6PWm8MSTkb2K9QiJ7pJDjaQ qykg== 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=FZRNOfo8qDLbEayCnZRVV6yMdXNFXN7AYV0C2JCc0Wc=; b=AtXIjRdauTelo/hf3Hvlbsq7G0e8Jtt++UEgmyq5XfUGNBIPpGPULq7bya8V0lxe8X 6T9JZKH9UozFvFT5nFm9QVoIgpQ6Y7YR3q1H+LC0YT4TeC6BDJ/LKosbRjj0UNE9J+IU 8Of6hHcM1nzKZsZnjNfqqOWcQX2cm1QG8DYDTaTLXIpkSwBNdmf/egX+HWDgINHWe0UA WxNG5/yT9JtOh8DtuiIKknJtfTxvXb3qQehK6LTbx3XHLbkEXYwzzXGzaWChIQfGsJqb LVd8XiFnnSrYm55/yDzyMPYyt+iyeqy0K0N6tLK9v7Rkdc3hvskhAUllUQjbro1aMWnH BcBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=rpYxe7vR; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z3-20020a634c03000000b00477bf7b0c43si30882045pga.458.2023.01.03.01.19.57; Tue, 03 Jan 2023 01:20:04 -0800 (PST) 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=rpYxe7vR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237128AbjACIrD (ORCPT + 61 others); Tue, 3 Jan 2023 03:47:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237066AbjACIqq (ORCPT ); Tue, 3 Jan 2023 03:46:46 -0500 Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BF13FE5; Tue, 3 Jan 2023 00:46:44 -0800 (PST) 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 0F6BB81120; Tue, 3 Jan 2023 09:46:41 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1672735601; bh=FZRNOfo8qDLbEayCnZRVV6yMdXNFXN7AYV0C2JCc0Wc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=rpYxe7vR1jl7FCp+KxCNipZzIJGDfQQUS7KvJxwrwDizpxDazeYCpt5BQEDN81wLu 6Nl2BQSyut+olElmuuE0xw7j3KlW6wZcfiyZtjtTTPkrqSVGXiStvIqt23P1daR8MT ws5Yn1VFJmOo8GBpptPq3MiPc5NEIUucKowBQ/7njXm0eaM3KPXDaihSNxDoFyVA5W 0IdMzlhDJksbo3Ql3hLVuLNOEyACq7rY5pJNxPQjicpC5CAjZ6q2kccazFQWL3kqeM 7c1A7AOpYRSNQwC2DkbaTKGKHb1mZ/EkWqcPV9pBppES0QSVkkDmmTGtfbkirpdIrP xwE3BhWid8SUg== Date: Tue, 3 Jan 2023 09:46:33 +0100 From: Lukasz Majewski To: Andrew Lunn Cc: Vladimir Oltean , Eric Dumazet , Florian Fainelli , "David S. Miller" , Jakub Kicinski , Russell King , Paolo Abeni , Alexander Duyck , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Matthias Schiffer Subject: Re: [PATCH v3 2/3] net: dsa: mv88e6xxx: add support for MV88E6020 switch Message-ID: <20230103094633.40328198@wsk> In-Reply-To: References: <20230102150209.985419-1-lukma@denx.de> <20230102150209.985419-2-lukma@denx.de> 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_/v=MSexCL7TfeyWV_xIgfSGY"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Virus-Scanned: clamav-milter 0.103.6 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 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_/v=MSexCL7TfeyWV_xIgfSGY Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Andrew, > On Mon, Jan 02, 2023 at 04:02:08PM +0100, Lukasz Majewski wrote: > > From: Matthias Schiffer > >=20 > > A mv88e6250 family (i.e. LinkStreet) switch with 2 PHY and RMII > > ports and no PTP support. =20 >=20 > > static const struct mv88e6xxx_info mv88e6xxx_table[] =3D { > > + [MV88E6020] =3D { > > + .prod_num =3D MV88E6XXX_PORT_SWITCH_ID_PROD_6020, > > + .family =3D MV88E6XXX_FAMILY_6250, > > + .name =3D "Marvell 88E6020", > > + .num_databases =3D 64, > > + .num_ports =3D 7, > > + .num_internal_phys =3D 5, =20 >=20 > You say in the commit message there are two PHYs, yet you have 5 here? >=20 It looks like mine copy-paste error. In the documentation there is stated that the 88E6020 device contains two 10BASE-T/100BASE-TX transceivers (PHYs) and four independent Fast Ethernet MACs (so it is a 2+2 device). The 88E6071 is 5+2 device, so I'm going to correct this value to 2. Also num_ports needs to be updated to 4. > Andrew 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_/v=MSexCL7TfeyWV_xIgfSGY Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEgAyFJ+N6uu6+XupJAR8vZIA0zr0FAmOz62kACgkQAR8vZIA0 zr1RPgf9HpBDrIYVK7/JLCxI0tGq8u9eyZLT12kn2zBzhdNqoobcjLrlphDsR+Ur 3bC/Xf+6aGh0Cx9TQtEcm6wWcSCHdxMOMG4wt6vEUMNbBtF76MdOPKzbx8cYz5tv Za2PBY2Znzt/uGbO3Xafx8zyVIEC3hhQSWFOVzIKtL2eGv5CB6FBVIimtBnzEY1c dYRbvd72w1uE34PcxaI9ARTngKaUiKG1Dr0YjqmOXUTJUyTRaqZOwsjJQitRlaHf YJJl+f35tjoVwflShoKF5Aw0/nPNdugddKqUbF5YIBSG7ct7AaEZFJb43qAivZQL j4BUTTlJARFxEj4e2tLmGTcL9yyqjg== =9+DG -----END PGP SIGNATURE----- --Sig_/v=MSexCL7TfeyWV_xIgfSGY--