Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp384884rwb; Mon, 28 Nov 2022 23:05:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf7egCv/PWcKh7LhWe9qvGGe5uCiQq+m0E52IzAxkaymQGGj/skDI1uO2q2rYyPhmQ0ks1PY X-Received: by 2002:a17:902:ab5e:b0:189:56ab:ab6c with SMTP id ij30-20020a170902ab5e00b0018956abab6cmr26566490plb.152.1669705541571; Mon, 28 Nov 2022 23:05:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669705541; cv=none; d=google.com; s=arc-20160816; b=azse42GnST7vXch+mWb6Q2O6ClETSVzSyjDfXhs7+1uw+sccLY7feyx6yMeoftkYIl +550ZILRj+x4T+G+h1jFUy4VPih29GK8LpBJ2bhna2Lq8RCzPCVhm7cU3pyahNx/BO4O H1fErDAokVam9SvWOzChAD9nCHEJ5r6DwylzlKdowivWb5yJ5JdiHXGBkX659yydJ60S DPBaZB027CPfqdfmnm6tcjCEAI12PjJP1cYGX6jSolhcNg300DlGWCfQnz5Cj/8Fhxhf dvtesXCS0xkVRyXyZG9Qr0FB+4kRy+SOcP/9aZ3kn08I2OTDT22er38wR+ZGIgsc3mtl gOkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=7YR9J0kvRHvjzk4VIAhLDw7kLzB+cZ1suJLVFaxVmqk=; b=YD31dZBw4WOyDvCdtihFymSJZeKIM8KA6I0gR/cXqMfON6cTUmbGXIRIKxTGSuGX5v UZds2Mt1Z7DefW2gHXaVxLNu19TB/EGGZiR9OeGKxLcffs6fI5iAkMb60zlTrzOQLcUW IumH4Vv5XEyfuoBzj6+DQkwPg5qafDYgPbTVtHZ1Wjo29sShgEW2bmqb4KMpTm99PJZn Z+d6VhoOq1Asi/NmAct60LwHxyEpYGy32DNnvu94FWCY5LWUqlwtx8+jnpYr+BLci4zA +tg7YVFM8xGEcZZyPgeAzFlYu3jAWYSXoU3ixeOpaHAVc/Bv6wEHGWhbBPS/eF4WVQLo M+wA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b="T/cYcf+K"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y6-20020a17090322c600b0017f8d9b7e5fsi16105420plg.133.2022.11.28.23.05.29; Mon, 28 Nov 2022 23:05:41 -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; dkim=pass header.i=@broadcom.com header.s=google header.b="T/cYcf+K"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235622AbiK2Fq5 (ORCPT + 82 others); Tue, 29 Nov 2022 00:46:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60036 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235607AbiK2Fqz (ORCPT ); Tue, 29 Nov 2022 00:46:55 -0500 Received: from mail-yb1-xb2e.google.com (mail-yb1-xb2e.google.com [IPv6:2607:f8b0:4864:20::b2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34B03326CD for ; Mon, 28 Nov 2022 21:46:54 -0800 (PST) Received: by mail-yb1-xb2e.google.com with SMTP id o127so637412yba.5 for ; Mon, 28 Nov 2022 21:46:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=7YR9J0kvRHvjzk4VIAhLDw7kLzB+cZ1suJLVFaxVmqk=; b=T/cYcf+K23XkS+VwHauLNbWvlYActercRNoFovgqnxZ2miF9hgwHnp0dhksj3ZYq/J GKfA/ya2bBQAL3M2A4Xbq46mpq6Km4ems2X8+ze578rOohigd2qw20tUOkXnpJGLfLWj FjhVTJhwHA03hzqFd1B3aYGoAlUDjkkhXqSxA= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7YR9J0kvRHvjzk4VIAhLDw7kLzB+cZ1suJLVFaxVmqk=; b=HJYnTTQPvIuDUOWZoUhFHIHL1RDdhnpXqVLvVXu7fpWy0GJ+j5MaulSPtmAgAHFYtB hdBQjq3Fmm4sqGTsxZq7wpU9dsLjPTBd9EBsRrADN52Xj3KYgEluQi9xnvKWRNL0ZhR3 Y5uOCny04/jqwQnJhc+LrSCKVP63mdAwP6VfkRgaRPJFlXrutp/QGfPQYn+y11mLmFJQ fb7q+BqG0qfvkEMVln674Cwix112o1cdJA2VmEeVUL2OXYgU5xaO5ZqwWDBe93pZWmKA rLPTDMdKxG28DAVbE6Pbw0Bxj/Et5oigT9iFiUWx+uwvSFuikC346QKQF/MhHTJJHw57 W1sg== X-Gm-Message-State: ANoB5plKt7iMCb4EDDHNEmmTBbk5PvUhwXih8thspEYsiVWOPVEDhzFc D86d2OCXH/WEXPG4n7kdT76/llImaKj1V4H9USVnVg== X-Received: by 2002:a25:d383:0:b0:6f6:b3f1:318f with SMTP id e125-20020a25d383000000b006f6b3f1318fmr8541306ybf.613.1669700813219; Mon, 28 Nov 2022 21:46:53 -0800 (PST) MIME-Version: 1.0 References: <20221129050639.111142-1-s-vadapalli@ti.com> In-Reply-To: <20221129050639.111142-1-s-vadapalli@ti.com> From: Pavan Chebbi Date: Tue, 29 Nov 2022 11:16:42 +0530 Message-ID: Subject: Re: [PATCH net] net: ethernet: ti: am65-cpsw: Fix RGMII configuration at SPEED_10 To: Siddharth Vadapalli Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, linux@armlinux.org.uk, vladimir.oltean@nxp.com, pabeni@redhat.com, rogerq@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, vigneshr@ti.com, spatton@ti.com Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg=sha-256; boundary="000000000000e0fb1505ee958340" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_NONE 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 --000000000000e0fb1505ee958340 Content-Type: text/plain; charset="UTF-8" Looks like this patch should be directed to net-next? On Tue, Nov 29, 2022 at 10:37 AM Siddharth Vadapalli wrote: > > The am65-cpsw driver supports configuring all RGMII variants at interface > speed of 10 Mbps. However, in the process of shifting to the PHYLINK > framework, the support for all variants of RGMII except the > PHY_INTERFACE_MODE_RGMII variant was accidentally removed. > > Fix this by using phy_interface_mode_is_rgmii() to check for all variants > of RGMII mode. > > Fixes: e8609e69470f ("net: ethernet: ti: am65-cpsw: Convert to PHYLINK") > Reported-by: Schuyler Patton > Signed-off-by: Siddharth Vadapalli > --- > drivers/net/ethernet/ti/am65-cpsw-nuss.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/ethernet/ti/am65-cpsw-nuss.c b/drivers/net/ethernet/ti/am65-cpsw-nuss.c > index 6b0458df613a..6ae802d73063 100644 > --- a/drivers/net/ethernet/ti/am65-cpsw-nuss.c > +++ b/drivers/net/ethernet/ti/am65-cpsw-nuss.c > @@ -1495,7 +1495,7 @@ static void am65_cpsw_nuss_mac_link_up(struct phylink_config *config, struct phy > > if (speed == SPEED_1000) > mac_control |= CPSW_SL_CTL_GIG; > - if (speed == SPEED_10 && interface == PHY_INTERFACE_MODE_RGMII) > + if (speed == SPEED_10 && phy_interface_mode_is_rgmii(interface)) > /* Can be used with in band mode only */ > mac_control |= CPSW_SL_CTL_EXT_EN; > if (speed == SPEED_100 && interface == PHY_INTERFACE_MODE_RMII) > -- > 2.25.1 > --000000000000e0fb1505ee958340 Content-Type: application/pkcs7-signature; name="smime.p7s" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="smime.p7s" Content-Description: S/MIME Cryptographic Signature MIIQbQYJKoZIhvcNAQcCoIIQXjCCEFoCAQExDzANBglghkgBZQMEAgEFADALBgkqhkiG9w0BBwGg gg3EMIIFDTCCA/WgAwIBAgIQeEqpED+lv77edQixNJMdADANBgkqhkiG9w0BAQsFADBMMSAwHgYD VQQLExdHbG9iYWxTaWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UE AxMKR2xvYmFsU2lnbjAeFw0yMDA5MTYwMDAwMDBaFw0yODA5MTYwMDAwMDBaMFsxCzAJBgNVBAYT AkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMTEwLwYDVQQDEyhHbG9iYWxTaWduIEdDQyBS MyBQZXJzb25hbFNpZ24gMiBDQSAyMDIwMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA vbCmXCcsbZ/a0fRIQMBxp4gJnnyeneFYpEtNydrZZ+GeKSMdHiDgXD1UnRSIudKo+moQ6YlCOu4t rVWO/EiXf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