Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1758471rwd; Fri, 9 Jun 2023 01:30:13 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7+NI40WLOGgz5nL/T8go+JjlQM0ZhRP94tPP8P3KteMnJANqh7DBNlnZmZZoMMjZrsuPes X-Received: by 2002:a05:6358:c695:b0:123:4ee1:51dd with SMTP id fe21-20020a056358c69500b001234ee151ddmr393723rwb.22.1686299413432; Fri, 09 Jun 2023 01:30:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686299413; cv=none; d=google.com; s=arc-20160816; b=kU/KJokAB+eJu/6bxArJQ+Utgd3valaK1VXIJvmH55lD3Al3X59ZoVEp1ilngDk3z0 iLBVagJckQi/e2hiCu6dfn3fG07c9WvrF05tbUtWHjuQ370haP6VD+0ZHHOYnYdAtAZt b2nnful5s7IC37y5klCMS+rAyIQbgl+X12/BigOAcgUgIIlKxqtr66Q4rdEaUNhLss4B S72L/Y9jZUGvb7B8d0I7egql/8CoUVXeIfNv0LJibtHTl0SpRumWBZfncrlkaQ5g8WHb Yxx9wUK3z0HJDC+jwMddtUbC9p/TD+evW3bJZe/TOpwPQBr8Pt4USYHrFvvFa22Lr7DZ 5fIQ== 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=V1fjQgvADNeoYs1XNE6CaL9g0vQm/7IWTKb+iOiyp9U=; b=ozNmdHA7dUtVcaXnqopl9R3TQngRMo1c7nL0dU2iAaYVly6tDH/CvY5iGXAq4qHzNA moTg17444JqAx9KVh6Uh5C/2t2NldyMmeVCz32HUwSBXh4XKvPzXAQy1moie5aHlbCdf AUmvxU6IzL4ONGiodhYwAA/f9PS6OeE48jJWBi793xv4bGkry+Cl/4Ij3Cu7F/JDZv3p +LHGDcnn7cS9WyNDdbFD4Nt2OvsBxctMi/4iDkknqePO2arMPY3WXhqeB9iZwsg0NAYw TFwFlQ7gu3GE4zKINCT74YgzrNjKmjwFn7bZ8LPCksJzOKycdL5I+ITfolvRG3Nsa8Z+ ruxw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=pCaH0AEf; 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 t22-20020a639556000000b0053f2516faccsi2379251pgn.334.2023.06.09.01.29.59; Fri, 09 Jun 2023 01:30:13 -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=pCaH0AEf; 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 S239898AbjFIIFm (ORCPT + 99 others); Fri, 9 Jun 2023 04:05:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39484 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240375AbjFIIFD (ORCPT ); Fri, 9 Jun 2023 04:05:03 -0400 Received: from relay6-d.mail.gandi.net (relay6-d.mail.gandi.net [217.70.183.198]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D2A243C0F; Fri, 9 Jun 2023 01:03:48 -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=1686297789; 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=V1fjQgvADNeoYs1XNE6CaL9g0vQm/7IWTKb+iOiyp9U=; b=pCaH0AEfra0t+2HyuCPvIO5uveL7uMFWIGejcXukSlwSKDBKIP2vjoikFe7Uj6fKw+5EGf 5x6zxGvHH9S+SDcFol5H8sGkT7gpOztJIpm20XgP/Qt1WNOjiPCp8Nmfisu3rkPh+D69qv SG5F3fmQX4HfI3d8oLc9Zcn8CNGt+7kVZpnxQhv6LebT1QubIeLc5oQmOZC9NHoOJiJy+s ojdmbd0xR98KDunDkXDSfKxvCpio6Gb+VjRuxodZpCLnZflETss1jM60/Mz+/5CuLE+SyR yVhVNbtMEC8QkTL6LapK61qssSclqBba/0qUoZMU+2BnangOsZluKlJTLMyfAg== 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 X-GND-Sasl: maxime.chevallier@bootlin.com Received: by mail.gandi.net (Postfix) with ESMTPSA id C19A4C0011; Fri, 9 Jun 2023 08:03:07 +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 , Simon Horman Subject: [PATCH net v2 0/2] fixes for Q-USGMII speeds and autoneg Date: Fri, 9 Jun 2023 10:03:03 +0200 Message-Id: <20230609080305.546028-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, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 This is the second version of a small changeset for QUSGMII support, fixing inconsistencies in reported max speed and control word parsing. 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/ V1->V2: Fix decoding logic for usgmii control word, as per Russell's review 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 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 39 insertions(+), 2 deletions(-) -- 2.40.1