🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #19811

Re: [PATCH net-next v3 2/2] net: sfp: skip PHY probe on bridge-less OEM SFP-10G-T revisions A and B

#19811
From: Andrew Lunn
Date: Fri, 20 Nov 2026 12:56
25 lines
9117 bytes
> +static void sfp_fixup_oem_10gt(struct sfp *sfp)
> +{
> +	char rev = sfp->id.base.vendor_rev[0];
> +
> +	/* Revisions A and B of this module have no RollBall I2C-to-MDIO
> +	 * bridge (on rev A, page 3 of the 0x51 EEPROM just echoes written
> +	 * bytes), so every RollBall command times out and the PHY probe
> +	 * keeps retrying for over nine minutes, holding rtnl_lock for ~20
> +	 * seconds per attempt. The PHY is not accessible at all, so use the
> +	 * module without one.
> +	 */
> +	if (sfp_strlen(sfp->id.base.vendor_rev, 4) == 1 &&
> +	    (rev == 'A' || rev == 'B')) {
> +		dev_info(sfp->dev,
> +			 "rev %c has no RollBall MDIO bridge, not probing for a PHY\n",
> +			 rev);


Quirks don't print anything. Please change this to dev_debug(), or
remove it.

Otherwise this looks good.

	Andrew
Technical Details
Message-ID: <8955d9e9-d7fd-4bd1-86d3-d128fbfcbf30@lunn.ch>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367940-linux-kernel-netdev=dewy.ru
References: <20261120063756.3677554-1-pawlik.dan@gmail.com> <20261120063756.3677554-3-pawlik.dan@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-367940-linux-kernel-netdev=dewy.ru
From: andrew@lunn.ch (Andrew Lunn)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v3 2/2] net: sfp: skip PHY probe on bridge-less
 OEM SFP-10G-T revisions A and B
Date: Fri, 20 Nov 2026 13:56:29 +0100
Organization: Usenet Network
Message-ID: <8955d9e9-d7fd-4bd1-86d3-d128fbfcbf30@lunn.ch>
References: <20261120063756.3677554-1-pawlik.dan@gmail.com>
 <20261120063756.3677554-3-pawlik.dan@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="3161530"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:6updaWhd5vPua6EjgnTikOdTlAE= sha256:7jRzjLkGYvoct+6poBdopLn/j4/LzLGkFYDhFT9e7KY=
	sha1:lzsDhBy4OAoTbs0KY3L7SUjlh5g= sha256:vOjM3sin00T5/TEhQMVUBYlUpBenT1jcYeIyn4ypMko=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id B4D711159A2; Fri, 20 Nov 2026 15:57:22 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.051
X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key)
	header.d=lunn.ch
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id vOqlAV5h9Epe;
	Fri, 20 Nov 2026 15:57:19 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-367940-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 173811159A0; Fri, 20 Nov 2026 15:57:10 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 37BA61C50BD; Fri, 20 Nov 2026 12:56:37 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1795179392;
	b=gs58IAlqJjqY0HW/o4p3x4DQlBqCuOt5ck04oCjck/+zN/O5Z/b5cSRwbIkUx+SBRkD6
	 uWPs+HVyxaWOesHre/kZ0uK4tTD6V5w9947VHoi6YCdpp/izgBaZvs6igt9IjEHD04wMF
	 PweATai/1Gy+eIq0Li5CX6y3iBuTxi3vsjwC2imptAVkGm12oScqvnSuzqObpEdqR/igB
	 rbP2uvneidUDaSSI/qalYwzYRHjz5Gk/f/NRYZQrJiszB4vjJsWeU3f1ACmRy4mcE5ELi
	 uqrKu3F07zq/GDnthkZKl7JV/JOurfAOsU+p+HYJ56+05Sb35WW7cwOe4X08h6NshMw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795179392;
	h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date:
	 From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=QQVPMJtHgBSt1RGEs4QTbhObG77EwKUDsV18b8R8cpU=;
	b=xkYRVDjk3eB+skTd4y1KRnTlmQif5Ar4djKN2IumMOU0KuycJnEs1Sj2KnSyPPBLKtnY
	 ceelX8YTisnSqj2kUJqnPbez7Ggrrrnbc4+s3BBheJDd/ARdbAto2kPFbf0uyf6aa9rY5
	 d60SQEzHJ0pMeZiFKy2LqjWpkcSJ8tQc8gOa0yLG2eUR8uA4LnVvG6u4hrO3lVJx5PXnx
	 JMina8EtLhHJzXCf3kwTVBfwxuirwN8VbGt9z3mpvQRsdflAuAziLnKQcz1ku2c4mEL94
	 mu6sWtVE0+M2QJkoWYYoaJVsvebKpeUT+L7QfmYG+Vlei4Qvaa5a1r2vUKr6mBhgJ+Q==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=O26MBvPJ;
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id A810660A2605;
	Fri, 20 Nov 2026 12:56:32 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=O26MBvPJ
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795179391;
	b=e4dRp4ktKMWc2FMYnahRBtCz1Cn1wRqDS2KyA+0UuzNUgnuvd5Jr6zQWsK+6WNcimVBa
	 sOEyO4zslXTPc/FRGssF9d2zzW3LSYRdvSwafhV+I+7azZmQ1zNP4g8ABB5cw9LHy7mcB
	 BJ12bRigobvjuO4U6i/FBK1U+KCltLgJ+VatkUfK8uuzTpawN8MnPUM0yxw3mp58eQzqn
	 62R2QHi6nsdMlifE2d5d9TNLHWHFsEVZgty+SFjMHrcGcL7VVrXMcWijFrGt75ChvEhXB
	 YCjAmJ4n7ClcY4ONpJi1FXFPTYBcDV0HzuefZE0w9fhNhygIZWkqIA/vFqNt+ZHLpiw==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795179391;
	h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject:
	 Message-ID:References:MIME-Version:Content-Type:Content-Disposition:
	 In-Reply-To;
	bh=QQVPMJtHgBSt1RGEs4QTbhObG77EwKUDsV18b8R8cpU=;
	b=YKhQtddBm69WKpgx4Xnqz3e0T95oOTikPu67ko6dUp4VoAOcyfRpEGLtudRiFzp1RQrL
	 1gmPkzHVmTJVYuDacw9eKn92jy6J1LEWjfUtvmD6AykMZ42IdSErvPMrTi0RI7VuwN7wn
	 egqZ5SsWOCR5tvFoykrGQhlWnEt1dMhkYG0gHUfMY8xqADbiSNWZfP9S9AOxzbfy0+V0q
	 EGgHOqqJNH1lEvZLFQCIWJzHCO4P9jgf3yuXm6xwFaOfL3jTkrBF/wRRkzxAgqW1gtIA5
	 mRPgGI+nG4BqyfNQ7NxFR4Gh9a41xWrpxeZVyylGFuOczrj0ZShF1uPwX8+g0RW6HJQ==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=lunn.ch;
	spf=pass smtp.mailfrom=lunn.ch;
	dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=O26MBvPJ;
	arc=none smtp.remote-ip=156.67.10.101
