From patchwork Tue Nov 8 05:43:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Oleksij Rempel X-Patchwork-Id: 1313 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp2503924wru; Mon, 7 Nov 2022 21:50:01 -0800 (PST) X-Google-Smtp-Source: AMsMyM5h3tpTrCtDMJgfpDdWCj37o/gTHYVGthA4BSS+3yZjiqfFuKm2hVSf8A+CsBtEob7folv0 X-Received: by 2002:a05:6402:b56:b0:461:91aa:11b7 with SMTP id bx22-20020a0564020b5600b0046191aa11b7mr55139988edb.220.1667886601065; Mon, 07 Nov 2022 21:50:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667886601; cv=none; d=google.com; s=arc-20160816; b=cBsW8BjnEeP7SkTAzoVlB7xFj5rr7h7AJpeCgO9IyPAJQBCtsMjg0ULH73fWDW302o fMJBXoD3JNrdR3Khkw3BZ+uC+2wQxPPKuBdvhJZkK9M+8AIxw0UlBPh/CFLlRAy//dVS W6urmBr87ZW5qnLmN84MSx1LUaJq6BRcQbGlbd7JZOIkYKoav3naVdkZeoDWJ3vm4zXa nXgLcA/M0fIByZh3liOYjj/sSx13TR/ypWPzpSWhNodeJ2NntG80hK9HSfYb1Y9aWqQC OXvRZYiXUCYbWJysLDBXxngmz9CbpW4BCdxz8GAicGqRSOOWanPb60Wa0B/qBDd1TxbO zpCQ== 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=6bfG2XmaPMPgXnehlv2xTNxFtaGpXJVNCrtWWwzqMBc=; b=OAJh+WJTaIL3RRAv4MIkR6U08QpcP80rl6lkEQkC0jEG9H9LDYFziG/aFjWTIWuCLP cRSP3P1rmHwDcRSCIv19qybKeI48CrINs9fE+c6fZRPszZvgTx5vtUyvjNdyF00k1EvQ sc6Oz6R4AVBwYaoxWPbWZng1E5mpb45gvloJSARo9bZoC+lyk49acSR48u6QQ2p2PnXd yGJYjDcHKu0dnwQ6imP0RJHMkP0wiG+wR3l0fGMgA8S/DxsAe/u3gjOIoBUyfhjcq6L9 5PA5GeCeipfPM7V1grzsV4cvGLq7TuSbCjcPeDeUxaZ6tkAmG4KZHBzXbJ9Hkyxc7y4c jxew== 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 g17-20020a056402321100b00461cb25bdefsi11741461eda.254.2022.11.07.21.49.36; Mon, 07 Nov 2022 21:50:01 -0800 (PST) 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 S233216AbiKHFnx (ORCPT + 99 others); Tue, 8 Nov 2022 00:43:53 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229521AbiKHFnv (ORCPT ); Tue, 8 Nov 2022 00:43:51 -0500 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 9750B20345 for ; Mon, 7 Nov 2022 21:43:50 -0800 (PST) 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 1osHOf-000571-59; Tue, 08 Nov 2022 06:43:41 +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 1osHOc-002zmn-43; Tue, 08 Nov 2022 06:43:39 +0100 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1osHOb-00HTlN-SR; Tue, 08 Nov 2022 06:43:37 +0100 From: Oleksij Rempel To: Woojung Huh , UNGLinuxDriver@microchip.com, Andrew Lunn , Vivien Didelot , Florian Fainelli , Vladimir Oltean , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Arun.Ramadoss@microchip.com Subject: [PATCH net-next v3 0/3] net: dsa: microchip: add MTU support for KSZ8 series Date: Tue, 8 Nov 2022 06:43:33 +0100 Message-Id: <20221108054336.4165931-1-o.rempel@pengutronix.de> X-Mailer: git-send-email 2.30.2 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.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 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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748905860593919589?= X-GMAIL-MSGID: =?utf-8?q?1748905860593919589?= changes v3: - rename KSZ8863_LEGAL_PACKET_SIZE -> KSZ8_LEGAL_PACKET_SIZE changes v2: - add ksz_rmw8() helper - merge all max MTUs to one location Oleksij Rempel (3): net: dsa: microchip: move max mtu to one location net: dsa: microchip: add ksz_rmw8() function net: dsa: microchip: ksz8: add MTU configuration support drivers/net/dsa/microchip/ksz8.h | 1 + drivers/net/dsa/microchip/ksz8795.c | 57 ++++++++++++++++++++++++- drivers/net/dsa/microchip/ksz8795_reg.h | 3 ++ drivers/net/dsa/microchip/ksz9477.c | 5 --- drivers/net/dsa/microchip/ksz9477.h | 1 - drivers/net/dsa/microchip/ksz9477_reg.h | 2 - drivers/net/dsa/microchip/ksz_common.c | 28 +++++++++--- drivers/net/dsa/microchip/ksz_common.h | 12 +++++- 8 files changed, 93 insertions(+), 16 deletions(-)