Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp881100rwd; Thu, 8 Jun 2023 08:59:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7zBwngGgof/552QCHeuqrKeooU38zBLghXOYcaWvxETd5fuoUrSpmKr3PLoof65QAW1qqJ X-Received: by 2002:a05:6a00:a22:b0:627:6328:79f1 with SMTP id p34-20020a056a000a2200b00627632879f1mr5948300pfh.34.1686239955876; Thu, 08 Jun 2023 08:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686239955; cv=none; d=google.com; s=arc-20160816; b=rkxwqVWfTWWpZWWU2EC6hN5jdTzZsMvBgLQCwdvzdIe00svgjhM3gdTuSG0y1QcYXs ORKlp8h2jqJDxUAM8acdL9wSJYiG3e9RaQID7PmvL3sHkC4sUahUf75q5+L8ILHdiIc+ wDJG4AvizEvuDeg7A8w3TCnTrm5q3tZqkdALFgx9Gbpg9PDEx/OkOyNx4ZJVPo9BFBU2 HefH3jhTrELUC5IokOweOAlcV+oxym3aiXYJSsaQgNJ4dHOPmg7780i3XnWwv6/Q6nVr mF9LKQIJdaINA3qG1S2bvhs+gn1mNMuVkEipFV+EYNV1id2+vGFuc0LOirudtTWwBuAX X2eg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=3hdxcC4WdqdL013cjRLJFVxMqvKvDEFUWXgd/lspsZA=; b=CY6OVSQerbmxOrgDzNc/Eix4CHEobu5+7MzZhI8zvNl3VswUR4Exr/++bh0kor1h1P yqwjqDkIrnnN5BpGcbfb8CJaXUx3ufqx/91FAONlRLUvJqJiJSHWh1ijWvnyUzIr5n+g 13Qs6f/wFxTDAjRKgLIIedtjPl8J0q935KfiI2ArnfaodxVJLFbhtadC67VeaL+xBf+r CYA91UQ3M0MpUyEm9vMoNoAmssPpbceSxJaDsbFclG0fxKPzahXjSJW2caOku7sy2rei UtNrF3xXaIOey+PxkOqhKZU9ZAxapxVUSnF4ZIlQPUv61Pd91VpRromlJmOrbEhIX+4/ 8Kyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b=juJrXjmN; 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 201-20020a6302d2000000b00524ea64ba6esi1128549pgc.530.2023.06.08.08.59.00; Thu, 08 Jun 2023 08:59:15 -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=juJrXjmN; 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 S237363AbjFHPwI (ORCPT + 99 others); Thu, 8 Jun 2023 11:52:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236398AbjFHPwD (ORCPT ); Thu, 8 Jun 2023 11:52:03 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB3412D7C; 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=1686239499; 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: in-reply-to:in-reply-to:references:references; bh=3hdxcC4WdqdL013cjRLJFVxMqvKvDEFUWXgd/lspsZA=; b=juJrXjmN+G5LxsOnRrmENc7ESQQKUHcD6uWaS8nnBrqG6aSp9cW+iinHIMxAs37yuBoe6M PUV5UQE3WGCQkgSqJ58dcxYdD+5PedNQUeCd3xMHn8WbN9ikwybzw/TAPCGCcsu3kEqhV1 IDMEKuM/iFM5E+mwmkxMdk72E8w+UFQ7LSQoo9qZIqUFmcz2hymOfzcp0x8zcTU0Ow9oAA wEMm27bWTH1ye6MsaLLKRebO3m5DMIZl4691mbOEhZrqjK/ADR7j+eGAqN0NdmZfPXWwTp d0f3YnL/s5fmYKohett38G3Gr24Do6BB31jm05fn11P8Le2vLoZsGM2sYfQXPQ== 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 51AD06000C; Thu, 8 Jun 2023 15:51:38 +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 1/2] net: phylink: report correct max speed for QUSGMII Date: Thu, 8 Jun 2023 18:34:13 +0200 Message-Id: <20230608163415.511762-2-maxime.chevallier@bootlin.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230608163415.511762-1-maxime.chevallier@bootlin.com> References: <20230608163415.511762-1-maxime.chevallier@bootlin.com> 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_H3,RCVD_IN_MSPIKE_WL,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 Q-USGMII is the quad port version of USGMII, and supports a max speed of 1Gbps on each line. Make so that phylink_interface_max_speed() reports this information correctly. Fixes: ae0e4bb2a0e0 ("net: phylink: Adjust link settings based on rate matching") Signed-off-by: Maxime Chevallier --- drivers/net/phy/phylink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/phy/phylink.c b/drivers/net/phy/phylink.c index b4831110003c..809e6d5216dc 100644 --- a/drivers/net/phy/phylink.c +++ b/drivers/net/phy/phylink.c @@ -188,6 +188,7 @@ static int phylink_interface_max_speed(phy_interface_t interface) case PHY_INTERFACE_MODE_RGMII_ID: case PHY_INTERFACE_MODE_RGMII: case PHY_INTERFACE_MODE_QSGMII: + case PHY_INTERFACE_MODE_QUSGMII: case PHY_INTERFACE_MODE_SGMII: case PHY_INTERFACE_MODE_GMII: return SPEED_1000; @@ -204,7 +205,6 @@ static int phylink_interface_max_speed(phy_interface_t interface) case PHY_INTERFACE_MODE_10GBASER: case PHY_INTERFACE_MODE_10GKR: case PHY_INTERFACE_MODE_USXGMII: - case PHY_INTERFACE_MODE_QUSGMII: return SPEED_10000; case PHY_INTERFACE_MODE_25GBASER: -- 2.40.1