Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4640057pxu; Wed, 21 Oct 2020 01:12:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzweCWezooaD/x2Qv6ES3hiMMCepzYTGDtGSJy7IsT8ygmpVPHAGShCWcF5U4sHuYmbl1dv X-Received: by 2002:a17:906:4a14:: with SMTP id w20mr2163276eju.513.1603267952817; Wed, 21 Oct 2020 01:12:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603267952; cv=none; d=google.com; s=arc-20160816; b=OgrWi2x56MG/uPeZe/nHfoehjv7NBrM4huwGdIAqgGG1SwwQ38HHcmI9ouGmjcPYre dFAezBjmcTEX3iWu7lSO0mVb90PJad3JVl5zNBQo7fjCUW/UgHLg6fWDVJgOMLoDHj7z Bjwcg/9G5aShr+jKOW3qXr7inHuB3so++RzPT7tHE6AyQV3aGloELSn8/MnFGHSRexPh qrUHVTtI+cfkS+lnNr6Y5lnMpXY6PvqvQwSAayqj9sfPLKDbhPhld4xM9roRKuTDEDW9 dLBZ/mzlQqm0Ys+aD0FNDOg47rIrYFgDUOdHIqaivicuwRGoNF/1vpr1XadxoT66l7rt vjHA== 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; bh=GK41qyvHUd4/jDhSWnvwoSImKsTSRNZB3q9Po1zJaII=; b=WfF84l4JsGLlHRebmC11YOjD2kglKXNYXggpueGznEzh+dKheUYzZwJu0LXS1789pU t5AkDUYOZEOQEG+qUyB8C/EeSnoKz4I0jkBujZ9aIHkA8J9KU0iZ3Z0h5E1Hfhj0rQno FJUmlwnkDv5jj5EXzFe4nP7K1ubcd/CywH76K2OGgmQOKx9prEpthzBYWP0bISz97XI/ 7kOcM+yWCyvP56cnxD9wP0X7YaHTEK8Wx5oa+PHvrmqnXW2ZNDO4GkQa/TlKFItfCBoU lne11AAG7CJKQcy8gk2wgO5Y7Y2jtD4k+ZZKTuSk78cF33lIJL3FPsPDUXBwR7aUDpcF rM7Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bs5si862373edb.416.2020.10.21.01.12.10; Wed, 21 Oct 2020 01:12:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394409AbgJTO6x (ORCPT + 99 others); Tue, 20 Oct 2020 10:58:53 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:36784 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2394403AbgJTO6w (ORCPT ); Tue, 20 Oct 2020 10:58:52 -0400 Received: from andrew by vps0.lunn.ch with local (Exim 4.94) (envelope-from ) id 1kUt5z-002g9m-64; Tue, 20 Oct 2020 16:58:39 +0200 Date: Tue, 20 Oct 2020 16:58:39 +0200 From: Andrew Lunn To: Marek Behun Cc: Russell King - ARM Linux admin , Chris Packham , vivien.didelot@gmail.com, f.fainelli@gmail.com, olteanv@gmail.com, davem@davemloft.net, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 1/3] net: dsa: mv88e6xxx: Don't force link when using in-band-status Message-ID: <20201020145839.GG139700@lunn.ch> References: <20201020034558.19438-1-chris.packham@alliedtelesis.co.nz> <20201020034558.19438-2-chris.packham@alliedtelesis.co.nz> <20201020101552.GB1551@shell.armlinux.org.uk> <20201020154940.60357b6c@nic.cz> <20201020140535.GE139700@lunn.ch> <20201020141525.GD1551@shell.armlinux.org.uk> <20201020165115.3ecfd601@nic.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201020165115.3ecfd601@nic.cz> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > It's still there. The speed/duplex etc are read from the serdes PHY > > via mv88e6390_serdes_pcs_get_state(). When the link comes up, we > > pass the negotiated link parameters read from there to the link_up() > > functions. For ports where mv88e6xxx_port_ppu_updates() returns false > > (no external PHY) we update the port's speed and duplex setting and > > (currently, before this patch) force the link up. > > > > That was the behaviour before I converted the code, the one that you > > referred to. I had assumed the code was correct, and _none_ of the > > speed, duplex, nor link state was propagated from the serdes PCS to > > the port on the 88E6390 - hence why the code you refer to existed. > > Chris Do you get an interrupt when the link goes up? Since there are no SERDES registers, there is no specific SERDES interrupt. But maybe the PHY interrupt in global 2 fires? If you can use that, you can then be more in line with the other implementations and not need this change. Andrew