Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10CE2C43381 for ; Wed, 27 Feb 2019 23:19:48 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C5312218A5 for ; Wed, 27 Feb 2019 23:19:47 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="s7h8o0zy" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730139AbfB0XTq (ORCPT ); Wed, 27 Feb 2019 18:19:46 -0500 Received: from vps0.lunn.ch ([185.16.172.187]:40865 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728397AbfB0XTq (ORCPT ); Wed, 27 Feb 2019 18:19:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=hOX+QmYM0S5seY5uuKqUOD2EPGsoFVomvpUjgeO4DUY=; b=s7h8o0zyeVza3/32VOnp0gSabo Qe0AQCWdauOahixRatbNfFLdcy1ABcuv1ZblI7P1BlPWn+C/exvb87AFxD2YoYskCbjEeDc4ky6Y2 ZyA8Fy4KE9uJhx0ynhyjsk2C9qqFvOL4ymbwiSERCDtG0SM3ApgsAHFNWuHwxBO6hLsg=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1gz8UG-0005Jn-4e; Thu, 28 Feb 2019 00:19:40 +0100 Date: Thu, 28 Feb 2019 00:19:40 +0100 From: Andrew Lunn To: Russell King - ARM Linux admin Cc: Heiner Kallweit , Florian Fainelli , "netdev@vger.kernel.org" Subject: Re: phylink / mv8e6xxx and SGMII aneg not working, link doesn't come up Message-ID: <20190227231940.GN3809@lunn.ch> References: <20190227225221.vubwqa6vg5odq26w@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190227225221.vubwqa6vg5odq26w@shell.armlinux.org.uk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > >From what you've described, it sounds like what you actually have is: > > MAC <---> Serdes PHY <---> PHY > > The Serdes PHY receives the SGMII in-band negotiation from the external > PHY, but there is no propagation of the status from the serdes PHY to > the MAC. Yes, that is a good description. So far, we have not yet got the MAC to read the speed and duplex from the SERDES to configure itself. In theory it should be able to, it is all in the same device. It might be that once the SERDES interrupts saying it has link we need to program the MAC with the result of the in-band signalling. in-band then seems a bit pointless. Or we are missing some configuration somewhere to tell the MAC to use the in-band signalling result from the SERDES. Andrew