Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp1455927pxb; Tue, 8 Feb 2022 18:40:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJsKs2/wgMI33kCqKyNx/rrR07jbh2E6T5hxirwXGP/L5BmRbwjOhTJZA+z2aUAE2+9aU3 X-Received: by 2002:a17:906:d78b:: with SMTP id pj11mr101026ejb.584.1644374440197; Tue, 08 Feb 2022 18:40:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644374440; cv=none; d=google.com; s=arc-20160816; b=oCKN3Co4hVNgcSK6iVhzt3eUKBv2zzLrCHRGTE/DLqIWgWG51Kq+EgeWCX0/yVmSwQ NZFFpmaEgUT7g3rs4E1cnZudqeaiD3ZTEBpW3HUfjFy1MzqTwmIYvsPTZUSLhif/12aR qkVd/21O0ZU9gg7NLLbPhbBxNLafh9JFbtwRAEWTpsfk5/o3qTS3OJXOZpWwRP3DSSVY bVT/+W1WXH2ZEGosqVKBssouGT6IVJ+ykYufNkcruPZX2YRM1U7X2WS5V3N5kJ/XyCfB bhnGGAHo8Ut9NywedO5QEyd9rkGo+EM8DHWNEDOrjLTpJGwP7TOq98DaH7KgHRiH7zNN 5NjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=O8CNVRi/PliVAIXu7u3hwjiQAYRSmnCa8ux3yijglig=; b=zdw8X+SVvoyj1aHUAFBf/zaxJS9tTvM8oiCRtyqOarwKwLvYUhgrvcXNwJfj8gtj0d 6Fg23pzWb8tSqADKoIk9bsY9COFYbO8qKZ4nFRQDyZkRqZYOHEbDSe8anPy/742kAGNk B6hYENDelJ1MYZIbcd22hjNht8JIuJLS6CUGzFZr7XToIRUINX235zSmLGCL9hqWt5i2 RFmzQXAakOLDzSwJ4/hpnUC0TGNBILgISc/dHyR1eRAi/zZ+Lm/h0UAJcdZPl7MM1raj aOWPUA1O+3A4tNCUd+e9hAKhDLp1Cnbg/JdCkoZQQ2BnZd1gnNaRnBOs8eEg0ABg6M6W p2uA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=Peaey1UR; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gt20si11024896ejc.694.2022.02.08.18.40.15; Tue, 08 Feb 2022 18:40:40 -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=@lunn.ch header.s=20171124 header.b=Peaey1UR; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1385885AbiBHTNR (ORCPT + 99 others); Tue, 8 Feb 2022 14:13:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58172 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1385647AbiBHTNN (ORCPT ); Tue, 8 Feb 2022 14:13:13 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [185.16.172.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C1ECC0613CB; Tue, 8 Feb 2022 11:13:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=O8CNVRi/PliVAIXu7u3hwjiQAYRSmnCa8ux3yijglig=; b=Peaey1UR15v8ug0Nn8SIccbO/I QBGOR8AEQy7R7aNBt0thDAWpY6T/54kq7kztMO5JlXz6U/pw4J7twUsRsxlREysVAdgZemJ/Ns1yK 6hoXchU2B6U1yVvrnlunSA1bojgj6aEg/VtZjntTZLVUfXLtquEJxpALjZ1xaYGHW33o=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nHVv9-004vxw-K9; Tue, 08 Feb 2022 20:12:59 +0100 Date: Tue, 8 Feb 2022 20:12:59 +0100 From: Andrew Lunn To: Raag Jadav Cc: Heiner Kallweit , Russell King , "David S. Miller" , Jakub Kicinski , Steen Hegelund , Bjarni Jonasson , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net: phy: mscc: enable MAC SerDes autonegotiation Message-ID: References: <1644043492-31307-1-git-send-email-raagjadav@gmail.com> <20220206171234.GA5778@localhost> <20220207174948.GA5183@localhost> <20220208155752.GB3003@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220208155752.GB3003@localhost> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,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 On Tue, Feb 08, 2022 at 09:27:52PM +0530, Raag Jadav wrote: > On Tue, Feb 08, 2022 at 03:09:48AM +0100, Andrew Lunn wrote: > > > MAC implementation[1] in a lot of NXP SoCs comes with in-band aneg enabled > > > by default, and it does expect Clause 37 auto-negotiation to complete > > > between MAC and PHY before the actual data transfer happens. > > > > > > [1] https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/t-series/3241/1/AN3869(1).pdf > > > > > > I faced such issue while integrating VSC85xx PHY > > > with one of the recent NXP SoC having similar MAC implementation. > > > Not sure if this is a problem on MAC side or PHY side, > > > But having Clause 37 support should help in most cases I believe. > > > > So please use this information in the commit message. > > > > The only danger with this change is, is the PHY O.K with auto-neg > > turned on, with a MAC which does not actually perform auto-neg? It > > could be we have boards which work now because PHY autoneg is turned > > off. > > > > Introducing an optional device tree property could be of any help? Or find out what this PHY does when the host is not performing auto neg. Does the datasheet say anything about that? Andrew