Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3333648lqp; Tue, 26 Mar 2024 06:36:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXSJNRYyIOunjLXxjSJJ6QYuPyj34RmJgExn3+DtXFNrDBHvoLwLd4BH3bK8Qj0mEJYgLqpnd/lHydkCF0MVPyN1apQb3W6lgkemvvCkg== X-Google-Smtp-Source: AGHT+IFJUkuukXnlTwLa50cxTgIih3Ohp3/bS0szbCIeIL8T31OAQqSneCmXFbtZRQKMOHVUgPnr X-Received: by 2002:a05:6358:710:b0:17b:85ff:8fe6 with SMTP id e16-20020a056358071000b0017b85ff8fe6mr1159943rwj.25.1711460214255; Tue, 26 Mar 2024 06:36:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711460214; cv=pass; d=google.com; s=arc-20160816; b=JjTZmnNM9rphkkZjqbkkcfK6xGRw95mLjZ5iA7PmQtrfpqx20sf821IEnIoyJlpe59 MMUPKgny0IC5RQlgmejS0x+O2uCMaxQrIvF02cbXoTQMPsvcnxYLJmilGl4XNcxjJLBW zocrLq+7FsbdwMrBRwxZoW3CRZJpd7g4I+nedb3EULC7oEneSNP3QKWUr07IWStFiy0g TJynwfDArotoGpF0pRxfwMw0I+tvN20BNzSfNoNqI377GpmxkVxBTVxnJuloZzJsKCq0 OxhIqpSKfknSEd/3Vl56fIui/fxiPT+TZBa6bBLirROV55asV+vLjDMf0xhh8xHQ7fXy YDQQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=TdmERBCHi/8gKslCCrNCorIXxZyxmrn/AoD5wJSNB4U=; fh=EAP6DZ6c+xBVJjT/fTMWNFzVGXsK1Z/w7njqrq8+rHE=; b=EmQ5jaFlf9Bb6EdCf+Opej/FOIUjkAw8CUfuo3yHoLP8PHOjykEISAaPkNTZ9YFPvA RZ8AFCMiF0EfyTgh7kZjYYLsbds//XsfoEsABi2tgOHTyBsGt7A83z23fBJhRO3GqE8u sgWsi90vgQAJoEg1SzQflI0SnFpQzQ2XzYiQoglOR7ls7VkNtzhY12HT2MGrGgBh6HdH ahQU2feLrRKGhMIFMEdWbz3lhRrkJWwVPJm2MjzzWpA/zdKaW+VmA1xFaF1lUXgwa33c 61HjLbxY3w5ABuQrR/595M/1JA6vkUP1Vg0fRrgQMoanLuS4fPo0beRGYgrruu8H1bS2 xnew==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=tgB4ALv+; arc=pass (i=1 spf=pass spfdomain=denx.de dkim=pass dkdomain=denx.de dmarc=pass fromdomain=denx.de); spf=pass (google.com: domain of linux-kernel+bounces-119062-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119062-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id h64-20020a638343000000b005dbe2220330si9606724pge.171.2024.03.26.06.36.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Mar 2024 06:36:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-119062-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@denx.de header.s=phobos-20191101 header.b=tgB4ALv+; arc=pass (i=1 spf=pass spfdomain=denx.de dkim=pass dkdomain=denx.de dmarc=pass fromdomain=denx.de); spf=pass (google.com: domain of linux-kernel+bounces-119062-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-119062-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=denx.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 5F8C0B2280E for ; Tue, 26 Mar 2024 13:34:51 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 452987602D; Tue, 26 Mar 2024 13:34:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b="tgB4ALv+" Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6098E7175F; Tue, 26 Mar 2024 13:34:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=85.214.62.61 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711460075; cv=none; b=IZ5pnSwBRPoA5seBDm1zO3z3WyeHvie5vEBFJ7jwFncvEmyFqalh+MaJ8UMCnFfQjzLNT0dthZRQFrk6VLr1hv9NZt9/K5c+GNJpodT/rs8BJLd+6bWr9OLwL7xcifN+iMoRspC1i21iC+1VMOU5lhf1VRzdNTdOOwy4bKaGBGo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711460075; c=relaxed/simple; bh=C09MDaDhCo5/cwICaB1cD+3IlLSyH394RN6EST48y2k=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=rpIiXq7DFuffe8VFkYI78kwXPqDaDqdCOBkOW+sfX/iaR/7+i8Ud/2igI7ZMuXUjyPXsMEEuxp49Wby8PzBILY8hKel40Rzp1GBe3gfZEYyAwpeJwrDfm06Ys5xhEiFBc5vtSUyGTSAGvWCGA8l28wi6eG9XJCuZTMderet7Hx8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=denx.de; spf=pass smtp.mailfrom=denx.de; dkim=pass (2048-bit key) header.d=denx.de header.i=@denx.de header.b=tgB4ALv+; arc=none smtp.client-ip=85.214.62.61 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=denx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=denx.de 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 A4C3D87F64; Tue, 26 Mar 2024 14:34:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1711460071; bh=TdmERBCHi/8gKslCCrNCorIXxZyxmrn/AoD5wJSNB4U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=tgB4ALv+ajiXCzJ3BUsA6Wf8RWG62Tx13jTecW9THXPUA7URfTAKXUf4ldL+SJH+e TarYKYMfqG2WxeQkomKmX06SzeQumNQGN+PAKdPjtfjbLqbhhuf8UZEWxpR/L2GbOD c3Ko8Rgv21fburbwXQybeW4Yuh7uB+Ou3jPJ5/FWjPsCIhqsnzsRvusQIED+m2Xs/V Yk1xprl5Oh7OCuH0VFN5mdw6cODZ0KVSPLPsr/Vc6skuVrn7NaUkIRNHVBeU2NinHL te6DdKoWvJjr1XDYg2hbFNAZRluhvedskdDuMz2Ajag75UVZQdCVSIE0AU1UacCsBj um8u5KLpNMVIA== Date: Tue, 26 Mar 2024 14:34:24 +0100 From: Lukasz Majewski To: Matthias Schiffer Cc: Andrew Lunn , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux@ew.tq-group.com, Michael Krummsdorf Subject: Re: [PATCH] net: dsa: mv88e6xxx: fix usable ports on 88e6020 Message-ID: <20240326143424.3368d9b1@wsk> In-Reply-To: <20240326123655.40666-1-matthias.schiffer@ew.tq-group.com> References: <20240326123655.40666-1-matthias.schiffer@ew.tq-group.com> Organization: denx.de X-Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/NP2qDeJCkPvX5.p498HS=_l"; protocol="application/pgp-signature"; micalg=pgp-sha512 X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean --Sig_/NP2qDeJCkPvX5.p498HS=_l Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Matthias, > From: Michael Krummsdorf >=20 > The switch has 4 ports with 2 internal PHYs, but ports are numbered up > to 6, with ports 0, 1, 5 and 6 being usable. >=20 > Fixes: 71d94a432a15 ("net: dsa: mv88e6xxx: add support for MV88E6020 > switch") Signed-off-by: Michael Krummsdorf > Signed-off-by: Matthias Schiffer > --- >=20 > I was unfortunately too busy to notice the issue when the patch this > Fixes was resubmitted in my name. It would have been better to change > my From into a Based-on-patch-by or similar when modifying it The "discussion" about this work was lasting at least a few months with several iterations and changing the design decisions ... > - and > the final version obviously wasn't even tested on an 88E6020... Can you share on which kernel version have you tested the patch that you claim that testing was omitted? >=20 > Best regards, > Matthias >=20 >=20 > drivers/net/dsa/mv88e6xxx/chip.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) >=20 > diff --git a/drivers/net/dsa/mv88e6xxx/chip.c > b/drivers/net/dsa/mv88e6xxx/chip.c index 9ed1821184ece..c95787cb90867 > 100644 --- a/drivers/net/dsa/mv88e6xxx/chip.c > +++ b/drivers/net/dsa/mv88e6xxx/chip.c > @@ -5503,8 +5503,12 @@ static const struct mv88e6xxx_info > mv88e6xxx_table[] =3D { .family =3D MV88E6XXX_FAMILY_6250, > .name =3D "Marvell 88E6020", > .num_databases =3D 64, > - .num_ports =3D 4, > + /* Ports 2-4 are not routed to pins > + * =3D> usable ports 0, 1, 5, 6 > + */ > + .num_ports =3D 7, > .num_internal_phys =3D 2, > + .invalid_port_mask =3D BIT(2) | BIT(3) | BIT(4), > .max_vid =3D 4095, > .port_base_addr =3D 0x8, > .phy_base_addr =3D 0x0, 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_/NP2qDeJCkPvX5.p498HS=_l Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEgAyFJ+N6uu6+XupJAR8vZIA0zr0FAmYCzuAACgkQAR8vZIA0 zr0WZQf/TS8tiLOb/uxni7yXlc91NzpTBzJttjl0eCjVQXLAAM91ACAh31rDNN9V SpzRqygxu7tCrijEtp4mdNk1M2Q0Yv6dJ+nzDXQwcBfCoXZ8aoW15gO0Dl82Ndso Xe1zfzC42AUucu4MIP/gJSYt6zCcUxX2qhoQ/QD8HMHPabR52XviVmIRu+8DswaK gu7DLLKGOUZdY3bczYlo+yp+M1Lr+6lAJLuBoERP/xOXZ1pjhluYtvsFFJcvzxzk EGU27rFF/vo8qfjaOHQ2gXQT3/IvTEMebT7lVLP71bs71Gnm1/R2uwKhDr2SWpbh v8biXDw0AFh1iAm0ecFoOCmu1mSOCQ== =mBsF -----END PGP SIGNATURE----- --Sig_/NP2qDeJCkPvX5.p498HS=_l--