Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp4862599pxb; Sun, 6 Feb 2022 05:58:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJz+sfgxZTgXreZgIHXwk1bGSdsCF3s2u68QVY3KS+rC8tDkDm2L8jfyeh/cfNE/QwJbiyMU X-Received: by 2002:a05:6402:84a:: with SMTP id b10mr9041233edz.115.1644155902845; Sun, 06 Feb 2022 05:58:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644155902; cv=none; d=google.com; s=arc-20160816; b=s0GXbm3/mkmmVfgSt226ldDeqLPE2Po9x9G/hyFd05/LJvIp07/RcZ79AEXLhfiXTe WVAhX1Sq4/dey3G1xizu7yVoSAPojye+US+EkSR77+SpbnK8iGHD9nnh6G3yM4LtTFja spuADulVBmbq00dlAqBtI/K+PFZXZKVGSvul/UxTfXo8B1fHoDV3bqMfR0c66LTdVc5g IjGX4kphrzPF8mdqn8B0ffCtIq8yN/pdDwr6BmDOYaLHcf131Ezm1U8F03XtiUCKE5T+ 1rrGIosfpICI2+PqOxrExYOFFinqBNRvqeytUKmg78N4LyesQWkJx6b0/ZfzISTja33T lHZA== 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=b50B8/pM0u49zfZrqiOAhoZ2WmIOCD9FYNeN94DzpsA=; b=eaii0u/RuGadCkCpa2+prsVlBVK2PRC2+k5pNNDKzf+EYbm3j9ilcjsw5LTWEXZv+n ku6eU0Z6GKJSby1LeO927jmZqpHwW++l4OqTvqo6DD9EuwWVJGvCs1l/Rdv6WVPLNsN0 LUKjAHi4+Xuy5MENKvODz9a/Tu/qF5NB2a0D5BxmVtHRpMC2PiZjX4fZY1UUNQhoPAMa vsVWFIzVPJ7wG0BAEagDNixuHTQsKebol+4FpqZd5Ug3ujk2Qn0x3suVdGuv+maPKoAL 4IRcEKOE+sDNr66Kv+R0pKvo+scaikulyfO3TZiKiga5AxbvXXPskUQwO5edthNmO1dc nqOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=q8YlP0Nj; 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 y26si5320130edm.375.2022.02.06.05.57.54; Sun, 06 Feb 2022 05:58:20 -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=q8YlP0Nj; 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 S1380254AbiBEO6C (ORCPT + 99 others); Sat, 5 Feb 2022 09:58:02 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:43816 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236323AbiBEO6A (ORCPT ); Sat, 5 Feb 2022 09:58:00 -0500 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=b50B8/pM0u49zfZrqiOAhoZ2WmIOCD9FYNeN94DzpsA=; b=q8YlP0NjT37AwLC8qG2pZMkN8s 7KLMrEJPiiOVOxuDOjAL07weitvm2lzx8EE0N5WtNMmr5h1DQL8iYJ66cO5w6VrMxplS/rQe6P4pN EmYHrooTszI61BsDZwlnnu+Xpf8aac/aZ3RdLMdHR2BB5HhikixtjXYCxWPWs9M7hv7M=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1nGMVZ-004OwC-Gw; Sat, 05 Feb 2022 15:57:49 +0100 Date: Sat, 5 Feb 2022 15:57:49 +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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1644043492-31307-1-git-send-email-raagjadav@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 05, 2022 at 12:14:52PM +0530, Raag Jadav wrote: > Enable MAC SerDes autonegotiation to distinguish between > 1000BASE-X, SGMII and QSGMII MAC. How does autoneg help you here? It just tells you about duplex, pause etc. It does not indicate 1000BaseX, SGMII etc. The PHY should be using whatever mode it was passed in phydev->interface, which the MAC sets when it calls the connection function. If the PHY dynamically changes its host side mode as a result of what that line side is doing, it should also change phydev->interface. However, as far as i can see, the mscc does not do this. So i don't understand this commit message. Andrew