Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7139928rwl; Wed, 22 Mar 2023 23:05:09 -0700 (PDT) X-Google-Smtp-Source: AKy350aY3ietDpH+mKTZL4qtlwTuiYISlAhiipfXj5a1pM1ng/s7HBp7uZKlXLzbEDvWlMgU8fKP X-Received: by 2002:a17:902:c40b:b0:1a2:749:5f1a with SMTP id k11-20020a170902c40b00b001a207495f1amr511822plk.26.1679551509142; Wed, 22 Mar 2023 23:05:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679551509; cv=none; d=google.com; s=arc-20160816; b=MpiSuffzNBv8w4j7VrwxNcUOD60stMt0kW8IegrCEiXhitELgbSHah6i9cHjfQhZuD fvoZPUr4NXZx4qTnaH3Msyfccz59kCUuUy8avEnh6v3V3HHkEdZyy7o3EQ+el4V1i1DV G9WrfXImWNS/2FxlSTYMFMxHSkQn6XXMF6rwcs8CihvLCT7GNlsXWkJJ4Iujg+kRNHAr wnSV9aAr1BOOm3jzqWTumNtOipqdyp6pa2tleGYZrxAl++S+OiOw3+SKHCfzkCkSLs33 yR2uS2ABDqS8+ZfmVROc8QZIeRD+pFmvzk4kn5JowFARMQMQCGtdT4xgE0dlrc/3tloC xnEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=CxBmwzguVIjtR92H5WQ762LYDgjd53WKkAsT/jbSCMM=; b=LLzS9wpdmTwlJtK5gVOGcbv1DwkSRfHWyB6vIMwARbCZEQNZGv9PdhvuRdhBl5oIsM Bbx+pvy7MD7n8KDTRHPoGgywDaF/c9Uh2Aqe8rIIZ/ILJvcfoqwk7Xyj5TRgcRjyNO8C DFw2g2k+LNnrRD/VHV9+RPylm1Qr4MJJBzEf/toVcGH3eEta2YHuxF7LYIIGQ8x4TbLQ 8vYCucXOp9FSUfGT9j9MOFk0YfZoQB+Vn0UC6nmyhIwybJbxGv2y11Cc0xczm+raCn3M zf3TAt84CgaBhD4PrY+iUzvLOhLsNFfqOEeVT4l/5gceeLBcL+ITBzW0iYh+KnBZkvco XpBA== ARC-Authentication-Results: i=1; mx.google.com; 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 r4-20020a63d904000000b004fc25f024b7si17885923pgg.169.2023.03.22.23.04.58; Wed, 22 Mar 2023 23:05:09 -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; 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 S229877AbjCWGAw (ORCPT + 99 others); Thu, 23 Mar 2023 02:00:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41460 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229796AbjCWGAu (ORCPT ); Thu, 23 Mar 2023 02:00:50 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1BAEF2473E for ; Wed, 22 Mar 2023 23:00:49 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pfE04-0001NC-1K; Thu, 23 Mar 2023 07:00:36 +0100 Received: from ore by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1pfE02-0004PC-Hv; Thu, 23 Mar 2023 07:00:34 +0100 Date: Thu, 23 Mar 2023 07:00:34 +0100 From: Oleksij Rempel To: "David S. Miller" , Andrew Lunn , Eric Dumazet , Florian Fainelli , Jakub Kicinski , Paolo Abeni , Vladimir Oltean , Woojung Huh Cc: UNGLinuxDriver@microchip.com, linux-kernel@vger.kernel.org, kernel@pengutronix.de, netdev@vger.kernel.org Subject: Re: [PATCH net v1 6/6] net: dsa: microchip: ksz8: fix MDF configuration with non-zero VID Message-ID: <20230323060034.GF23237@pengutronix.de> References: <20230322143130.1432106-1-o.rempel@pengutronix.de> <20230322143130.1432106-7-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20230322143130.1432106-7-o.rempel@pengutronix.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 A typo in subject s/MDF/MDB On Wed, Mar 22, 2023 at 03:31:30PM +0100, Oleksij Rempel wrote: > FID is directly mapped to VID. However, configuring a MAC address with a > VID != 0 resulted in incorrect configuration due to an incorrect bit > mask. This kernel commit fixed the issue by correcting the bit mask and > ensuring proper configuration of MAC addresses with non-zero VID. > > Fixes: d23a5e18606c ("net: dsa: microchip: move ksz8->masks to ksz_common") > Signed-off-by: Oleksij Rempel > --- > drivers/net/dsa/microchip/ksz_common.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/dsa/microchip/ksz_common.c b/drivers/net/dsa/microchip/ksz_common.c > index 4929fb29ed06..74c56d05ab0b 100644 > --- a/drivers/net/dsa/microchip/ksz_common.c > +++ b/drivers/net/dsa/microchip/ksz_common.c > @@ -404,7 +404,7 @@ static const u32 ksz8863_masks[] = { > [VLAN_TABLE_VALID] = BIT(19), > [STATIC_MAC_TABLE_VALID] = BIT(19), > [STATIC_MAC_TABLE_USE_FID] = BIT(21), > - [STATIC_MAC_TABLE_FID] = GENMASK(29, 26), > + [STATIC_MAC_TABLE_FID] = GENMASK(25, 22), > [STATIC_MAC_TABLE_OVERRIDE] = BIT(20), > [STATIC_MAC_TABLE_FWD_PORTS] = GENMASK(18, 16), > [DYNAMIC_MAC_TABLE_ENTRIES_H] = GENMASK(1, 0), > -- > 2.30.2 > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |