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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 3A2E0C433EF for ; Mon, 9 May 2022 15:44:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc: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=FaAfemimdTYZ6JGX7JZ5lcmNCvJ7z6aV9VN/nV1VdkA=; b=C7U9TaitALhoWb 58CEEeHisL/4moJoS6WPxQyRBrIxhyhFVw0m7APIdcCOySMrbDAM8+hse28EGs4y2yXl0LxYvkUqK rOOC1mLnyj3alIKJ3atmNc5pav0VPpDHa/Kg2qhjzlw8NoZDDWw2Wn7xLB7+2cMfTo7eDArSjzf4W QTZ50pHgke5q3qi+5kH/U2fKZh6xAelW/PPrMcbASeGksE5FwgnhwvQlbDSwo5ThzdZKmwiYmX8sf 7IYhJNLYwWW0yBUu1r+tlOz0lmaYk8T+1M9nZ0DP8weqDZOzPyXgMaJiRADXvaBJtcBWfBtw9I9Qe /gd47NKwyjNSZwmOh9XQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1no5Xk-00FAGi-5c; Mon, 09 May 2022 15:43:28 +0000 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:32c8:5054:ff:fe00:142]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1no5Xg-00F9me-4A for linux-arm-kernel@lists.infradead.org; Mon, 09 May 2022 15:43:26 +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-Transfer-Encoding:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Reply-To: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=ZbKTm9erZUSeLK9K2p9jpAkc6IDCmt2azYw3hsvlj8k=; b=BUAH221MpqsNj0gg4IkG98SQEN EyoMir/7AgyxWh5Kz5DHtZeMQpltX+ywywfKjiZqc2zzkBB39I1KjsMAx9Vb0HWAGPfkjlBdASuGF Ys//5BKp8P4/mbWauUsDBRYKSz2K2bOa1ziAPJGKoMchyor3UFUyhy9lJvKBtl1WTqGQnNhA4XWPA gAFKEZ+3HRzws8pvPkOumTawj2hnXShNhzDBnHadrPc8XVBht9po+MKyjQKWERha3MlE2X6j5PHzO F58UnT2/TrIclT4RAi1Ps0yvSdKPYMVSPggbBqE2V0R5TFCjCynWz7L0DpNl+RSRazWGV6aspkHRf /ydjjhNA==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:60640) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1no5Vb-0003GS-4u; Mon, 09 May 2022 16:41:15 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.94.2) (envelope-from ) id 1no5Va-0005Dd-LF; Mon, 09 May 2022 16:41:14 +0100 Date: Mon, 9 May 2022 16:41:14 +0100 From: "Russell King (Oracle)" To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Giammarco lynx , linux-arm-kernel@lists.infradead.org Subject: Re: Question abount VSOL/CarlitoxxPro SFP Patch on Marvell Armada (MCBIN DS) Message-ID: References: <20220508165159.6jmnbzbvdm34c4qp@pali> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220508165159.6jmnbzbvdm34c4qp@pali> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220509_084324_480036_BB1137F9 X-CRM114-Status: GOOD ( 12.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Sun, May 08, 2022 at 06:51:59PM +0200, Pali Roh=E1r wrote: > Russell, is there any option to ignore speed information stored in SFP > EEPROM and try to choose speed at linux runtime? If sfp_parse_support() fills in a support mask containing both 1000base-X and 2500base-X, then yes. By default, phylink will choose 2500base-X because that's the fastest speed. ethtool will report that both 1000base-X and 2500base-X is supported, and 2500base-X is being advertised. If you change the advertisement to 1000base-X, then phylink will switch to 1000base-X, and vice versa. > And how to correctly handle behavior of SFP module which changes speed > during usage time? I know of no way that a SFP module can signal to the host that its host interface has changed in some way. There is no provision for a module to state what the host interface actually is of the module - most of what the kernel does is heuristics based on modules that I've had available. SFPs suck in this regard. GPON SFPs suck way harder because they claim SFP MSA compliance but they always seem to be violating the SFP MSA in some regard. -- = RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel