Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2057612lqz; Tue, 2 Apr 2024 06:15:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXr1bzbJcjmECBERWodKWCrizG8m8sAC1LHMkHaxZWw+jSHNCtHpXn9GVKz1UVvW9VtMrS2Xh5e4/kCBgt5O1FUr3+09GO6RWmtT2TGWw== X-Google-Smtp-Source: AGHT+IEmudsHoPVzAKLWiVvT5fN8fvGulJfXvRkQDujeK8JydT5RPYzJajTRzaq2RGBA3P7A0pQ5 X-Received: by 2002:a17:906:6a0b:b0:a4e:2c84:6424 with SMTP id qw11-20020a1709066a0b00b00a4e2c846424mr10356100ejc.56.1712063713218; Tue, 02 Apr 2024 06:15:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712063713; cv=pass; d=google.com; s=arc-20160816; b=vCK4uMe3EtWbWwC52IAO7GuAZTuvbT81AahrNWpFl0BHWHM8Yfe4F8SAcFgU8kPgSo 429ghvicJM4iD8sFbdHBxraBajKwXJhthjtVqB0ML+tK71MjPIcuulDl6eZmFuyCyj5f eTzZZIDHFA+7WvqEt55+Km0Se0NzbyQ6ZiT0a+7MCP4lde7kGHZyQoGX9+B0mNNGZDjQ KILOTumfGliOcUQ06Of4n5Sc0jgr5Cg32po5Qr+00TkQBO9T8uFjWDbcNAPxE6ssH0r5 WJZDzntqMkfFbs0hpwUDdndsui1v+wRElffbAr5dt3c2n2FWRZTQqy3OhOr6ZpptpY8V 1Q5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=WKle+fs6VeBfn6yPpGpvzPS/+K3cxbP5iu+r0tzkZJM=; fh=+wuPl0jVtcYGOKyQ4dCrYwpLO51Md4SLm1XlQV1l1VE=; b=Rw1Qgj2oVyl+uTVjpn4xKx0dUsDxubbA3DqroMGmEOcrIGHRMuy/PX3JMPargiYXeh larYfD6otYIcULJoVPJAZPzLkGFtF5DSx6EUQfERSjvCvbjN1uNWCeNtrDyxddjThYuC WQRRLPGT+BkVYFezxvVRrh+8fmUf4SWNi6PCVBsUg/8DHAR3q+4GgvSnvz/wcqWvLqoY RHyzn945JrXrrYD+blZXV4AeNKvN8ObFKc42jyL18OJe8oyUdZc3AkDq/erxDWPQaUMi OiUvaD2C+wYg0FIUXLuijGEFGC/mF7e2LwcBHt2o9zp8XNB7f3W+dyX6CHwHT93uM5Z5 1Zgg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-128013-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128013-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id y10-20020a1709063daa00b00a474b7dd311si5739694ejh.694.2024.04.02.06.15.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 06:15:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128013-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=pengutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-128013-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128013-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id CE6011F21838 for ; Tue, 2 Apr 2024 13:15:12 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9492483CDA; Tue, 2 Apr 2024 13:13:53 +0000 (UTC) Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [185.203.201.7]) (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 06FF560DE9 for ; Tue, 2 Apr 2024 13:13:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.203.201.7 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712063632; cv=none; b=KFuOuiiqSddXylRLbVSKSjBCrLV6r4oxxJiqSp+vY1MJLY66qUnYDBTrrrIwvctoMVstnCCjEH/DyjOTyrE3gep5HsMO6KCmySWwItf/2FHldsIi76TKc78Nu+kqBF9NLw0e2cplSKig/StsfNtF04iqsoYA4bfnyby8RH6aD/c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712063632; c=relaxed/simple; bh=EHoM22GRydz72htz26DdckIjRjxIqIKBM9jYuxEu6XM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=Of/idZN1lXow92YA77ZkSiwlu8ABuM3iFr6Ei8WnMkvQzjtAw8/TEgtTS4sVihipTIQvRtYQdVamKtFGIeLCwa8pWeVV9dRomz0O1rKxo7MhNDPHXCFaR7/xBFsUdDYApr6LcermoXi77hIlfDmDulJBaoRn47Dl59UYQ/2WF4o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de; spf=pass smtp.mailfrom=pengutronix.de; arc=none smtp.client-ip=185.203.201.7 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rrdxN-0007Ng-MW; Tue, 02 Apr 2024 15:13:41 +0200 Received: from [2a0a:edc0:0:1101:1d::ac] (helo=dude04.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rrdxM-009zW0-D7; Tue, 02 Apr 2024 15:13:40 +0200 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1rrdxM-006Ooh-15; Tue, 02 Apr 2024 15:13:40 +0200 From: Oleksij Rempel To: "David S. Miller" , Andrew Lunn , Eric Dumazet , Florian Fainelli , Jakub Kicinski , Paolo Abeni , Vladimir Oltean , Woojung Huh , Arun Ramadoss Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com, =?UTF-8?q?S=C3=B8ren=20Andersen?= Subject: [PATCH net-next v1 0/8] net: dsa: microchip: ksz8: refactor FDB dump path Date: Tue, 2 Apr 2024 15:13:31 +0200 Message-Id: <20240402131339.1525330-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Refactor FDB dump code path for Microchip KSZ8xxx series. This series mostly makes some cosmetic reworks and allows to forward errors detected by the regmap. Oleksij Rempel (8): net: dsa: microchip: Remove unused FDB timestamp support in ksz8_r_dyn_mac_table() net: dsa: microchip: Make ksz8_r_dyn_mac_table() static net: dsa: microchip: ksz8: Refactor ksz8_fdb_dump() net: dsa: microchip: ksz8: Refactor ksz8_r_dyn_mac_table() for readability net: dsa: microchip: ksz8: Unify variable naming in ksz8_r_dyn_mac_table() net: dsa: microchip: ksz8_r_dyn_mac_table(): ksz: do not return EAGAIN on timeout net: dsa: microchip: ksz8_r_dyn_mac_table(): return read/write error if we got any net: dsa: microchip: ksz8_r_dyn_mac_table(): use entries variable to signal 0 entries drivers/net/dsa/microchip/ksz8.h | 2 - drivers/net/dsa/microchip/ksz8795.c | 144 ++++++++++++------------ drivers/net/dsa/microchip/ksz8795_reg.h | 1 + 3 files changed, 75 insertions(+), 72 deletions(-) -- 2.39.2