🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #26786

Re: [PATCH net-next v3 1/2] net: phy: motorcomm: add led_brightness_set for YT8521

#26786
From: Chukun Pan
Date: Fri, 04 Dec 2026 06:50
18 lines
8066 bytes
Hi,

> [Severity: High]
> Is the MDIO bus lock held on this path? ytphy_read_ext() and
> ytphy_write_ext() are both documented with:
>
>  * NOTE:The caller must have taken the MDIO bus lock.

> [Severity: High]
> This is a pre-existing issue and was not introduced by this patch. The
> existing LED hw_control callbacks also access the extended registers
> without the MDIO bus lock.

Actual testing shows that MDIO bus lock is not needed here.
During testing, this error was only triggered when the
LED0/LED1/LED2_CFG registers were written simultaneously.
The current code only writes to one register at a time.
Technical Details
Message-ID: <20261204065050.1106590-1-amadeus@jmu.edu.cn>
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377126-linux-kernel-netdev=dewy.ru
References: <179612268917.3146.3443593330313080426@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!feed-us-txt.newsdeef.eu!feed-us-mo.newsdeef.eu!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-377126-linux-kernel-netdev=dewy.ru
From: amadeus@jmu.edu.cn (Chukun Pan)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next v3 1/2] net: phy: motorcomm: add led_brightness_set for YT8521
Date: Fri,  4 Dec 2026 14:50:50 +0800
Organization: Usenet Network
Message-ID: <20261204065050.1106590-1-amadeus@jmu.edu.cn>
References: <179612268917.3146.3443593330313080426@kernel.org>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="2696412"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:I/fpEAnYpWBdapV6ehc/WzaHd2o= sha256:HO5GzcU5n8uKgaZgaDI3qUeiyQvUixff6K74iRoYY94=
	sha1:zM4Qz1B2sL3bmG+H/76v16+xDGg= sha256:I6DNsQ4bhu2nxYKiXGRwkU3AeQ6cC3NEqW19tkLW1Bs=
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 3F796117B38; Fri,  4 Dec 2026 09:53:20 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.199
X-Spam-Status: No, score=-3.199 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001,
	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-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 104XwbGEedgz;
	Fri,  4 Dec 2026 09:53:17 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-377126-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=jmu.edu.cn
