From patchwork Tue Apr 2 13:13:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksij Rempel X-Patchwork-Id: 13614087 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 D3D7F8287D for ; Tue, 2 Apr 2024 13:13:51 +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=1712063633; cv=none; b=R+NX1+i5BA7TO2CwcRagHpxNN3ksMrpcEcSlcsFgD/JsUF3V2JuGYjqeaa48Hn5XkgDhPMBG7i8RDq2+j+uPYlI6abHmIpzH4C1XNUGE2UpAaLNQHGnvb97rKcczUuu8NS5cpWK9sjKxZSrmkddsVSGblYZtOebFJz4z8DzfOWE= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712063633; c=relaxed/simple; bh=EHoM22GRydz72htz26DdckIjRjxIqIKBM9jYuxEu6XM=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=ASYcrI3ii5RXnHfF/DUH4FBuWGBYM1R7pBPOkTyqxt1YmjVk+e2NktN3F/IZq8Gpu7gsVaQYxATPi3Da4NHuOPiParTjgPCbJTlCZ7qxS8tEaqWnK0e2YcvhHfVaoe+D1WHOUGXlty/1EZGa8Ns0gmGz2+Zs0iz497OMOFQefpM= 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_Andersen?= 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: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@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(-) Reviewed-by: Vladimir Oltean