From mboxrd@z Thu Jan 1 00:00:00 1970 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_HELO_NONE,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 04965C04AB6 for ; Tue, 28 May 2019 09:56:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B4352208C3 for ; Tue, 28 May 2019 09:56:48 +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="PGt6CbDj" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726400AbfE1J4r (ORCPT ); Tue, 28 May 2019 05:56:47 -0400 Received: from pandora.armlinux.org.uk ([78.32.30.218]:35866 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726203AbfE1J4r (ORCPT ); Tue, 28 May 2019 05:56:47 -0400 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=jJgqEpooTCRkYeWBd8UMaOQPg46sgmrOf8n8kaYPgGI=; b=PGt6CbDjOihlTB34b7mcsDUW0 tB5LG5Cqoa+mpXpTuq9vX9+17C1yDKPWwGAcShrOTNWDKqPeZa8KLH7dWiUihu0hUtGVcmLWsUdQH 1yCw3zf3sa7zq6pLXrcbcP2XqybxsIhIkXt9AkOLmC195QD87zXhvbz5yLQxENjNEv9gWmshmypOv 8zQ2cGeC+izFW7ideFDTRD5tmApSFbQqqqC65dZ8N3QxNonwonETyTElrEF+A8usmEtUzUw38pcbs IAXR48q4jLlZvhzs1fAtKZ3IPI80bXnFfKKeBq8fEmGd/56zYVtXgyJoPvrBgSc0a3cEqNQWQ/jDB u8h7Od54Q==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:56018) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1hVYqX-0004y4-Jk; Tue, 28 May 2019 10:56:41 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.89) (envelope-from ) id 1hVYqV-0003Sn-PD; Tue, 28 May 2019 10:56:39 +0100 Date: Tue, 28 May 2019 10:56:39 +0100 From: Russell King - ARM Linux admin To: "David S. Miller" Cc: Andrew Lunn , Florian Fainelli , Heiner Kallweit , netdev@vger.kernel.org, Vladimir Oltean Subject: [PATCH net-next 0/5] phylink/sfp updates Message-ID: <20190528095639.kqalmvffsmc5ebs7@shell.armlinux.org.uk> References: <20190520152134.qyka5t7c2i7drk4a@shell.armlinux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190520152134.qyka5t7c2i7drk4a@shell.armlinux.org.uk> User-Agent: NeoMutt/20170113 (1.7.2) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi, This is a series of updates to phylink and sfp: - Remove an unused net device argument from the phylink MII ioctl emulation code. - add support for using interrupts when using a GPIO for link status tracking, rather than polling it at one second intervals. This reduces the need to wakeup the CPU every second. - add support to the MII ioctl API to read and write Clause 45 PHY registers. I don't know how desirable this is for mainline, but I have used this facility extensively to investigate the Marvell 88x3310 PHY. A recent illustration of use for this was debugging the PHY-without-firmware problem recently reported. - add mandatory attach/detach methods for the upstream side of sfp bus code, which will allow us to remove the "netdev" structure from the SFP layers. - remove the "netdev" structure from the SFP upstream registration calls, which simplifies PHY to SFP links. drivers/net/phy/marvell10g.c | 101 +++++++++++++++++++++++++++++++++++++++++++ drivers/net/phy/phy.c | 33 ++++++++++---- drivers/net/phy/phylink.c | 75 ++++++++++++++++++++++++-------- drivers/net/phy/sfp-bus.c | 14 +++--- include/linux/sfp.h | 12 +++-- 5 files changed, 195 insertions(+), 40 deletions(-) -- 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