Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp74544lqo; Wed, 27 Mar 2024 07:20:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVAN9ldiemv+6DT/EklrndeQ7EsxaoRHZ8baZOwPgqOGqgEsBSSb/vnzTJp5XB/HzoXbpsY4gmdFrt1zx2+0KMjyAuby0m+Lgyf80faRA== X-Google-Smtp-Source: AGHT+IEvoWnFO84Utmakw07T4jF52s8L8yWdxeg/R4hlK9t/GXa6DboCbCirjycy1iNsF6j0p3ul X-Received: by 2002:a05:620a:1909:b0:789:f57c:af99 with SMTP id bj9-20020a05620a190900b00789f57caf99mr3427584qkb.2.1711549219965; Wed, 27 Mar 2024 07:20:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711549219; cv=pass; d=google.com; s=arc-20160816; b=yCBsF1Hsbvh1lFO2LxPDINg+hNBhHPJt/WolPnzkYOPANKna6043vv8xK7WRlVgoBP 9aMEk8y3rt54xFTf2IGdiLngUDh0Qyt0ro1wXaL6V9zb4SKv5ruKOUCudBPO/BxYJfMm JsVSIT9OxGgikAdwhIJ1ZKgVkoI9aUuEQIcw3el5G/Vlob1FeQhqD88dv7IFIxyd2G2W /qSzM0u+PkLeJArXlSDpj4HA6J6haHFhe+T8FatKPgvxOr7l7KBmHNZZKL/f7pZoW6+Z KM012JmnYdJkLnKmXI9nbr0TuX7JNmYEvp+cbzEUNUmWx2p6f0eqX+EsUPNBtbeOIi8n ChSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=3Z065/I/LAJeMMl4zDwMUynhzEkIt59RXYcO6jgtIMk=; fh=4kHb72JHPMt5hSmQvW80LDOnsI0FuXIkkPlUJPdjDlA=; b=qr9Yp5+xqLgsn/1ieS+n5yn++hx1Li4aJ3wg/5FJ67HrWbAU7EMmbQzfi283+azrim 1lgUyw4Q+bXWwE16tvZ5BF+plSIZFo9HbbEHFLRO32Uqxj+vFhHf+dnrm6GZ+61fcbrF kxsYiMF6I798k3U2yL50221msnId1ToPLKZgFL73WBYdFYw9q0yRQ3iSjP1pBDR4PTWR KyBSO3QS6UKZxFKNneQDjBU/GHCckGAqbRPnKBB0taLs6Bn7tdam8ywlw3T30Xufcuyk /wle/iG4vkFhw1nyP5VirVWRet+EOF6UUKFMqoeDSw5mHlbRpOV1qvFsjkDnJTVnJE7+ L6QA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="EJMw9/TA"; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-121306-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121306-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id x1-20020ae9e641000000b00789ebd79664si10053536qkl.446.2024.03.27.07.20.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 07:20:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121306-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="EJMw9/TA"; arc=pass (i=1 spf=pass spfdomain=lunn.ch dkim=pass dkdomain=lunn.ch dmarc=pass fromdomain=lunn.ch); spf=pass (google.com: domain of linux-kernel+bounces-121306-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121306-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id AD2201C2C773 for ; Wed, 27 Mar 2024 14:20:19 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7DC2B14AD0D; Wed, 27 Mar 2024 12:44:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="EJMw9/TA" Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7D2414A62F; Wed, 27 Mar 2024 12:44:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=156.67.10.101 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711543498; cv=none; b=jIk6siq8qoD5jwOybKj/m6knrcxrqGyxH1DO0+9T8D4T0ovoUCW5ygAMQMLGBgP0YpsWa/8gBDPI/HD952lXEn3fCoSRP8XWqdnFNY7shxIvtXvFlhusEMEWN6kt3ad9NNKdABG3bI2a0jXcC9fkj69ycbTiv/N3qc237Nk7Nq0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711543498; c=relaxed/simple; bh=KVlZQj8XUXytiuallTU5/HL5sY9jCIpvzzH0zeKt83Q=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=f3ORjcVRuV72E0gSBpwxkeSoN0l42OVebeTF8HwTkjlL2OknkVwBNvftBLxo0NqzQ+14MGhP0D1SaQKhKh2b+MHLaf4oPqNJpj+hwv+eCe/2NWXBH81MVjzL2I5BKlCfczisQPwxDzfrEjWU1Ab+a+wNwFovgpkXl/r3onZemnM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b=EJMw9/TA; arc=none smtp.client-ip=156.67.10.101 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=3Z065/I/LAJeMMl4zDwMUynhzEkIt59RXYcO6jgtIMk=; b=EJMw9/TA1wYV7JIcoHAuzkCiJ2 HufeCrgBWSCHMToIRIQ37ReXIp7lpICMVVy7ZEYrTS+D4LsBDCQjhiv7jfXQxvfq346cl4JAit+WN n8OPb5GUx+wTpsdo30Zi82UdILDJnZ+a0TvxhBRx/5EqUisrL5fXRVfHquK6V6VylDVI=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rpSe7-00BOLU-GL; Wed, 27 Mar 2024 13:44:47 +0100 Date: Wed, 27 Mar 2024 13:44:47 +0100 From: Andrew Lunn To: Matthias Schiffer Cc: Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Lukasz Majewski , 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: References: <20240326123655.40666-1-matthias.schiffer@ew.tq-group.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240326123655.40666-1-matthias.schiffer@ew.tq-group.com> On Tue, Mar 26, 2024 at 01:36:54PM +0100, Matthias Schiffer wrote: > From: Michael Krummsdorf > > 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. > > Fixes: 71d94a432a15 ("net: dsa: mv88e6xxx: add support for MV88E6020 switch") > Signed-off-by: Michael Krummsdorf > Signed-off-by: Matthias Schiffer > --- > > 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 - and the > final version obviously wasn't even tested on an 88E6020... > > Best regards, > Matthias > > > drivers/net/dsa/mv88e6xxx/chip.c | 6 +++++- > 1 file changed, 5 insertions(+), 1 deletion(-) > > 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[] = { > .family = MV88E6XXX_FAMILY_6250, > .name = "Marvell 88E6020", > .num_databases = 64, > - .num_ports = 4, > + /* Ports 2-4 are not routed to pins > + * => usable ports 0, 1, 5, 6 > + */ > + .num_ports = 7, > .num_internal_phys = 2, > + .invalid_port_mask = BIT(2) | BIT(3) | BIT(4), This patch does what the commit message suggests. So Reviewed-by: Andrew Lunn It would however be nice to fully understand how it currently works for the deployed use case, just to ensure we are not missing something. Andrew