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=-3.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS, URIBL_BLOCKED,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 E3909C43381 for ; Sun, 3 Mar 2019 10:01:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A7D6220836 for ; Sun, 3 Mar 2019 10:01:41 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="UTMK7b6/"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="qhId2oMB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A7D6220836 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=3Qegxw157NqbDK7w9EeCdgWnj+5PTF2KyyyzH2VleNA=; b=UTMK7b6/9duv1g PHINscUTY+8H+LFDK/X7ndrxkNzhJMf+RoPGe73t9iXTdt8XpdN09o138j4gxAyURnF6aXlppBtqo 4LIEZoi4D6ITJoFhx39Yiu18JOSIwUYMtIVZ2yvSXy3UP7RsnVK8em2lEHLjuUMdmDIFnCysgVpup HYH6enqIUIQdX+tzsl7K4eAiQMnqriEK14psees1lMZDtxGGe6w5WPKAT7AvFFvr2gjHyKzs/kYx+ pBorWr9GDJe4VsdZeAfZnyAPyYb7f06nWVXAfMnaTgpfanSx9oG1p0XemB1URkZHD1mGyiHLkxs91 9wSK8h7If58C4pI6HUIA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h0NwC-0000Io-7o; Sun, 03 Mar 2019 10:01:40 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:3201:214:fdff:fe10:1be6]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h0Nw8-0000IV-5d for linux-arm-kernel@lists.infradead.org; Sun, 03 Mar 2019 10:01:38 +0000 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=1A3UoXAx5G975J9h6uzoP19rqo8CErtMWxLwLaDBEzo=; b=qhId2oMBvoAGZT+ZGaX7vZSIi 7t/pJZKvKlFGomwVQm2tNCiimRj5aiX+zjI9vyAz0miHx7tG5MHxdnW+OtdtEtNcWa2Vs/nGn56X4 Rk8JPOpYAKZ61/nuXNbdkx7V2//TIoe4iPF15+sUfqnyRegYzgJO0s0bhV7OG5eV1DSSNslbIn30v aGhRWq9A7Kj8s93iWrQuDxbSfW5WPhUsdftmJPh95qiRYAaBjLqm6wYBLzk+f6k4FQ3wNTyOA1rdR sezfYjYZertkOeu9WVB4hpQor5/I3cw49/vTtAfj8onC8D4VCnA8AqwLErY9ugRO5nUFqxaZ99nVp 9u2+tXZ2Q==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:51562) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1h0Nw2-0003ur-IP; Sun, 03 Mar 2019 10:01:30 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.89) (envelope-from ) id 1h0Nw1-0001P0-04; Sun, 03 Mar 2019 10:01:29 +0000 Date: Sun, 3 Mar 2019 10:01:28 +0000 From: Russell King - ARM Linux admin To: Marc Micalizzi Subject: Re: MacchiatoBin SingleShot 2500BASE-X port (eth3) with GPON SFP on mvpp2x Message-ID: <20190303100128.tgq2kvrtyywwmbe4@shell.armlinux.org.uk> References: <014801d4d121$d2769620$7763c260$@gmail.com> <20190302202629.GB10359@lunn.ch> <20190303024833.GB25169@lunn.ch> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190303024833.GB25169@lunn.ch> User-Agent: NeoMutt/20170113 (1.7.2) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190303_020136_389679_28DA73EA X-CRM114-Status: GOOD ( 16.97 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Lunn , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, Mar 03, 2019 at 03:48:33AM +0100, Andrew Lunn wrote: > On Sat, Mar 02, 2019 at 09:17:56PM -0500, Marc Micalizzi wrote: > > On Sat, Mar 2, 2019 at 3:26 PM Andrew Lunn wrote: > > > I've received reports that some GPON SFPs don't like block reads of > > > their i2c bus. You have to do 16bit word reads. > > > > > > There was a patch a while ago to deal with i2c bus drivers which could > > > also not handle big block transfers: > > > > > > https://www.spinics.net/lists/netdev/msg546524.html > > > > > > I looked into that patch, and after doing a bit of investigation in to > > where it's actually failing, I'm not sure it would make any > > difference. I added a debug message in i2c_mv64xxx.c > > mv64xxx_i2c_fsm(), which is where my -6 ENXIO is originating from, > > immediately after the fallthrough for > > MV64XXX_I2C_STATUS_MAST_WR_ADDR_NO_ACK (on line 314), and that > > provided me with: > > ```i2c i2c-1: No device at other end-- state: 0x4, status: 0x20, addr: > > 0x50, flags: 0x0``` > > This fits with your comment about it taking a bit of time to boot > before it starts answering on the i2c bus. The original report is that it _never_ responds on the I2C bus when plugged into the Macchiatobin, but it does when plugged into other systems. Thinking a little more about this, this morning, I've remembered that there's the pull-up resistor issue on the Macchiatobin, which are way too strong. (IMHO, even the reworked boards are out of spec for SFP modules.) There are two very small resistor packs (8 pin black devices with three digits on the top) labelled RN3001 and RN3004 near the reset button. They're directly next to the PCA9548 I2C multiplexer U44. The three digits will be either with 222 or 112 - please can you check which they are? -- 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel