Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2434670rwd; Fri, 19 May 2023 05:55:30 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4UopYsF+TYxJeeaME/E1M7+RpAqEMcxFOqQMPaUf97PB6kazsj/KB4S+J8DaSooBV6bxaA X-Received: by 2002:a05:6a21:6d95:b0:107:35ed:285c with SMTP id wl21-20020a056a216d9500b0010735ed285cmr2357460pzb.32.1684500929805; Fri, 19 May 2023 05:55:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684500929; cv=none; d=google.com; s=arc-20160816; b=p0qtDrEAUCJgFC2wEV3qEUAC5VyL8i0+6+z7wrp3AjjjpBPwZ29mREee5uipjjOR2+ b/PQ5bpaB/b8d7hqePhGg7jACVr4KPCfolXq/0vgei6cP4n4ySMLigsVpKUPYrxY7Zo3 o7knOfFwhNr9rm7fEet0pxFiOatnEZUu6TYNkEkBH6JhcYxizyVM1ezdzuWqhSNLJTYM bx9UzzKseFvyHZDGzMGe5OaX/DlB2PYkh5brTZ81noz8pL7jiLBlLMSB84mNp90/77ID W+vXG5lM1m1NmYVEFOrFdUsb19SHWHt6EmQ81B5g5ZXpfkMNWDHnBpNSMaP4MnrS/6NR YHWw== 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=Wfae9/GHDDOCOlMIWqMPxZy8tMJzwIKwLcKjb60GPyk=; b=nsszPxxvy2tlXsfhU++046J88TLEd6bqT79mGc1I5F5EUzTg0ymoMBWcif6YtyARx7 N2Xvj7OChfCQRUf1Eb1dpFkNRCvTZL/Y6TCtO3wUCuCaPqrpE6Lf+1jyoAmQ8PSTtmq/ D8iKd37nYjoPZvP5pbLDUvJ8037evgCKeqGwSWaD8hPhO8U3zAfZTf9HvWQBsOWtv/4q ACsAPcdfEs3MlPqqPoE3Yc53SoabEWIWd/8TP3x/5MYs8DV53W5CWPExojyxGvB05fxq yuTXG0BbIOurdCsp4mJZzsnXLETZ9GLgLC1qn/VBC3QlbAOI6qNRHCvHzR1R4BlPX2kZ 53aQ== 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 q24-20020a638c58000000b00513a68ca71asi3609620pgn.742.2023.05.19.05.55.17; Fri, 19 May 2023 05:55:29 -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 S231509AbjESMrZ (ORCPT + 99 others); Fri, 19 May 2023 08:47:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231182AbjESMrV (ORCPT ); Fri, 19 May 2023 08:47:21 -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 EDA48125 for ; Fri, 19 May 2023 05:47:19 -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 1pzzVg-0007wW-B7; Fri, 19 May 2023 14:47:04 +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 ) id 1pzzVe-001Jbg-H0; Fri, 19 May 2023 14:47:02 +0200 Received: from ore by dude04.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1pzzVd-002fD3-F2; Fri, 19 May 2023 14:47:01 +0200 From: Oleksij Rempel To: "David S. Miller" , Andrew Lunn , Eric Dumazet , Florian Fainelli , Jakub Kicinski , Paolo Abeni , Vladimir Oltean , Woojung Huh , Arun Ramadoss , "Russell King (Oracle)" Cc: Oleksij Rempel , kernel@pengutronix.de, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, UNGLinuxDriver@microchip.com Subject: [PATCH net-next v4 0/2] Fine-Tune Flow Control and Speed Configurations in Microchip KSZ8xxx DSA Driver Date: Fri, 19 May 2023 14:46:58 +0200 Message-Id: <20230519124700.635041-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: X-Mailing-List: linux-kernel@vger.kernel.org change v4: - instead of downstream/upstream use CPU-port and PHY-port - adjust comments - minor fixes changes v3: - remove half duplex flow control configuration - add comments - s/stram/stream changes v2: - split the patch to upstream and downstream part - add comments - fix downstream register offset - fix CPU configuration This patch set focuses on enhancing the configurability of flow control, speed, and duplex settings in the Microchip KSZ8xxx DSA driver. The first patch allows more granular control over the CPU port's flow control, speed, and duplex settings. The second patch introduces a method for port configurations for port with integrated PHYs, primarily concerning flow control based on duplex mode. Oleksij Rempel (2): net: dsa: microchip: ksz8: Make flow control, speed, and duplex on CPU port configurable net: dsa: microchip: ksz8: Add function to configure ports with integrated PHYs drivers/net/dsa/microchip/ksz8.h | 4 + drivers/net/dsa/microchip/ksz8795.c | 132 ++++++++++++++++++++++++- drivers/net/dsa/microchip/ksz_common.c | 1 + 3 files changed, 135 insertions(+), 2 deletions(-) -- 2.39.2