]> git.ipfire.org Git - thirdparty/linux.git/commit
net: phy: introduce phy_id_compare_vendor() PHY ID helper
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 23 Aug 2025 13:44:28 +0000 (15:44 +0200)
committerJakub Kicinski <kuba@kernel.org>
Wed, 27 Aug 2025 00:09:27 +0000 (17:09 -0700)
commit1abe21ef1adf0c5b6dbb5878c2fa4573df8d29fc
tree7b23a6ff5c68540bd77cb0182e4a001001c215dc
parent3c14917953a51a22f4fa7e13dfc13a4ec09bf348
net: phy: introduce phy_id_compare_vendor() PHY ID helper

Introduce phy_id_compare_vendor() PHY ID helper to compare a PHY ID with
the PHY ID Vendor using the generic PHY ID Vendor mask.

While at it also rework the PHY_ID_MATCH macro and move the mask to
dedicated define so that PHY driver can make use of the mask if needed.

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20250823134431.4854-1-ansuelsmth@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/phy.h