From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-182.mta1.migadu.com (out-182.mta1.migadu.com [95.215.58.182]) (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 C9E741F3FDC for ; Mon, 26 May 2025 08:52:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748249550; cv=none; b=NlPm0/Dh/RJ7u6Oolnj4Sow5g30otw4T9tNzlISC42k4A1uV06NNLLKpRF3vNg6UL76bA1iSG/NMx6DRCBIqpC+9nVfiO6uaPLvHMWeM2IanMN2uE66boqvuAVGhT6hlC39YtR3nq2VmC4o1mx91ogHnbQ1hXvMOE239nC1t68w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748249550; c=relaxed/simple; bh=M+bGXnFCRXVHeFCtbYzsS97i8k7WsHr3F3WvzvxukKQ=; h=MIME-Version:Date:Content-Type:From:Message-ID:Subject:To:Cc: In-Reply-To:References; b=CIvoYIW/HR6pSkRbaj0WfNFWTLrefbL6aPjqMZBPkbUDnehhaXxEEWZiRehnZ2bO8zKkzZzL0Lk/uXzyCL3/0VQghvtmXJZXmOfR8C39Xu9xW6c3QfrPOHqxRKcQPxXjP2XBfV/znRnPhPtap/fEsPWFXjn4tQqTT7yIdSIyejw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=tMjbSCfB; arc=none smtp.client-ip=95.215.58.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="tMjbSCfB" Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1748249535; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=1CYXQfHMRVpFS4CUQUzSRarfKIEBSPUbPS3dEjTNyoo=; b=tMjbSCfBJZAn1eUgzUyAC65QXJkT3bAsv9K3AivPB2mcjtoen6MnPHX4ciPsM/Vby04RlN ZDEaCEBg6XpJqiZOQdTILwDn3aBz7P4Tc05qBvTgxO3P7pWKC6V+Pe+iFOBUJCDfoiP/Vj XejAK3vE+Q1AiIsjwU9xnYPVj/Nf5tk= Date: Mon, 26 May 2025 08:52:12 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: "Yajun Deng" Message-ID: <552f550315dc503250cc61fdcd13db38c1ea00f5@linux.dev> TLS-Required: No Subject: Re: [PATCH net-next] net: phy: Add c45_phy_ids sysfs entry To: "Russell King (Oracle)" Cc: "Andrew Lunn" , hkallweit1@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: References: <20250523132606.2814-1-yajun.deng@linux.dev> <2eec1d17-a6d1-4859-9cc9-43eeac23edbd@lunn.ch> X-Migadu-Flow: FLOW_OUT May 26, 2025 at 4:19 PM, "Russell King (Oracle)" = wrote: >=20 >=20On Mon, May 26, 2025 at 08:11:21AM +0000, Yajun Deng wrote: >=20 >=20>=20 >=20> c45 device: > >=20 >=20> $ ls /sys/class/net/eth0/phydev/ > >=20 >=20> attached_dev driver of_node phy_id power subsystem > >=20 >=20> c45_phy_ids hwmon phy_has_fixups phy_interface statistics uevent > >=20 >=20>=20=20 >=20>=20 >=20> $ ls /sys/class/net/eth0/phydev/c45_phy_ids > >=20 >=20> mmd10_device_id mmd17_device_id mmd23_device_id mmd2_device_id mmd= 7_device_id > >=20 >=20> mmd11_device_id mmd18_device_id mmd24_device_id mmd30_device_id mm= d8_device_id > >=20 >=20> mmd12_device_id mmd19_device_id mmd25_device_id mmd31_device_id mm= d9_device_id > >=20 >=20> mmd13_device_id mmd1_device_id mmd26_device_id mmd3_device_id > >=20 >=20> mmd14_device_id mmd20_device_id mmd27_device_id mmd4_device_id > >=20 >=20> mmd15_device_id mmd21_device_id mmd28_device_id mmd5_device_id > >=20 >=20> mmd16_device_id mmd22_device_id mmd29_device_id mmd6_device_id > >=20 >=20 > I suspect you don't have a PHY that defines all these IDs. Are you sure >=20 >=20your .is_visible() is working properly? >=20 I'm=20just determining if it's a c45 device and not filtering PHY ID cont= ent now. I can add this condition.=20 But=20the 'c45_phy_ids' directory could not be hidden if it's a c22 devic= e. If c45_phy_ids is a file and it has an array of values. We can hide this file even if it's a c22 device. > --=20 >=20 > RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ >=20 >=20FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last! >