X-Received: from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 36696117B2D; Fri,  4 Dec 2026 09:53:12 +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 A06C621B5A; Fri,  4 Dec 2026 06:53:09 +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=1796367185;
	b=LoOSzqeZ0MPmx1fnKl4PDDw2KGZZnAPW0U6xqkP/kZV57ImCdszG+exS/02JnOK786CJ
	 v8xboa3fiq4wSCQs3PdUlw/n3njeKy31Za5LclM8lqR90q3UynKLtsVvoW/RRwM72Bl50
	 9ghasbZWlIDvpwVcVwY9FsyUoJjfLUEHTKnnozfRqxrNY80ZRBFKWK6CeMu8lxZ/hVpNQ
	 doyOFGph6lqEv3B90/mvmv0hzmiGq92L9ttS4C+CDY4cvD7hmZdEBTAb2hSLfCkB++p14
	 JeFxoowOR5BnTRClrATun+QoxhIHQlNYpBZ5RhAgVxkCzHy2UVWtX9hvNBpxD05WowA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796367185;
	h=X-Original-To:Received:DMARC-Filter:Received:From:To:Cc:Subject:Date:
	 Message-Id:X-Mailer:In-Reply-To:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Transfer-Encoding:X-HM-Tid:X-HM-MType:
	 X-HM-Spam-Status;
	bh=RPRiJWDzUv/4V4G7QPsCYtKIdT/avYRtwH4OivJsfKI=;
	b=h9WLrY24ouQAQlEschDr4moHE8SQbslksB7fosR+eN70e2cv9aZJddUh7xqM7bQIYLqj
	 YcaNBBGgYP4MVe02WEePGV6n4/LJwqdz0wbmmS9o9dte6KBzgqU+Ex/0jGOZdTLEq95UP
	 FqmPh2DyNJCCvB+1Gq5MzcSeAAJ9H1rxBt644M/RHBin1dB/lX/rndoypjp+edu4OvP8H
	 nDsY7bHc2ExLHPOvtAuTDxcLy9vJbEKSJoY0974bcxoSHemdGXBk0/XtEgrTonKk3xNJu
	 ihy7i8xCwvVdbfxtlF4CLUc2E26dv8DSO8rw54O797Ebf4GLGCiQT86RSMi8+tqcS7w==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=pass header.from=jmu.edu.cn;
	spf=pass smtp.mailfrom=jmu.edu.cn;
	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 A51BD606A338;
	Fri,  4 Dec 2026 06:53:05 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=45.254.49.197
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796367185;
	b=Nn5Thft4/f1EuOAKz71+kLbF3/xx+VE5GIju1XmE5NvTyKpnEuu05u18I8nkC1AEnd2C
	 KUzOjBMOlQPyanL1+VkqdE08282gzIORQE/U4VvdBbB8gf/pifrWCBeJTc1fLXTfhD5X6
	 hfIZwplWW0EhNpE0HBN578rIt0KkskO0aY3CyJeylJGKnUvSYatQb/pBIHjTQYCXJH/bm
	 Dp5FUQorQQyfmVsv0I05VAtt/h89E/LB7FtR5Kjt1nU9EMwLcgfScTqZDVz0WlSE9md+f
	 TmofH3uMCX8e6kIUGJVd0aBk5F6D/AS6dbvpDM7PAhJe09N68/kOhMDwi6V0PB16Z/A==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796367185;
	h=DMARC-Filter:Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer:
	 In-Reply-To:References:MIME-Version:Content-Transfer-Encoding:
	 X-HM-Tid:X-HM-MType:X-HM-Spam-Status;
	bh=RPRiJWDzUv/4V4G7QPsCYtKIdT/avYRtwH4OivJsfKI=;
	b=bih1BH9QD0DIE61tw0zN21Fkahm94wibjuLtGfiEu1Y5k+0ygAccPPXn9Z/3It6YEJya
	 u3JkC53tfXb0l4lk7hdQhiU3GCw9g87epuiOAQJ5sdYiW9HjcbqwSkOO8GQWNq7S35Mcu
	 O+PJ3sw4aerpimS0nsvJgv4lamYOQBfDZGI41jZYRhC4fXt6p0Dwd3Wt4BSZ/wQ53z+CK
	 hSGtUMadYAEcLhlaEfgY/xtNHrHJ8BYcwGtU/nQSdSaIxAOJfo3OV8KjcnNN1krQkGfYl
	 lSzxVjEMH+HTuwLIPCRgMMKPGXsfojyBWWb4xP7AzFpo15rrOX/4ZE1zFJS7tha27cw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=jmu.edu.cn;
	spf=pass smtp.mailfrom=jmu.edu.cn;
	arc=none smtp.remote-ip=45.254.49.197
X-Received: from mail-m49197.qiye.163.com (mail-m49197.qiye.163.com [45.254.49.197])
	(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 8D073606A322;
	Fri,  4 Dec 2026 06:53:01 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8D073606A322
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=jmu.edu.cn
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=jmu.edu.cn
X-Received: from Vostro-3710.lan (unknown [14.220.232.40])
	by smtp.qiye.163.com (Hmail) with ESMTP id 5716640ba;
	Fri, 4 Dec 2026 14:52:57 +0800 (GMT+08:00)
X-Cc: Frank.Sae@motor-comm.com,
	amadeus@jmu.edu.cn,
	andrew@lunn.ch,
	davem@davemloft.net,
	edumazet@kernel.org,
	hkallweit1@gmail.com,
	kuba@kernel.org,
	linux-kernel@vger.kernel.org,
	netdev@vger.kernel.org,
	pabeni@redhat.com
X-Mailer: git-send-email 2.34.1
X-In-Reply-To: <179612268917.3146.3443593330313080426@kernel.org>
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-HM-Tid: 0aa23fd3d8a903a2kunm693b678f331b1
X-HM-MType: 10
X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly
	tZV1koWUFITzdXWRgWCB1ZQUpXWS1ZQUlXWQ8JGhUIEh9ZQVlDGhpJVk5JQ0NIGEhMGU4aT1YeHw
	5VEwETFhoSFyQUDg9ZV1kYEgtZQVlKT1VJSUtVSUhJVU9LWVdZFhoPEhUdFFlBWU9LSFVCQklOS1
	VKS0tVSkJLQlkG