From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pandora.armlinux.org.uk (pandora.armlinux.org.uk [78.32.30.218]) (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 6CEAC20F080; Tue, 1 Apr 2025 17:56:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.32.30.218 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743530205; cv=none; b=DGsgoQsBN4vDjB6IDogGE8PSgSiR/cTPUiqxrPNmXcE/Ie265qHsjklri7IPzhOnXigOTLnsu1JuNzLwuHQ8jthQqQTaNwajgNn1eKZCs04CUZmTDtrRkBzgNuJsYnL5+ivd41WhVTTQonlYkSOCr4ISOnKPcG9b2N4XIfuj8BU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743530205; c=relaxed/simple; bh=mVPJFdz1rjfDWi6PMax3qH62bmWT7r6prnH2g2vxswM=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=sUvGAOPfmw8WarGNHu97j1K9xDheD6Ao9R51MwzKftV3VoBc8Tbkk3gI4ybXsl18LlBiE5VZOMNWgKLNRliyR0A861YRKd96eREqHytMN4oh6eS0CMCOPNqLoNN+MdEiNju1AtUuNwQfvYI6uIlfhECTkz4q8QnG2gb6BSBmGmU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk; spf=none smtp.mailfrom=armlinux.org.uk; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b=lR+9llv8; arc=none smtp.client-ip=78.32.30.218 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=armlinux.org.uk Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=armlinux.org.uk header.i=@armlinux.org.uk header.b="lR+9llv8" 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-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding: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=KfxG9zER/CsQbwixwWuMGqZuKg6tmfxNplTMe1b8WXA=; b=lR+9llv8f6vihnsWNFFXN2kgT2 TmKJLTuj5+m590+5/EvmK4ftwVdPzJU7ZcMbwmaQ+zcdfmgtYFHg8a9/MZKDM9dvFT28Ud0U7bpIb 14KZD+KeV+r1yDzMbCQGikAYOPrPhgHBHznbThP/DVD0aIaiC/MH7nsA2m6kf52M1/REwuxFwBFXx Iyg7/FAIgE3B/+Dfu5fTuM07V/BJ8f77GpCHS8L5KD0aA5weuVnuAWeq3yniU9oYio3zHNL3jxrM1 FHvniiWydMdAJDLdp6CsD8rKqoS4oGpjL1+lAxXCy+lFm9n3rkFyGEsARC1DkvOltzVx3VZkwkbaa WyDJIBVQ==; Received: from shell.armlinux.org.uk ([fd8f:7570:feb6:1:5054:ff:fe00:4ec]:44770) by pandora.armlinux.org.uk with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1tzfqZ-0006l7-0W; Tue, 01 Apr 2025 18:56:23 +0100 Received: from linux by shell.armlinux.org.uk with local (Exim 4.96) (envelope-from ) id 1tzfqT-0002tR-0o; Tue, 01 Apr 2025 18:56:17 +0100 Date: Tue, 1 Apr 2025 18:56:17 +0100 From: "Russell King (Oracle)" To: Christian Marangi Cc: Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiner Kallweit , Florian Fainelli , Broadcom internal kernel review list , Marek =?iso-8859-1?Q?Beh=FAn?= , Andrei Botila , Sabrina Dubroca , Daniel Golle , Eric Woudstra , netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [net-next RFC PATCH v5 4/6] net: phy: introduce genphy_match_phy_device() Message-ID: References: <20250401114611.4063-1-ansuelsmth@gmail.com> <20250401114611.4063-5-ansuelsmth@gmail.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250401114611.4063-5-ansuelsmth@gmail.com> Sender: Russell King (Oracle) On Tue, Apr 01, 2025 at 01:46:05PM +0200, Christian Marangi wrote: > Introduce new API, genphy_match_phy_device(), to provide a way to check > to match a PHY driver for a PHY device based on the info stored in the > PHY device struct. > > The function generalize the logic used in phy_bus_match() to check the > PHY ID whether if C45 or C22 ID should be used for matching. > > This is useful for custom .match_phy_device function that wants to use > the generic logic under some condition. (example a PHY is already setup > and provide the correct PHY ID) > > Signed-off-by: Christian Marangi Reviewed-by: Russell King (Oracle) Thanks! -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!