Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp341056rdb; Thu, 8 Feb 2024 07:29:18 -0800 (PST) X-Google-Smtp-Source: AGHT+IE8Kj1lv5SKLCjvWThBtS7M2B0M21+CIko/A2CMeBPt4OiorJjHCUTx2sGlzsExBX4ASkHj X-Received: by 2002:a0c:e28e:0:b0:68c:cc45:7980 with SMTP id r14-20020a0ce28e000000b0068ccc457980mr971629qvl.26.1707406158619; Thu, 08 Feb 2024 07:29:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707406158; cv=pass; d=google.com; s=arc-20160816; b=xZ7hk1HZZoNp76FSaldiIjMGJrZDyHk0kglPgXjr0hxhJ8SyS4rGO4tazINVwIqRvm sDuy/D1wWxoEEceAVpVCFY+nCfAZG25a28ak0nQO5RQLGSFN8Nz1ecIH3qcO7TsQwcHP kjmUrQ6HaJaIdhqNztQvW6+N8xJbcdxO6yHm8bADv6aqad9gbsklXIdtqfkHVDDwtQ8V 9DPuW576knsOQ9p9sCinNnue24hLK2Yf5MPLgG3V+b7ux6bKp3YDePqDR/8tZAP3WI+2 cNRZVWs6uoUFc1Z/PKLme4u5DF64j+0tHcl8BdxEtpo/1XJE5NYjsb2QXQuU249XuvGR 61lw== 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=ti0YAgSioGF9FSFHJYn0ruEVqEp65nTgDbJ/iL5dHSs=; fh=Huyo68XuCnxahw4e7GtBH/DFbj+JvjHgf8r+knMplfw=; b=hbf9KDl1MXMHV3q+Hxlg26Uf41M9MMxL2UbiJ+c8CjvqccSCBnoncEy3fV+M5GMgHy 3iDFLmQYWPqeoWH74IwvBfWS12xYNEg0J3u+ffsvgP98Dq0fo5SXbIS1o02xrZF28IeO u/UcizwP50qaVDwnNJp6ZV/ap04aSso/U6bBSCiWNMlRQFMgxEaEvAQelfwi3nkJdZGu STlliLH2Lj1Er6OYp/2GpULqAA5CKgSEYBwnd4FpT8kQ8v+4h18nocp+C/8r4mR4QQza fucL6X8VYBxMQwNXq1sfoA79D1eDJF+pYF8enIlwFbhdeKzBLBg7gJXxhLH3wIyBnpMB Jh/Q==; 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=jYVNYEcZ; 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-58286-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58286-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk X-Forwarded-Encrypted: i=2; AJvYcCVmtLfCewoux0x1JTjHzeMT5QzQtnWuFvHpTlC1+R0LxnDG/QgNR4EIikYDNe6j9lj2lbXeefreN81YOYniVz2ZR1xPQCKbJzla/tYgiw== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id p14-20020ad45f4e000000b0068c8dfa3751si205523qvg.255.2024.02.08.07.29.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 07:29:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-58286-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=jYVNYEcZ; 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-58286-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-58286-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 607281C23550 for ; Thu, 8 Feb 2024 15:29:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8DEC67C0AA; Thu, 8 Feb 2024 15:29:06 +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="jYVNYEcZ" 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 A121B7B3E8; Thu, 8 Feb 2024 15:29:02 +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=1707406145; cv=none; b=gLxfuWiFPSzJpZ8Ssg/IqW677AotnKbpus3A0Zmca0kQS7OH1byU8L0HuyUK89ZJKmpaVjrqq/wxYiDo7ZNjsAVfgZ/KWGXigN9QLryQ/hrlt4zRz+PLr9NnMf4y4pS0+HLgx7KyvshgFSkAkV9uAVeKTfXZTMRfuCQc0EAyYdM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707406145; c=relaxed/simple; bh=PWKix2jKXr3GaATEVoBS68T9Tfwt6Jo13vkkigskCYc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fuiu/CVZ9sB1FRMKRxtx2iGvKJ1+v6JaRH/HDnjIQvnXLiXAScGYrXBlN89XRhBtbo7rIkmHKe4LZE9p3myu6WSp3y9SliqFt9PhSwOoiRAuR2eCC/IYRpvd7QshNDpOPBwO+NVVAeOdzbqM1f2Dd36Tq/AUI+600iI8YJs5yM0= 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=jYVNYEcZ; 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=ti0YAgSioGF9FSFHJYn0ruEVqEp65nTgDbJ/iL5dHSs=; b=jYVNYEcZ9HmlQ+cD7nhE40Nu6z GnC8qmWuIQpLCyMSApowCI4ER3NhLw90JKR+PuBijJ2FyWkLyPC1g/xTBn2LPZjtpWDdmm0bo6/Nb LDM6M9O1bMIw0TX75iB8X9QRlK9iS1m93ii8bARZHvWeo/nZikzATkE4pZ3K+lKLSz+SUxHpcPqEN 353B4FQPLh52U9UvRS5zouhs7AyzD3dVPkcU+S8j/k4E3pDwYE0WPSJOGtIR+46nyMvIKFSouxWym NskBuZBLRBEZ/sMT8uNT8KJOafFaLZPMYdKLef/bVzFwVNAI4ezHPCqBrEf2faRhShRIP6UOz7q/l HI+s4ESQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:47690) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1rY6Ka-0004bQ-39; Thu, 08 Feb 2024 15:28:53 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1rY6KY-0005cD-7X; Thu, 08 Feb 2024 15:28:50 +0000 Date: Thu, 8 Feb 2024 15:28:50 +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 Thu, Feb 08, 2024 at 03:00:08PM +0100, Sergio Palumbo wrote: > Dear Russel, > this is the first time I do such a test and kindly ask you to help me in > preparing it. > In my openwrt environment I have found phylink.c file in two different > directories: > /build_dir/toolchain-aarch64_cortex-a53__gcc-112.30_musl/linux-5.15.137/drivers/net/phy > /build_dir/toolchain-aarch64_cortex-a53__gcc-112.30_musllinux-mediatek_filogic/linux-5.15.137/drivers/net/phy Oh, openwrt. That means I need to re-understand their build system to advise how to do it. I only know the mainline kernel. > do I have to change both adding a line: > #define DEBUG > > before the first #define line: > #define SUPPORTED_interfaces \ Mainline has never had "SUPPORTED_interfaces" in phylink.c, so I'm wondeirng what that's about. I'm also wondering what other changes there are to it. I'm also wondering whether the behaviour you're seeing is somehow special to openwrt. Too many things to wonder about and effectively means there's too much that I don't know. Therefore, I don't think I can help you, and I don't think I can possibly accept your proposal for this quirk. For mainline, as far as I'm aware, it will cause these modules to regress when they are in the manufacturer default state when used with a host that supports both 1000base-X and 2500base-X. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!