Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp548416rwn; Thu, 15 Sep 2022 02:54:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4ZDWutWTQuMUFSHMuY+uPdza1gxbmg0UkCehBZnTcq590D9jJHC35kDzTW5dUEA+n/1g9Q X-Received: by 2002:a17:90b:3889:b0:202:6e94:5e3e with SMTP id mu9-20020a17090b388900b002026e945e3emr9485557pjb.135.1663235695722; Thu, 15 Sep 2022 02:54:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663235695; cv=none; d=google.com; s=arc-20160816; b=EovQbzgp1C+Fj1pr2hwOM/rWIiyi0yRDwmybBzjMOQVnVk0GKuEzDjZu3rxfvktWX8 eNLdbuRu/3OUIsi5EZbXYA5j3eZKQ5tZrJSrPUZmv78+u3LLDCDkMf9tLQQAF0ZXeLwm 6GvZh0xUiY8celkWA1rt/sOYK4NC+p+f/soW5PcrASXQpnvMXS21sZBbv8iUMPcmVr7l m4M6I+leiBBNERX/CmxmYL6PZNMaCVGotJQGo1x152DtvG1nNr9CGUIkd21XqaasBcpJ brH23BEFCjkw9BkwA/y1jwgBxHmTNq8AS09xw7Y/AI2g0YbWWYns2IUvG+3v5qGKHcaT CISw== 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=I2K32vA2lgUmiXzBYb3fBHYBUakCcdVOGjJp84HLIok=; b=reP6iId5j5pSyN6kLSytCHywaLlN/e1DPiulzNx1dIzbir+hZTr/PZHUuSmwwxYiz+ vCZZnz0tMwzOajVfPG54rDLXMqwYK0UWTyEkc+LsBpZm3YczlSd7wlB82VaJeg9fI9qo jfewWhskyPIjmLnzQws0UY/bOVvT0V5LGsQpafoJBJn68PjrRAxi9TCLREUT6qft/D7W h1wZiYzt6zHKeUsSrOyqERZlRoLt3MYCrgxpHYuDiRV2UklTW535a03KLrqm1Xjfumn0 zhXKwp4Wz9qnebE8iQSbGDgYgAVJhFb6Tw4xjerjuUZ6ktVgWJxGOkAjYew6acAkElX9 P6og== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=dd3iJHo8; 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 cu13-20020a056a00448d00b005484e55b348si4208330pfb.298.2022.09.15.02.54.43; Thu, 15 Sep 2022 02:54:55 -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=@ti.com header.s=ti-com-17Q1 header.b=dd3iJHo8; 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 S229648AbiIOJ3Z (ORCPT + 99 others); Thu, 15 Sep 2022 05:29:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229473AbiIOJ3V (ORCPT ); Thu, 15 Sep 2022 05:29:21 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 436A680F70; Thu, 15 Sep 2022 02:29:20 -0700 (PDT) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 28F9Sx4k123160; Thu, 15 Sep 2022 04:28:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1663234139; bh=I2K32vA2lgUmiXzBYb3fBHYBUakCcdVOGjJp84HLIok=; h=Date:CC:Subject:To:References:From:In-Reply-To; b=dd3iJHo8sI5xKsMtmCSyf21XC0+DBvQIT4J0MMsy+3ntAmtHHbtG8J6ALgs3V7y4B K/q1ptHc2mmAkFLSsFwfm61U7eVupHnaq78vci0xtmqh0PpRoHFJ69MCJswooHI4j9 A6iIyZ1YtGzaVRaQI/o24d/EY2TBDGzKRT/Kapkk= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 28F9SxZo016129 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 15 Sep 2022 04:28:59 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) 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.6; Thu, 15 Sep 2022 04:28:58 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.6 via Frontend Transport; Thu, 15 Sep 2022 04:28:58 -0500 Received: from [10.24.69.241] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 28F9SrSC079482; Thu, 15 Sep 2022 04:28:53 -0500 Message-ID: Date: Thu, 15 Sep 2022 14:58:52 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 CC: , , , , , , , , , , , , , , , , Subject: Re: [PATCH 5/8] net: ethernet: ti: am65-cpsw: Add support for fixed-link configuration Content-Language: en-US To: "Russell King (Oracle)" References: <20220914095053.189851-1-s-vadapalli@ti.com> <20220914095053.189851-6-s-vadapalli@ti.com> From: Siddharth Vadapalli In-Reply-To: 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.6 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_LOW,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 Russell, On 14/09/22 21:39, Russell King (Oracle) wrote: > On Wed, Sep 14, 2022 at 03:20:50PM +0530, Siddharth Vadapalli wrote: >> Check for fixed-link in am65_cpsw_nuss_mac_config() using struct >> am65_cpsw_slave_data's phy_node property to obtain fwnode. Since >> am65_cpsw_nuss_mac_link_up() is not invoked in fixed-link mode, perform >> the relevant operations in am65_cpsw_nuss_mac_config() itself. > > Further to my other comments, you also fail to explain that, when in > fixed-link SGMII mode, you _emulate_ being a PHY - which I deduce > since you are sending the duplex setting and speed settings via the > SGMII control word. Also, as SGMII was invented for a PHY to be able > to communicate the media negotiation resolution to the MAC, SGMII > defines that the PHY fills in the speed and duplex information in > the control word to pass it to the MAC, and the MAC acknowledges this > information. There is no need (and SGMII doesn't permit) the MAC to > advertise what it's doing. > > Maybe this needs to be explained in the commit message? I had tested SGMII fixed-link mode using a bootstrapped ethernet layer-1 PHY. Based on your clarification in the previous mails that there is an issue with the fixed-link mode which I need to debug, I assume that what you are referring to here also happens to be a consequence of that. Please let me know if I have misunderstood what you meant to convey. Regards, Siddharth.