Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6192730rwl; Wed, 22 Mar 2023 07:38:41 -0700 (PDT) X-Google-Smtp-Source: AK7set8MVV4hIZFiwVynEVdFCmPjbtyNmPj1BCQA/BO1z2C9UqBrrptx72vxK4bi1DPP4igajjUd X-Received: by 2002:a17:906:78e:b0:905:a46b:a725 with SMTP id l14-20020a170906078e00b00905a46ba725mr2319442ejc.16.1679495921631; Wed, 22 Mar 2023 07:38:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679495921; cv=none; d=google.com; s=arc-20160816; b=MBBonpaMEGUD5RmZSyrF2nudwfbzHGlYt+uuywibfgFbEzTWalh5trmz8dDVXHgdLF iOpTTe8+2TK1ylWidgAvfLTHEksCvDUxtiBawQlLHAHBFkMDPfrKw0nU3wrKdRU5rEm2 jY8wRwHsSsQVBFIOMoz/F3l2qVuqlHB+m0arpqkVFWwOeUtSATe6PLC3zr6qchvUOSKk N8BYULi84CPUS5zHVZPrWZtvkClaccDHpH36kOumu/ftiuFht5/0afgGcT8Sp/70cMlK +zUsmSI3uMnKCJ6nhrUNAfn5cgweeIOX2OWW3H4YuNHxf8H9jkZNgJDcc4mJV96nZ22t QptA== 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:date:subject:cc:to:from; bh=WPXfawoAPZIhrLeJjVGUO/6X1PFuKGP46KbvihpELhM=; b=Os1XnJRNYeqa+YbflNZzGRG5voca72LzheFxgZI5aIsl4+3J1v6jBkPURaxmixsskO aqxPlps8AZFswCqYjqeRIwUHBuCSTiucfHFxNqa0Z8e+RYRQa2Fi/kwlTbNv8+NXlEg7 YWwyuTH9YfHOX/EX1HQ5vYGMxcHfoP5rxF2W+3IkQwCEqgUdCEc7ynxMwJkWobSTCGGZ scbuOw9ZbYYEnm6mnKBt7IFm4eFwTNRiCXWp7Hm3ZOSAFsAp8f2RI7y/pOP8Euh54HVw m4KzH1ZVdhtWfCNN1VY16jKPTseUTZUh73kTb4hZHStVF5GKw2S5Z9zpumQ/Kv4OSWGj ObvQ== 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 e21-20020a50fb95000000b004fb3426ea95si16631140edq.322.2023.03.22.07.38.18; Wed, 22 Mar 2023 07:38:41 -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 S231535AbjCVOcF (ORCPT + 99 others); Wed, 22 Mar 2023 10:32:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231509AbjCVObr (ORCPT ); Wed, 22 Mar 2023 10:31:47 -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 1203262B5B for ; Wed, 22 Mar 2023 07:31:47 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pezV1-0003PF-As; Wed, 22 Mar 2023 15:31:35 +0100 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1pezUy-005wWO-VX; Wed, 22 Mar 2023 15:31:32 +0100 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1pezUx-0060Zu-3W; Wed, 22 Mar 2023 15:31:31 +0100 From: Oleksij Rempel To: "David S. Miller" , Andrew Lunn , Eric Dumazet , Florian Fainelli , Jakub Kicinski , Paolo Abeni , Vladimir Oltean , Woojung Huh Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com Subject: [PATCH net v1 3/6] net: dsa: microchip: ksz8: fix offset for the timestamp filed Date: Wed, 22 Mar 2023 15:31:27 +0100 Message-Id: <20230322143130.1432106-4-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20230322143130.1432106-1-o.rempel@pengutronix.de> References: <20230322143130.1432106-1-o.rempel@pengutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 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 We are using wrong offset, so we will get not a timestamp. 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 3a1afc9f4621..c914449645ca 100644 --- a/drivers/net/dsa/microchip/ksz_common.c +++ b/drivers/net/dsa/microchip/ksz_common.c @@ -423,7 +423,7 @@ static u8 ksz8863_shifts[] = { [DYNAMIC_MAC_ENTRIES_H] = 8, [DYNAMIC_MAC_ENTRIES] = 24, [DYNAMIC_MAC_FID] = 16, - [DYNAMIC_MAC_TIMESTAMP] = 24, + [DYNAMIC_MAC_TIMESTAMP] = 22, [DYNAMIC_MAC_SRC_PORT] = 20, }; -- 2.30.2