Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp143791rdb; Sat, 17 Feb 2024 02:28:53 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXZ/HplJ5TGvMr68ltHz/kNESpyhBng0/w2GdIeNArYcU6nYqq1ME3wSJlYHJwpZMHRY54QJnSPCURyj+VFvwpnIBZNn1ywkwRYyDaHcQ== X-Google-Smtp-Source: AGHT+IE2RExW3Y79cfg6owcSDfqPMVAZPEl5KK6CmB4Pq4kfY8N6VEqxk4+RQBFYsj4argBVNiJO X-Received: by 2002:a05:6214:2502:b0:68c:8f22:1a67 with SMTP id gf2-20020a056214250200b0068c8f221a67mr9133483qvb.5.1708165733541; Sat, 17 Feb 2024 02:28:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708165733; cv=pass; d=google.com; s=arc-20160816; b=yojatKh+2lrYBCMRq9oB7d5NHFYU0NbmfXR6gpfjeGD9qfjJ8mmZ8L8HTIgcqw+MYg JbKokjRImz7yTGHHhzoa6O4biePEnLr6k+PzNs5IBxStLl5Bx2yPx4GEv3Ur447po9D1 MuAWcI5NHL1rpEezS14G7tDUG7NScxpHzIrX5sipVqwZteq7bx3Q8IqLnkHYTqR+TXd3 W8Fb3mEhUq6+4aZbV+Vk251ct1Me1qpN2jKpQbg+Y4l/FUcIGxwiSZKvoJNUUe6KGc9O qh2WlT2XqCLrMZG0RhYa42t56az7SLa2oAWLKi/u5PpaPvKdQ+BZclrGJBc8Q+N2QMeV j/9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date:dkim-signature; bh=zW6/SWxGJHOFLV38kHr7ZjS0MYE8Rz8g0t7ofw+Cuo8=; fh=UKNMUrPbiAcfHqpupw2l7RKwtMQuGuv2ZF8yW6hR9ow=; b=woZ1x96DGKQZILkXYia4lbIwX1/XCGu2Y6vPqT8JNxoSjPXQdWOfpk74nCCZkasvkw 89mDSl8kLhO2YOGoMTelvA8k8fXGl2VyZJugVc24unb5DUEpa5mHShxZcudEG98yh3hG SQRady6+xseElrOS3ewiV/FI+/QSD55KfeTusRTCkxQqNkRKlPpz2XgclqxpRKio557R kEs4sKE4I7a21sJ8KV6voFuuNZDmJuDRxahtFuxYtvU8GeOvwArvBFQh5PYtj8J6Twpo Em1sUl9+Z2iqbXPuYwpkx+RH0Cd8QJL2aU/KCO7ab2md9aVQbqCuHy2rWIuMR2TajZdd unKQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=tYWLhEQh; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-69800-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69800-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id gf5-20020a056214250500b0067f82a7080bsi1922568qvb.114.2024.02.17.02.28.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Feb 2024 02:28:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-69800-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=tYWLhEQh; arc=pass (i=1 dkim=pass dkdomain=armlinux.org.uk dmarc=pass fromdomain=armlinux.org.uk); spf=pass (google.com: domain of linux-kernel+bounces-69800-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-69800-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3B3241C20DFF for ; Sat, 17 Feb 2024 10:28:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 823C62D022; Sat, 17 Feb 2024 10:28:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="tYWLhEQh" Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A449D2C6A4; Sat, 17 Feb 2024 10:28:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708165724; cv=none; b=LdzMbAJ7BPVKWCBdQiak2wJBFjW6nniFCg5dAk3Nhix8j8Edy09B/K2Rb/mtj9NGl5nL6l+Dz5GgHmFjOTqfYzr6UvlRqfNvm9M8RUW7q96WG8K+6Skb/NtLA3R4hCgWV1Nq8dI5aQ5ocoXtDGtw+HIJ5ntpzcLDglInKpT026g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708165724; c=relaxed/simple; bh=sDT0IZg/T72E+ZZXyLdjzueUeralMw/ejE2pyoF2J1s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=EvDKL/R60SGwPbTv0H2P+6MLtQl6QF5RG1L3fKZUGTMjb+02NzM52QWRlEevxYANQR3npiyMawk0oYzjYpYyLLTDMIImpJl978zwxAhTeH+dCMakk4z4+XZD2cnE341Kye4O/zcMEkTyg36WMfIoX9slMBJ1BH/HsPN2ZSpujDU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=tYWLhEQh; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk 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=zW6/SWxGJHOFLV38kHr7ZjS0MYE8Rz8g0t7ofw+Cuo8=; b=tYWLhEQhTmPqy7/y0Sb//DKRCG PXCxOnCm00wXSxEHj8mpcRlVyUSIjbT4fp1GyW357yq3YM5ib91HHpY0qH6P21EQFoDllZphCzEVC 013abUoqZ8VPLUBODiRsK1PSHCIpsEm1N0VkH1ahkdj1+5HljScGM6g2SqC2OcVaRs9hPuyNO/5H2 Haxf/38GIBK5LL7aEGPdzLXszuyyF5H7bSGm2iR2+Aw2EgeGMb/BXL0Ct2146ikCAjW4UAiVBE20O lhmZ6lPNg3H6bMudelIGsl44Lg0YjgpAhjHrfdG2+wP/+yvmPqWQlMhR4hCtV9OW1fl/La4Kwipvj kmR56c2A==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:53314) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rbHvj-0007CE-1N; Sat, 17 Feb 2024 10:28:23 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rbHvg-0006Ry-IO; Sat, 17 Feb 2024 10:28:20 +0000 Date: Sat, 17 Feb 2024 10:28:20 +0000 From: "Russell King (Oracle)" To: Sergio Palumbo Cc: Andrew Lunn , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next] net: sfp: add quirk for OEM DFP-34X-2C2 GPON ONU SFP Message-ID: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King (Oracle) On Sat, Feb 17, 2024 at 11:13:14AM +0100, Sergio Palumbo wrote: > [ 15.459629] sfp sfp-1: module OEM DFP-34X-2C2 rev sn XPONxxxxxxxx dc 230912 > [ 15.469121] mtk_soc_eth 15100000.ethernet eth1: requesting link mode inband/2500base-x with support 0000000,00000200,0000e440 > [ 15.509967] sfp sfp-2: module rev 1.0 sn 2307210038 dc 230721 > [ 15.519434] mt7530-mdio mdio-bus:1f sfp2: requesting link mode inband/2500base-x with support 0000000,00000000,0000e440 > [ 24.360320] mt7530-mdio mdio-bus:1f sfp2: configuring for inband/2500base-x link mode > [ 24.368145] mt7530-mdio mdio-bus:1f sfp2: major config 2500base-x > [ 24.374258] mt7530-mdio mdio-bus:1f sfp2: phylink_mac_config: mode=inband/2500base-x/Unknown/Unknown adv=0000000,00000000,0000e440 pause=04 link=0 an=1 > [ 24.389679] br-lan: port 5(sfp2) entered blocking state > [ 24.394948] br-lan: port 5(sfp2) entered disabled state > [ 24.402405] device sfp2 entered promiscuous mode This shows that the interface has been configured for 2500base-X. However, there is no link report. > A stated by you the system is still connecting at 2500base-X even if the > module is set for 1000base-X, as far as I can see, without any error. Right, because, as I've said many times, the kernel has *no* idea that the module internals has been configured to operate at 1000base-X. > My assumption that the module could have forced the speed down to > 1000base-X was completely wrong. Correct - considering that I wrote all this code, it is insulting to have to go to this extent to get the point across. So now that we have agreement that the kernel is trying to use 2500base-X, you now need to get off your high horse and accept that it isn't working because there is _no_ _link_ with the module. In other words, you need to accept that I'm right and you're wrong. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!