Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10790434pxu; Wed, 30 Dec 2020 11:41:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxvie87JcrnL5XDDPIoj63OY5VPMPtiK+s/7N5ZlC3HvReq+nS7uCTaLl7uspjm/53C5Zv1 X-Received: by 2002:aa7:c358:: with SMTP id j24mr52397754edr.265.1609357295897; Wed, 30 Dec 2020 11:41:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609357295; cv=none; d=google.com; s=arc-20160816; b=jL/H7wuzmGhUuTIhzdOWa8LKrVJf+9uUtA57AaFjs0yHCEpsOcnCpSTuisXlpOlDuU APOTJCWCkS1wZ/NB4N3CJdhJqBjdUraa3yoI6HV7YCDDvg69nubr+YFExwLl9vbqbBUL t5o3V3vAI4dNo3l4sT9KwXGrfo4r+tw0o1KGHbfhGyEyIAOQewvW4mljqEnwD2h9XK8P 2GvD/7x44G6Y+Rc08qOCLA28B/zD3eLJWeVYduE9PzPbktphJY4mK+ta4SmKAud9ciqb dmS6x1Ex1IIeRnwjCrN6eaAmNLkTSLgCgEfClaS1xEsJELtS5sgxMN5P76sEY5G18bQV 58Ew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=qV7ZUQ6rORlcabRv1wkqp9ROeOheZpX38ZbpFhhVfic=; b=eNN4TiWJKU2jz7zgPkKYgyqmGxCjKfF7jLeeREcxlE8qR6nTftCx+WWNWfj59/CKRs EqL7b8Ym8VDMtluCGGrTP+Wry7cANnywvURCz0Dva2t1RRUJdqm/L6H9PLmOfiyAkAVa t47ecYbnaJ0pMAcgBypsHE+KrGXk4qS2I3V2+yn3grdnYgsJu1r8kMZ0wd5jbdUsXXY5 sGD3/b94Kf34bD/nqdn9zVjW5PMqMFNgu35zNwCSuJgFkLwum7aCx6rDYHyY9Haqim2i PZrCmAo9bW/xWRY0+QIHvvBdCvD/cvzblzVEEF8vb0K3Rj+QG4kqGSO9SzEQ0Pjbp0qA X6Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="yr/q4ovV"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i8si23072328edq.125.2020.12.30.11.41.13; Wed, 30 Dec 2020 11:41:35 -0800 (PST) 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; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b="yr/q4ovV"; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726492AbgL3Tk0 (ORCPT + 99 others); Wed, 30 Dec 2020 14:40:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726247AbgL3TkZ (ORCPT ); Wed, 30 Dec 2020 14:40:25 -0500 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [IPv6:2001:4d48:ad52:32c8:5054:ff:fe00:142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 63B13C061573; Wed, 30 Dec 2020 11:39:45 -0800 (PST) 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=qV7ZUQ6rORlcabRv1wkqp9ROeOheZpX38ZbpFhhVfic=; b=yr/q4ovVclV3pqujqTJzuUVfD KN/ztVt6pZyCB0M/O00/H7JDNpnZt5YJaeUsszl7m5CdEpxLr4ICD/AhcHVC6yZloVQbSAddlcipA jCDsy7yvIAI+O/VwiPTNy+PSrx6g2ftriBPzBkz3Q5Gq3nO/c+7/dhR4+2C00r2aWYU700xFg2pSH Fd0I1oX90DGQ3t0CJjLQ9XfOQUEraBcGYq4TRCVLF9CtxUSjjwe/Tk7D7Yc+yD/7YeBWp2CsJAR/o UEFnmfXG+1fCU/sL+jo912vo5vcSp6rNvh9W01yiFpZIbMf9CIGwo7uxYel/uMBptbGeBGkee5CEw uGMhQUyHA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:44932) by pandora.armlinux.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kuhJs-0005uV-Mg; Wed, 30 Dec 2020 19:39:40 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1kuhJr-0002SN-WD; Wed, 30 Dec 2020 19:39:40 +0000 Date: Wed, 30 Dec 2020 19:39:39 +0000 From: Russell King - ARM Linux admin To: Andrew Lunn Cc: Pali =?iso-8859-1?Q?Roh=E1r?= , Heiner Kallweit , "David S. Miller" , Jakub Kicinski , Marek =?iso-8859-1?Q?Beh=FAn?= , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/4] net: sfp: add workaround for Realtek RTL8672 and RTL9601C chips Message-ID: <20201230193939.GZ1551@shell.armlinux.org.uk> References: <20201230154755.14746-1-pali@kernel.org> <20201230154755.14746-2-pali@kernel.org> <20201230161036.GR1551@shell.armlinux.org.uk> <20201230165634.c4ty3mw6djezuyq6@pali> <20201230170546.GU1551@shell.armlinux.org.uk> <20201230174307.lvehswvj5q6c6vk3@pali> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: Russell King - ARM Linux admin Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Dec 30, 2020 at 08:30:52PM +0100, Andrew Lunn wrote: > > Ok! > > > > So should we completely skip hwmon_device_register_with_info() call > > if (i2c_block_size < 2) ? > > Yep. That would be a nice simple test. > > But does ethtool -m still export the second page? That is also > unreliable. It will do, but we need to check how ethtool decides to request/dump that information - we probably need to make sfp_module_info() report that it's a ETH_MODULE_SFF_8079 style EEPROM, not the ETH_MODULE_SFF_8472 style. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last!