Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp152467pxb; Mon, 7 Feb 2022 08:17:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJy9t82kZwDqvHrYJk8BuoaOFL6rUkQrfSc8RLU3CgGcQX9cNNYEdF2Wwhzvveq25kUU3voV X-Received: by 2002:a63:d48:: with SMTP id 8mr142444pgn.110.1644250654116; Mon, 07 Feb 2022 08:17:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644250654; cv=none; d=google.com; s=arc-20160816; b=eK4g5yZCk2u/yI32UpnGmpqxT6IOo77prTrj3J49mNAHeOvy6SSFiytzZySPl4JcPi f2g83EJQPEkvzRTYwBogqIyYsRt7KYcIhRsZMO7O3lB3acTh9ly6jz9HRYMPoz8rPulw vP9xfcvXXSnJKgF0a6O/pdyCKk4JNmhXADKDa9lYc31atdKdfGZnujoSfR7rJUnQ2BQA 4hQ2WDB25oFz1lqMUeNMHearslGuEj6bCf/q+yijqR4MvH6l6Rmnmn454IO0RzoapHzo PUImBtRfes1croh6pbG+EddGlUeqb2sMsQPA36q7vtUyR0wJzsSOe6DejyJDemXPw46n GtoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=MrarPuJrKTyhOUq+rI1FUAiZg79JNxsp4npqGqfl6cs=; b=I/B7TR4Zi1wPj+UdmirPlqJhSAzi8peHpl5XrBSJkxg00UphPWvjEsm3nF/IOXkdYm HS/HD3OTYn4ldPlvrpqq4XAz19UBylnwCp8X7MDztiHBPX2DscId6SlqlNqiQbfZf5YF vZF474QKRXjs4lBlRsJPsiZj/bEkuC0teXOmaej5DZsJuxPDJXs7ZvY0kxfG6SRMPdRO DLXrRjIDwFU6hw7I3tA0yyxEbehXSbJtzNG9TV0jIhjWXz0kFWsvBmvIWk1ZIH/TRxqR FDNBPoE02hzFEBQat8Kwslm4WaGJpOZpkDNMe1pZpW6Fag0faB85pjRivSynuWOTH7Ur uhpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=DdMayqDm; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u5si11625609plh.357.2022.02.07.08.17.21; Mon, 07 Feb 2022 08:17:34 -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=@gmail.com header.s=20210112 header.b=DdMayqDm; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343924AbiBFRMp (ORCPT + 99 others); Sun, 6 Feb 2022 12:12:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231195AbiBFRMn (ORCPT ); Sun, 6 Feb 2022 12:12:43 -0500 Received: from mail-pj1-x102c.google.com (mail-pj1-x102c.google.com [IPv6:2607:f8b0:4864:20::102c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA3CCC06173B; Sun, 6 Feb 2022 09:12:41 -0800 (PST) Received: by mail-pj1-x102c.google.com with SMTP id v13-20020a17090ac90d00b001b87bc106bdso4140938pjt.4; Sun, 06 Feb 2022 09:12:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=MrarPuJrKTyhOUq+rI1FUAiZg79JNxsp4npqGqfl6cs=; b=DdMayqDm5XSil1zTmkUcSaO9tsDlRrcWYLqm3H0HDZDPjGaAyOgFGD9wIKNDOe8iU0 kI4eABQT6kg+n+gx3RHjAkSXy8/NVt/PwKPGfPkxMXwFmXXU+MV7t+E6sfLY6McqTyDw Y0yj6Ud/RgVVkMCYSz6bBVBLJFFD9sxRggw/tx73A0elpBS/cCRY7UYKyAg9Tl82Y+VW dNZUZGc5sQpZK3tKiSOs1fmMGIv6tnZR2VmLOD+Ame5uf0DkpF5Wpt8k/Y18cR7ImzS/ HASRXCTJZOmING9TDlsu+f/f6ajPvAYC/7y3jsIxfVTMcJOWc839d4aQrfuE4hnc6ZRn K8Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=MrarPuJrKTyhOUq+rI1FUAiZg79JNxsp4npqGqfl6cs=; b=OeMgxpC0DLdGr1maXmtu2XPEWXKcj9RaozUlqz8gjzUggEh7wQ2Dqow8EtyaMbgiWY swRP6EcCDEZuGLxPfa/QgRToyHdhZirKwsJMhPk/b8H9D5MrJwO/fKhZsRKhjbhpsYJM XgAEbwmelvL4z3tCCbBZ3JtR6RKiOvZNSuEMZox0VnwEOAgwcviS0yVTWLfPPMYbnzLg sGAOngqT5iC5Lk+2SF9mgsiojcG9qC60khIBWqG+1NDbgLRlcVCQf93abhShDaUYD3kE MMbDG7wS6PgCxdaea/BFV/TqetvbvKUTRRyR5NRjQypyFbmqqTim/w+zpe3V29dZwLJS N6Mg== X-Gm-Message-State: AOAM531q25wA2BSmFqfFGv8edrdFDxjtAWIFsP8jV7/bFUf0gGyXxclW qC0B+bzuTq2pG5Q6aV41T4WPa/GSBj0SrNQs X-Received: by 2002:a17:902:dac7:: with SMTP id q7mr12739431plx.125.1644167561361; Sun, 06 Feb 2022 09:12:41 -0800 (PST) Received: from localhost ([2405:201:2003:b021:6001:8ce1:3e29:705e]) by smtp.gmail.com with ESMTPSA id om8sm19873537pjb.51.2022.02.06.09.12.38 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 06 Feb 2022 09:12:40 -0800 (PST) Date: Sun, 6 Feb 2022 22:42:34 +0530 From: Raag Jadav To: Andrew Lunn 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: <20220206171234.GA5778@localhost> References: <1644043492-31307-1-git-send-email-raagjadav@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 Sat, Feb 05, 2022 at 03:57:49PM +0100, Andrew Lunn wrote: > 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. > Once the PHY auto-negotiates parameters such as speed and duplex mode with its link partner over the copper link as per IEEE 802.3 Clause 27, the link partner’s capabilities are then transferred by PHY to MAC over 1000BASE-X or SGMII link using the auto-negotiation functionality defined in IEEE 802.3z Clause 37. So any dynamic change in link partner’s capabilities over the copper link can break MAC to PHY communication if MAC SerDes autonegotiation is disabled even on active MAC interface link. Is this understanding correct? > So i don't understand this commit message. > Will send out a v2 with updated commit message on confirmation. Cheers, Raag > Andrew