Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp889236rwd; Thu, 8 Jun 2023 09:03:54 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6kaxgaPq4i/V7Ld/iG8iEJtFmzdZc+1e8JmMi4+OKSfIHBQSNcG1s6vAOEg/GVavwmT6LA X-Received: by 2002:a05:6a00:3a26:b0:64c:4f2f:a235 with SMTP id fj38-20020a056a003a2600b0064c4f2fa235mr10247008pfb.30.1686240233922; Thu, 08 Jun 2023 09:03:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686240233; cv=none; d=google.com; s=arc-20160816; b=DSQP95ilJtj8BCT/SPVkTDALBSq3cBsud9Ho5TB0YAXlnRLTGAAz4tw7EoLEuuXGQc HcxNXRMCdqDmyHP3R9nAtWApZTJzKD1wkUGaoX05PCi/LQRRdgRwjTiv8Rw0QmtvOxw8 CtAragG4/oVV9pKvKEMYsBZcp3GlC7px69b9ge8dNZ7ZrAHtrVmVmBmBMDJ5Fqz4KWNe PUEVialXSS2QLtbbewb53mhbqKjELEbWCqQZ1Jb7TUEiOG2DbeKuA2D4CsX5i1oL0RpB lmoxMI2RpsH7lfVSF/RKP6TvrdR3s1QVg5w0gt0bXwGJfOZ/it44WItnleUgUcXo/nFt ImaQ== 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:dkim-signature; bh=KipQ904kAoqGtS96BrNjtOhgVzKh/rdRo+o3pLuVLgA=; b=wUFBOtdjkSJ2+ewJPAWkmvXvnfciAJZsdZRhzVm52ynWpJnBvQ9pbBIcp3OG0kfMdw OVpGU1tG26ce6rRZITTAfajgPDeOaMTQPSoWqkcjUTSyBLFgI1OdMKkeFkwhsaxuCc4u 6kw5JRyxJFFtFgj8Di9b4EDE1dFT0ce8mUPDQTSbQ+oK14FFkzo3CLu5/p642I5XFoxF owcADm6nFGAZm21LqCkebQ/IcOIMua/rvweP1lMg/k3/eB7P4hMHnpFkWM+EkfEPQIrI j4BjyiJvNzDV9452PbWt6mbVABhvc5b1DnG2QIjkc62wFIeU3KWRXDeNFjA2EDAvIWKt +azw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=maFxXu50; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h188-20020a6253c5000000b0065ff4b819b3si1037162pfb.52.2023.06.08.09.03.38; Thu, 08 Jun 2023 09:03:53 -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; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=maFxXu50; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237403AbjFHPwL (ORCPT + 99 others); Thu, 8 Jun 2023 11:52:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236730AbjFHPwD (ORCPT ); Thu, 8 Jun 2023 11:52:03 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::223]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB2A52D7B; Thu, 8 Jun 2023 08:51:40 -0700 (PDT) X-GND-Sasl: maxime.chevallier@bootlin.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1686239498; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=KipQ904kAoqGtS96BrNjtOhgVzKh/rdRo+o3pLuVLgA=; b=maFxXu50qWEyI66ivk9kQ1/bxq+RSHUWsYwUSJ8Sv9P/A1Al6Wetw8FWqdcQMlVo8WJcB9 IJWGdcDgIv/Upj9cFAIOGWF0N2fENd+b3GJ/q6V42LJ22WNHwVkiAD3PJCyTjqUOiK50Dc vDDpUj9ZTtmOoISX2GfdDBQANOo3d+Cm9upLkC4QG0kVYcENsjjzfRlGkC5O4PeLmoXeGe jvarR/acOQJoMEdO00ynKx0kw/Kkw/LTpN1rUZ/fhmMSHCdlscUCc9gBivWar3W6Se9jf7 becxnjJ+FA1HTJvNXrw1d2b6ECpuI2H3uOTLXvudXHF4IOciFB0YMZwasJ53IA== X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com X-GND-Sasl: maxime.chevallier@bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id 6F4206000D; Thu, 8 Jun 2023 15:51:36 +0000 (UTC) From: Maxime Chevallier To: davem@davemloft.net Cc: Maxime Chevallier , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, thomas.petazzoni@bootlin.com, Andrew Lunn , Florian Fainelli , Heiner Kallweit , Russell King , linux-arm-kernel@lists.infradead.org, Horatiu.Vultur@microchip.com, Allan.Nielsen@microchip.com, UNGLinuxDriver@microchip.com, Vladimir Oltean Subject: [PATCH net 0/2] fixes for Q-USGMII speeds and autoneg Date: Thu, 8 Jun 2023 18:34:12 +0200 Message-Id: <20230608163415.511762-1-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,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 As reported here [1], there are some inconsistencies for the Q-USGMII mode speeds and configuration. The first patch in this fixup series makes so that we correctly report the max speed of 1Gbps for this mode. The second patch uses a dedicated helper to decode the control word. This is necessary as although USGMII control words are close to USXGMII, they don't support the same speeds. Thanks, Maxime [1] : https://lore.kernel.org/netdev/ZHnd+6FUO77XFJvQ@shell.armlinux.org.uk/ Maxime Chevallier (2): net: phylink: report correct max speed for QUSGMII net: phylink: use a dedicated helper to parse usgmii control word drivers/net/phy/phylink.c | 41 +++++++++++++++++++++++++++++++++++++-- include/uapi/linux/mdio.h | 3 +++ 2 files changed, 42 insertions(+), 2 deletions(-) -- 2.40.1