Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp2210535pxp; Mon, 21 Mar 2022 13:59:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/fvIKBsVT3Epc5ZNE0sawYfkas+SbprZUG8s1sKsyKAD9DRTagOpVTrDS23DtUb7h/ck9 X-Received: by 2002:a17:90a:77c6:b0:1bd:5ce1:1966 with SMTP id e6-20020a17090a77c600b001bd5ce11966mr1042372pjs.230.1647896367713; Mon, 21 Mar 2022 13:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1647896367; cv=none; d=google.com; s=arc-20160816; b=NAZHOEDY6d4QfYv6Ofc4gbYZPRq1cYkGMgW+ydiJMToFjjYN9zLQntiXFJy3Ut1Zfx yCxBuN0H3UNsPefEFunMn9mMotazdUHevVz+xGSw1K6XGSiA261XvjOT6kInv6MY6yGV CvswvjkLf7VwSuMss5GpRV0MXqUmkimQb78JqZOeUkKQnzBOjHKdD0VhFoTQCJ0X6waJ 90GxWkBAKcIKzr/othjHzKdnN9ll+DWc2bM8fp3X5ZvPbn4iseT0YNLRRANmLILKfAl0 akSw4oX81gkW1mF3syJ4c8AWQYO9xzHW1rXEfXJDSLeQ8Eh5J1090tuOcCL9pbq0uBbd vIVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=SLhqOb3+6D7AkA2ZMJgiGQbfMkpoxtBJVOtPeBrWzGY=; b=TtYQw157Wee0ikzczPQk35ctWGHf1ZMOzX5yENBRHELYNwCdWEJ/kFhSxmHsKJ5hBX vTKKP3dxxpUPfrr5Dw+vtYHgsacjSKznSOFja+eVRLMyV/9ADIX2O4ZIh4wRMOtQpVn9 W87MZsGhNg9pVHnL/9DR97OxKiz+Y/ciPl4Tb+KaR39/RmSL36qjVBJksowTEcqZSvbx DX46jDNwAdFRy2cFlW+HCg5Zsgq7NO8SnzLXk89/+fF6+Zy4xY0qf6qVVsuaqU+IIdwt yP+OlzGi4tG2KpahLZk2McM5h41SQu14MQa66+742cc7/OO6qUcIx2Opv/+uUJ3vhXrq 8IoQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pot78D0+; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id a21-20020a637f15000000b003816043ef0dsi14259914pgd.258.2022.03.21.13.59.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Mar 2022 13:59:27 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pot78D0+; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E123819A55D; Mon, 21 Mar 2022 13:57:03 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243954AbiCSTCN (ORCPT + 99 others); Sat, 19 Mar 2022 15:02:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243962AbiCSTCL (ORCPT ); Sat, 19 Mar 2022 15:02:11 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 125C28CCEB; Sat, 19 Mar 2022 12:00:49 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 4C2F7CE02C1; Sat, 19 Mar 2022 19:00:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 55F50C340EC; Sat, 19 Mar 2022 19:00:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1647716446; bh=SLhqOb3+6D7AkA2ZMJgiGQbfMkpoxtBJVOtPeBrWzGY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=pot78D0+1COTWvvVguRMa1jMzLgKMTbjKP4xmjODRO5+Guhy/uGO4sS6F3Ez1zbqF krWAGbKW6a2W5kaCeJIXMVYEFR+UoQ6eZpSg0gMa7h794Y0t/ak915umS4dKvXwi9e jEv25ICqKpVzdtfddiosS8RmvyUgR6N/GNN2Hob9ZP8qbZTdZnKW8nOkXyT8hDfiS3 mAjsKZ2G6QfOfpsQVrSfzRur7WbYE7pCe3IQ5rOUN0R1NNesBNEJAIXgfj018WAt8F r0cAiSlHY3GgIhzcixlQgb7e0h4FQiw0Ng2TZ43YSE/v0rvtoOhrjQR98rn7Caq9WB 4CxnFmsa9T33A== Date: Sat, 19 Mar 2022 20:00:41 +0100 From: Marek =?UTF-8?B?QmVow7pu?= To: Tobias Waldekranz Cc: davem@davemloft.net, kuba@kernel.org, Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , Paolo Abeni , Russell King , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net: dsa: mv88e6xxx: Fill in STU support for all supported chips Message-ID: <20220319200041.12d6d1c8@thinkpad> In-Reply-To: <20220319110345.555270-1-tobias@waldekranz.com> References: <20220319110345.555270-1-tobias@waldekranz.com> X-Mailer: Claws Mail 3.18.0 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Sat, 19 Mar 2022 12:03:45 +0100 Tobias Waldekranz wrote: > Some chips using the split VTU/STU design will not accept VTU entries > who's SID points to an invalid STU entry. Therefore, mark all those > chips with either the mv88e6352_g1_stu_* or mv88e6390_g1_stu_* ops as > appropriate. >=20 > Notably, chips for the Opal Plus (6085/6097) era seem to use a > different implementation than those from Agate (6352) and onwards, > even though their external interface is the same. The former happily > accepts VTU entries referencing invalid STU entries, while the latter > does not. >=20 > This fixes an issue where the driver would fail to probe switch trees > that contained chips of the Agate/Topaz generation which did not > declare STU support, as loaded VTU entries would be read back as > invalid. >=20 > Fixes: 49c98c1dc7d9 ("net: dsa: mv88e6xxx: Disentangle STU from VTU") > Reported-by: Marek Beh=C3=BAn > Signed-off-by: Tobias Waldekranz Tested-by: Marek Beh=C3=BAn