X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 85DFA606A32C
	for <netdev@vger.kernel.org>; Fri, 20 Nov 2026 12:56:31 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 85DFA606A32C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch
X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch;
	s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version:
	References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject:
	Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding:
	Content-ID:Content-Description:Content-Disposition:In-Reply-To:References;
	bh=QQVPMJtHgBSt1RGEs4QTbhObG77EwKUDsV18b8R8cpU=; b=O26MBvPJ5SHbMr8pzxyUYoPDL3
	T0IhK3p7cg1kBj5MVYl0Y36n1Vo2sm6aQIJFORNQa6lsbaiDx3f1xXXgKu1c0c4nTAGfuedjhehnw
	mxFY2ybNc3uK9nW6LIF1vpZFKx5qQOHCWnCI50FMScxu22RSd9Leq9yjtliRS5roDPdQ=;
X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2)
	(envelope-from <andrew@lunn.ch>)
	id 1xUOAH-000IBZ-Aw; Fri, 20 Nov 2026 13:56:29 +0100
X-Cc: hkallweit1@gmail.com, linux@armlinux.org.uk, netdev@vger.kernel.org,
	andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
	kuba@kernel.org, pabeni@redhat.com, horms@kernel.org,
	kabel@kernel.org, petr.wozniak@gmail.com,
	maxime.chevallier@bootlin.com, olek2@wp.pl
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261120063756.3677554-3-pawlik.dan@gmail.com>