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.8 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_NEOMUTT 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 27415C43381 for ; Sun, 24 Feb 2019 15:16:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C186420663 for ; Sun, 24 Feb 2019 15:16:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="vUjU682D" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728233AbfBXPQA (ORCPT ); Sun, 24 Feb 2019 10:16:00 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:41202 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725860AbfBXPQA (ORCPT ); Sun, 24 Feb 2019 10:16:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: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=59UE+XOIGrMCi5xR+RCxiEKcTMROvbiGBCYZIG+ApWo=; b=vUjU682DF+1xYM7G5F/umD81i HcCQfrUYGHpX7jOyVXWrt6nqNpe/rEdx9m2A18l0qgCqm/jz/gMb4WqzTCCDElLh5nL5CjZX7lNa4 wVcWl45dcNb+Rm+kGiuGusry/8NiHwrHR7rtEnuRdLr7VOAvOs+sG8zEHCBp0aMcqaoS681vXumuk l3pzQv4eB9GlFQzKsXRjLuaLA4uYHBbo4QbBI6JfcTisuTgrTLsbSrV6hwiWpnaKYZhVI5+L9VC1q d+9eQncBw1dIVFH/Y/9GDuO+eguGlUVLc96nMGBB2TSS9FsRbLBAcLeByupd/fpF0OALaivhsPMjJ QUsbSmyOQ==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:54748) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1gxvVV-0007pZ-0Q; Sun, 24 Feb 2019 15:15:57 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.89) (envelope-from ) id 1gxvVT-000430-JP; Sun, 24 Feb 2019 15:15:55 +0000 Date: Sun, 24 Feb 2019 15:15:55 +0000 From: Russell King - ARM Linux admin To: Andrew Lunn Cc: Heiner Kallweit , Florian Fainelli , "netdev@vger.kernel.org" Subject: Re: No traffic with Marvell switch and latest linux-next Message-ID: <20190224151555.xsopwkuicsop65rw@shell.armlinux.org.uk> References: <20190217165730.GF5968@lunn.ch> <20190217171027.GH5968@lunn.ch> <33f9ef8d-df62-e154-f880-f886abf54e0a@gmail.com> <20190218182136.GE14879@lunn.ch> <188fcef7-81fe-cffc-af71-1f37725b8611@gmail.com> <20190223234235.GA26626@lunn.ch> <6dd3f82a-eea0-c9b4-8dd6-f2f313578b1f@gmail.com> <20190224150403.GF26626@lunn.ch> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190224150403.GF26626@lunn.ch> User-Agent: NeoMutt/20170113 (1.7.2) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Sun, Feb 24, 2019 at 04:04:03PM +0100, Andrew Lunn wrote: > > I think what's not correct is that phydev->autoneg is set > > (by phy_device_create) for a fixed link. > > Fixed-link tries to emulate auto-neg: > > bmsr |= BMSR_LSTATUS | BMSR_ANEGCOMPLETE; > > Maybe it needs better emulation of auto-neg? Or maybe it needs to represent a fixed-speed PHY by clearing bit 1.3 (BMSR_ANEGCAPABLE). In any case, 0.12 (BMCR_ANENABLE) is not set, so according to 802.3-2015, we should not be setting 1.5 (BMSR_ANEGCOMPLETE). However, swphy does try to emulate autonegotiation - we do have cases where swphy is used in situations where the speed and duplex are not fixed. It returns an emulated link partner advertisement for the current speed, which would suggest that we should set BMCR_ANENABLE. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up