projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa39032
)
net: phy: add phy_interface_weight()
author
Russell King (Oracle)
<rmk+kernel@armlinux.org.uk>
Sun, 31 Aug 2025 17:34:33 +0000
(18:34 +0100)
committer
Jakub Kicinski
<kuba@kernel.org>
Tue, 2 Sep 2025 23:23:13 +0000
(16:23 -0700)
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link:
https://patch.msgid.link/E1uslwn-00000001SOx-0a7H@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/phy.h
patch
|
blob
|
history
diff --git
a/include/linux/phy.h
b/include/linux/phy.h
index
4c2b8b6
..
bb45787
100644
(file)
--- a/
include/linux/phy.h
+++ b/
include/linux/phy.h
@@
-169,6
+169,11
@@
static inline bool phy_interface_empty(const unsigned long *intf)
return bitmap_empty(intf, PHY_INTERFACE_MODE_MAX);
}
+static inline unsigned int phy_interface_weight(const unsigned long *intf)
+{
+ return bitmap_weight(intf, PHY_INTERFACE_MODE_MAX);
+}
+
static inline void phy_interface_and(unsigned long *dst, const unsigned long *a,
const unsigned long *b)
{