Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1904745rwb; Tue, 29 Nov 2022 22:34:06 -0800 (PST) X-Google-Smtp-Source: AA0mqf6MFlvB6vJwjdIpmw2i9soQ98oDQVIox4ynLroNiAieNAGyU9faRuQ9xBj/3YjXQXOEbZk9 X-Received: by 2002:a17:903:240a:b0:188:abb9:290 with SMTP id e10-20020a170903240a00b00188abb90290mr40484958plo.86.1669790046690; Tue, 29 Nov 2022 22:34:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669790046; cv=none; d=google.com; s=arc-20160816; b=dU53RcleNm7Tbmy2ClUxGUstj0mWDjEZ9kB7cAcYdIMNo65y/Wf24amwhjNG2acUel 7Y5tQUzXU7k6IiGeWUFhWHQVChCBkP6+bsRWnDGVLp3imC5wizA/4N9kbTDeOTwUp1t5 cY6HyWN8Zq9+6IJ6SNY9uzJZKp9EyapKljCpwqZDgiOK9ON1c/RMcxE8SDUvEOpPD2LF Zp3xF0Xb5Rd3wgPsFzJGE52odwgZIkgmhdokU+XRmVuW0phtUeOo8zEVAT0pmkEPqTDh jaslIHD/ua3/H2sLdR4JQ1vbhCIbeX+qK9XeNH1SlCjsVjlQmY/rWksR+n5lNWbvWfKO EiCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:cc:user-agent:mime-version :date:message-id:dkim-signature; bh=78rsLXykjczu6kP5J3eoU0JCxXRmcnETH8Wn4USwCPs=; b=K/FQiY+qragXDJUj7brdlhWmtJP9JvUmgPp5es2Db4daYBOgtKKnEnzJBGj+U/3XOY EISvZM/8JcnXcaFZMQmIwzEnJUyPZsSKP/dxBKkyImCbp7nrWWiRKGRkB7qztgW3QAW9 qMqindrDlBtph9px48d0Bp2srio8/tMSuwlWCHA4AdhmNvHm1pn1y9lRR2esoGZHHMu1 gdnJ5yiRgD/gU8iIkz5S+G2+5GaiaLrKMK+5yD5t57c8w5YFXF/WwdI2uzzf+wlxUBTR 1oiiYd8jNiMLeweg30nVTleyTzZLn+aSio54bZ0yaJdYGWleN7mAntxU1Eymc6/vw69g xRrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=shlqltwA; 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=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id pf10-20020a17090b1d8a00b002191e510e08si3985694pjb.168.2022.11.29.22.33.56; Tue, 29 Nov 2022 22:34:06 -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=@ti.com header.s=ti-com-17Q1 header.b=shlqltwA; 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=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233824AbiK3GAQ (ORCPT + 85 others); Wed, 30 Nov 2022 01:00:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230033AbiK3GAN (ORCPT ); Wed, 30 Nov 2022 01:00:13 -0500 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7795B1408C; Tue, 29 Nov 2022 22:00:09 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2AU5xkF1081064; Tue, 29 Nov 2022 23:59:46 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1669787986; bh=78rsLXykjczu6kP5J3eoU0JCxXRmcnETH8Wn4USwCPs=; h=Date:CC:Subject:To:References:From:In-Reply-To; b=shlqltwAusJ80dlMn6ozaJgacCsfvHbOfppFHnSPyu7Xlg/9w+IZtqSvdfapizO3w ZxGa89EgNKCu79qQDUVsJOe3v+yUMFj1bZWCY46KXYZWOU9i6OcZ+rK5yF9qKGNIOY hp+u+CoAdx+2oGa/XxtL696rOss5u24AUozOb4jY= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AU5xk6A008147 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 29 Nov 2022 23:59:46 -0600 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 29 Nov 2022 23:59:45 -0600 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Tue, 29 Nov 2022 23:59:45 -0600 Received: from [172.24.145.61] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2AU5xfef030346; Tue, 29 Nov 2022 23:59:42 -0600 Message-ID: <56cc4929-5c15-0345-4d7c-2dbc5d40fbee@ti.com> Date: Wed, 30 Nov 2022 11:29:40 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 CC: , , , , , , , , , , , Pavan Chebbi , Subject: Re: [PATCH net] net: ethernet: ti: am65-cpsw: Fix RGMII configuration at SPEED_10 Content-Language: en-US To: Vladimir Oltean References: <20221129050639.111142-1-s-vadapalli@ti.com> <20221129164619.mq3b4y4cxj2vvl24@skbuf> From: Siddharth Vadapalli In-Reply-To: <20221129164619.mq3b4y4cxj2vvl24@skbuf> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS 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 Hello, On 29/11/22 22:16, Vladimir Oltean wrote: > On Tue, Nov 29, 2022 at 11:16:42AM +0530, Pavan Chebbi wrote: >> Looks like this patch should be directed to net-next? > > Do you know more about what CPSW_SL_CTL_EXT_EN does, exactly? I'm not > able to assess the impact of the bug being fixed. What doesn't work? > Maybe Siddharth could put more focus on that. The CPSW_SL_CTL_EXT_EN bit is used to control in-band mode v/s forced mode of operation. Setting the bit selects in-band mode while clearing it selects forced mode. Thus, if the bit isn't set for certain variants of RGMII mode, then those variants of RGMII mode will not work in in-band mode of operation. Please refer to the patch at [1] which corresponds to the commit being fixed. That patch intended to convert the existing driver to utilize the PHYLINK framework. In that process, the following line: if (phy->speed == 10 && phy_interface_is_rgmii(phy)) was removed from the am65_cpsw_nuss_adjust_link() function and added in the am65_cpsw_nuss_mac_link_up() function in the same patch as: if (speed == SPEED_10 && interface == PHY_INTERFACE_MODE_RGMII) instead of: if (speed == SPEED_10 && phy_interface_mode_is_rgmii(interface)) Due to the above, the already existing support for in-band mode of operation for all RGMII mode variants was accidentally changed to support for in-band mode of operation for just the PHY_INTERFACE_MODE_RGMII variant. [1] https://patchwork.kernel.org/project/netdevbpf/patch/20220309075944.32166-1-s-vadapalli@ti.com/ Regards, Siddharth.