🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #16728

Re: [PATCH net-next 1/3] net: mdio: mdio-bcm-unimac: Define MDIO_OP_SHIFT

#16728
From: Nicolai Buchwitz
Date: Sun, 15 Nov 2026 18:49
21 lines
9236 bytes
On 13.11.2026 22:15, Florian Fainelli wrote:
> The MDIO_CMD operation code field starts at bit 26. Define
> MDIO_OP_SHIFT for it and use it to build the opcodes instead of open
> coding the shift.
> 
> While at it, rename MDIO_RD and MDIO_WR to MDIO_RD_C22 and MDIO_WR_C22 
> to
> make it clear that these are the Clause 22 opcodes, in preparation for
> adding the Clause 45 ones.
> 
> No functional change.
> 
> Signed-off-by: Florian Fainelli <florian.fainelli@broadcom.com>

> [...]

Reviewed-by: Nicolai Buchwitz <nb@tipi-net.de>

Thanks,
Nicolai
Technical Details
Message-ID: <b66402beeb5ad97ce60db4e127543b90@tipi-net.de>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-fra.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363798-linux-kernel-netdev=dewy.ru
References: <20261113211554.2058181-1-florian.fainelli@broadcom.com> <20261113211554.2058181-2-florian.fainelli@broadcom.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-fra.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-363798-linux-kernel-netdev=dewy.ru
From: nb@tipi-net.de (Nicolai Buchwitz)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next 1/3] net: mdio: mdio-bcm-unimac: Define
 MDIO_OP_SHIFT
Date: Sun, 15 Nov 2026 19:49:25 +0100
Organization: Usenet Network
Message-ID: <b66402beeb5ad97ce60db4e127543b90@tipi-net.de>
References: <20261113211554.2058181-1-florian.fainelli@broadcom.com>
 <20261113211554.2058181-2-florian.fainelli@broadcom.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII;
 format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1875818"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:qIkFI2Zjh1Fb01WFukeynzX3TL8= sha256:B9qc1LjrcXM4i0marVbhKTM8PiaNTXedGpjTycDw+S8=
	sha1:a/iTqyrg6jwSIBbwPTT5TgUP8GQ= sha256:h19c5yFytpVqbs+zHvG/ne+gGHyVuwBK3KOSMdo7qVA=
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 B3D54114A33; Sun, 15 Nov 2026 21:50:01 +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 (2048-bit key)
	header.d=tipi-net.de
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 luRu_J92j-Ds;
	Sun, 15 Nov 2026 21:49:57 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-363798-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id EF7CE114A2E; Sun, 15 Nov 2026 21:49:48 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id B3E212C269; Sun, 15 Nov 2026 18:49:44 +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=1794768584;
	b=OeP66nuM5ejMZsx0a1XcZOejGSLh0FJ6qd8XSS5EsWUIBMMlw8g1XEjYk4RM5CxtF/UU
	 I2phRpAa0UP+fpuxtvVAu8UZiOSztKL7dn0s5oXblNpg4AcVjB6+4Tj/igxTtFjuGyYYd
	 WpNSgOw9uaA16Ep0xHyHVTbrhsUMJw2mIcdVInQPGHsy3Bc/k70ls5nIjrYu4rz9ns0Jt
	 Jh4jEEc5WBcPo4EPymAxanC+N4aMf6oUL2ReU+dmAwUhLNDGcyKFn+n5xoInv0jqPc6uM
	 Q8Ml/UoesYkwt+X+W9UNhGIklHpcX7uqZre/h9NlBy84UJ6/2+Y73H78+zpQ3MRjAIw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794768584;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:Date:From:To:Cc:
	 Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type:
	 Content-Transfer-Encoding:X-Last-TLS-Session-Version;
	bh=gDbAbkhzYPwo+o4xIPlEaPoSb04+k7+HNXie8Q57pgA=;
	b=JOoDO4D08Pp8IrohtWt+57V2kdavCD8Qbhe9jXPTXaW9hwsPAgjLqYB5qnobM3fXTbYO
	 5jGqc78rMlO7bu1VJZsriD+UP0mETcQ6FurvPmFwtA7t05MZI7NA83QswYNsLWPPUCbro
	 oqHbfm59bNnrREmx5+NN7UYgj5S+6/n5SFBrYN9v0o1LgiNQoN3Ku5jANdFndVBUh3wGM
	 SbKkZkhkU01x93GEd63ZXmANNkSlhu7xEd35UccHi8L/OGaPxS8NR2zYRa8eYzHxKsy69
	 qdtU0N+In+HKbPV3WO8hHNn0uD5pYZ/nev+fir3z2HitMwVtmuGiN2ZdjDXRluNR92Q==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=T7bPkBFk;
	dmarc=none header.from=tipi-net.de;
	spf=pass smtp.mailfrom=tipi-net.de;
	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 DF6E1606A329;
	Sun, 15 Nov 2026 18:49:43 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=T7bPkBFk
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=194.13.80.246
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794768578;
	b=p4bH1zUk6dBT4lOp0d/VshKGHuBRxYNhxUmwYaT4V/ZmMP0LeKrlKQW6lr98wO/67T1C
	 v70OjMznsP6eUyJtR8FWlH2g1tnVMtRLZrG7Gj1T474VFtyA9vkx15V0UtNDgxv4HWgi3
	 XW/I3POygrAuWSTXtwDgj6E54j8926k67dirSdugFjidHJtuQWqqsk+H+SmZ1Vv3UUeQf
	 cBo7/6vx0J6Wk2qV4teldC9/K02uVTaBrCuJ7B/b5ihsNZ67ta3KxicMCa+/CYAQtoBgO
	 MTXySYTmoEJcKWhzv0xoSuiet8fL/khi307x0xim9bJ6zisNRHLdSP8bP2iZTyoOQmQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794768578;
	h=DMARC-Filter:Received:DKIM-Signature:MIME-Version:Date:From:To:Cc:
	 Subject:In-Reply-To:References:Message-ID:X-Sender:Content-Type:
	 Content-Transfer-Encoding:X-Last-TLS-Session-Version;
	bh=gDbAbkhzYPwo+o4xIPlEaPoSb04+k7+HNXie8Q57pgA=;
	b=usQMqcmCaaCT24n26/nB4FENVSWA1/w4FjB4nFgAgytqyeHNkEYbZtlQnptQ0HqP4O7C
	 PlZyqedSbjKMissg3OL5cH8mYA5ZRqBrAsoIKYHVNmhUTNbrlysNpqaYVWQap3MbChBJy
	 RdDcyS6+d/RboU7HbJs+FVIfRFcklat6rsOZAiQIkGmlRKKugk5KfcYKJXDtCHl9+jbqZ
	 T7RGzPfuUJNMa3VQQgZKmvueWiEYxp2msV7Ji3WaDeAr3Nf3dUwlSRbzvuxCEB5mOouTT
	 6PZxnb09pCmhVY0UPfj5Xvi13lnFNKp+gcr0BAedYBGzGlSJd2RC31r1SvUfRy8AmJg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=tipi-net.de;
	spf=pass smtp.mailfrom=tipi-net.de;
	dkim=pass header.d=tipi-net.de header.i=@tipi-net.de header.a=rsa-sha256 header.s=dkim header.b=T7bPkBFk;
	arc=none smtp.remote-ip=194.13.80.246
