Message ID | 20230526073445.668430-1-o.rempel@pengutronix.de |
---|---|
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp292550vqr; Fri, 26 May 2023 00:46:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Cy84rrDDospwry+igJdrwpfMpQAYIkKi2ANRR6OAuq/rA+dMmM6I74cLKgORed5GTETnA X-Received: by 2002:a05:6a20:e48f:b0:10b:e39a:b50e with SMTP id ni15-20020a056a20e48f00b0010be39ab50emr1208737pzb.36.1685087171619; Fri, 26 May 2023 00:46:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685087171; cv=none; d=google.com; s=arc-20160816; b=dthcmlo8sq9nmioD3HAWS2tOu62WR2ZNarmHcztYJEngO+CsuyNnZG48HR07zUNywW T+bux2lqPgnVRLlzIoXIN9ZDbyGsTmM0qC31sjn3kSlwY0AzikCVTp9b3dfRvk78NJE+ +de68jft34OCLEvuMWBWDvO6UmorfxgsR2XE6OvimeV47xiQyHYyrizvXm/1hTjvgmiJ IxogIHPfetHHvHule0FxlwAXl6Cx/O2/+rR6hP+S3lP369J2Q3PIuoeb3A5xl0/Que5E f4UtSeQMEbLYRXWTGvb6hdiDol38lVkmXavmFYyJzOB59FLsWQ0gOi0ESTuW1kBjyRW5 RpDg== 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 :message-id:date:subject:cc:to:from; bh=idPrVu2P3d6FkOZFToJUE+z76BNWrxwdhGFYwyXIg7M=; b=hqbWTGkjSIinAmHYa7C9CTLBd2bFeKMqA/xDSWAXOJ0+aMhcccutmTJF7pqQ9xUjw/ tFeXe430y3bOAcnEu727phAIHyZIck3G9TfMagluQPNYIsmdwtv1PVHJGeHxyjczuB35 mREsv15ARb3nbz7N75r+j2oWdjqfHzby6uBYPbbjZshoyrZPP9oqpnR5XX/tLPsvpyQ5 Vtz49q+qibNqrMgA8vazseFME3B5YJhApu3cLyyeqZdJyrpI7GVx3XGt1VAQ2njuNCVX xqnVhJkj/hwGzzapvKN7Qmt0d50PdicaKIbR7H3qnhLNAY2PsZo+v+yRdIzxBVnQiz+J e9ZA== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h11-20020a65480b000000b005308fb9619asi3176774pgs.54.2023.05.26.00.45.57; Fri, 26 May 2023 00:46:11 -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 S242481AbjEZHf7 (ORCPT <rfc822;zhanglyra.2023@gmail.com> + 99 others); Fri, 26 May 2023 03:35:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229790AbjEZHfj (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 26 May 2023 03:35:39 -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 C1B7A10C7 for <linux-kernel@vger.kernel.org>; Fri, 26 May 2023 00:35:05 -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 <ore@pengutronix.de>) id 1q2RyL-0005lc-Dw; Fri, 26 May 2023 09:34:49 +0200 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 <ore@pengutronix.de>) id 1q2RyJ-002u6s-Ar; Fri, 26 May 2023 09:34:47 +0200 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from <ore@pengutronix.de>) id 1q2RyI-002ntb-5y; Fri, 26 May 2023 09:34:46 +0200 From: Oleksij Rempel <o.rempel@pengutronix.de> To: "David S. Miller" <davem@davemloft.net>, Andrew Lunn <andrew@lunn.ch>, Eric Dumazet <edumazet@google.com>, Florian Fainelli <f.fainelli@gmail.com>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, Vladimir Oltean <olteanv@gmail.com>, Woojung Huh <woojung.huh@microchip.com>, Arun Ramadoss <arun.ramadoss@microchip.com> Cc: Oleksij Rempel <o.rempel@pengutronix.de>, kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com, "Russell King (Oracle)" <linux@armlinux.org.uk> Subject: [PATCH net-next v2 0/5] Microchip DSA Driver Improvements Date: Fri, 26 May 2023 09:34:40 +0200 Message-Id: <20230526073445.668430-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.39.2 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=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1766941966250763269?= X-GMAIL-MSGID: =?utf-8?q?1766941966250763269?= |
Series |
Microchip DSA Driver Improvements
|
|
Message
Oleksij Rempel
May 26, 2023, 7:34 a.m. UTC
changes v2: - set .max_register = U8_MAX, it should be more readable - clarify in the RMW error handling patch, logging behavior expectation. I'd like to share a set of patches for the Microchip DSA driver. These patches were chosen from a bigger set because they are simpler and should be easier to review. The goal is to make the code easier to read, get rid of unused code, and handle errors better. Oleksij Rempel (4): net: dsa: microchip: improving error handling for 8-bit register RMW operations net: dsa: microchip: remove ksz_port:on variable net: dsa: microchip: ksz8: Prepare ksz8863_smi for regmap register access validation net: dsa: microchip: Add register access control for KSZ8873 chip Vladimir Oltean (1): net: dsa: microchip: add an enum for regmap widths drivers/net/dsa/microchip/ksz8795.c | 28 ++------- drivers/net/dsa/microchip/ksz8863_smi.c | 13 +++- drivers/net/dsa/microchip/ksz9477.c | 24 ++++---- drivers/net/dsa/microchip/ksz9477_i2c.c | 2 +- drivers/net/dsa/microchip/ksz_common.c | 47 ++++++++++++++- drivers/net/dsa/microchip/ksz_common.h | 77 +++++++++++++++++------- drivers/net/dsa/microchip/ksz_spi.c | 2 +- drivers/net/dsa/microchip/lan937x_main.c | 8 +-- 8 files changed, 135 insertions(+), 66 deletions(-)
Comments
Hello: This series was applied to netdev/net-next.git (main) by Paolo Abeni <pabeni@redhat.com>: On Fri, 26 May 2023 09:34:40 +0200 you wrote: > changes v2: > - set .max_register = U8_MAX, it should be more readable > - clarify in the RMW error handling patch, logging behavior > expectation. > > I'd like to share a set of patches for the Microchip DSA driver. These > patches were chosen from a bigger set because they are simpler and > should be easier to review. The goal is to make the code easier to read, > get rid of unused code, and handle errors better. > > [...] Here is the summary with links: - [net-next,v2,1/5] net: dsa: microchip: improving error handling for 8-bit register RMW operations https://git.kernel.org/netdev/net-next/c/2f0d579956e8 - [net-next,v2,2/5] net: dsa: microchip: add an enum for regmap widths https://git.kernel.org/netdev/net-next/c/b8311f46c6f5 - [net-next,v2,3/5] net: dsa: microchip: remove ksz_port:on variable https://git.kernel.org/netdev/net-next/c/bb4609d27f89 - [net-next,v2,4/5] net: dsa: microchip: ksz8: Prepare ksz8863_smi for regmap register access validation https://git.kernel.org/netdev/net-next/c/ae1ad12e9da4 - [net-next,v2,5/5] net: dsa: microchip: Add register access control for KSZ8873 chip https://git.kernel.org/netdev/net-next/c/d0dec3333040 You are awesome, thank you!