Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: phy: add phy_can_wakeup()

Add phy_can_wakeup() to report whether the PHY driver has marked the
PHY device as being wake-up capable as far as the driver model is
concerned.

Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
Link: https://patch.msgid.link/E1vBrQs-0000000BLzI-0w3U@rmk-PC.armlinux.org.uk
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Russell King (Oracle) and committed by
Jakub Kicinski
330ce8ff f0773d0b

+12
+12
include/linux/phy.h
··· 1379 1379 linkmode_clear_bit(link_mode, phydev->advertising_eee); 1380 1380 } 1381 1381 1382 + /** 1383 + * phy_can_wakeup() - indicate whether PHY has driver model wakeup capabilities 1384 + * @phydev: The phy_device struct 1385 + * 1386 + * Returns: true/false depending on the PHY driver's device_set_wakeup_capable() 1387 + * setting. 1388 + */ 1389 + static inline bool phy_can_wakeup(struct phy_device *phydev) 1390 + { 1391 + return device_can_wakeup(&phydev->mdio.dev); 1392 + } 1393 + 1382 1394 void phy_resolve_aneg_pause(struct phy_device *phydev); 1383 1395 void phy_resolve_aneg_linkmode(struct phy_device *phydev); 1384 1396