X-Received: from mail.tipi-net.de (mail.tipi-net.de [194.13.80.246])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id D54A6606A31D;
	Sun, 15 Nov 2026 18:49:36 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org D54A6606A31D
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=tipi-net.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=tipi-net.de
X-Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 4EE79A1654;
	Sun, 15 Nov 2026 19:49:25 +0100 (CET)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tipi-net.de; s=dkim;
	t=1794768568; h=from:subject:date:message-id:to:cc:mime-version:content-type:
	 content-transfer-encoding:in-reply-to:references;
	bh=gDbAbkhzYPwo+o4xIPlEaPoSb04+k7+HNXie8Q57pgA=;
	b=T7bPkBFkxC7VpDc3eN8Z5T1Rt4DtIUySaIzoxz9SxCjHKlQpNV0PV8GF9kxn2l3ZtHs4Kv
	3bqwiNeFjUXkkhHqE6kJBNF0KvFS0vJCUPQARrbrvHrQD+cA7uOqhoRb/7Egq5a60Y5mcU
	z6J2ZcAweNbiRNnNLvY8nxd0LBkdGpL/Vbf1D8iyHmFCxVGM6SynoVMVatr+27SusgQzDL
	N41mzCXlXAx5rwntAQE9hdXFbk9ODInNbcv/OgHXM+S1mSdUCscCabsTP2EjEkYTg5xRT2
	M3BH3P2BJAjhHVkL+Mm6P41x4CwF5en2obNFTeHlwvaR8/ySkJDKt63bRBZFXQ==
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-Cc: netdev@vger.kernel.org, Doug Berger <opendmb@gmail.com>, Broadcom
 internal kernel review list <bcm-kernel-feedback-list@broadcom.com>, Andrew
 Lunn <andrew@lunn.ch>, Heiner Kallweit <hkallweit1@gmail.com>, Russell King
 <linux@armlinux.org.uk>, "David S. Miller" <davem@davemloft.net>, Eric
 Dumazet <edumazet@kernel.org>, Jakub Kicinski <kuba@kernel.org>, Paolo Abeni
 <pabeni@redhat.com>, linux-kernel@vger.kernel.org, Mlody12 mlody12
 <kudzo51@gmail.com>
X-In-Reply-To: <20261113211554.2058181-2-florian.fainelli@broadcom.com>
X-Sender: nb@tipi-net.de
X-Last-TLS-Session-Version: TLSv1.3