Skip to content

Commit 62f3415

Browse files
ffainellikuba-moo
authored andcommitted
net: phy: Document phydev::dev_flags bits allocation
Document the phydev::dev_flags bit allocation to allow bits 15:0 to define PHY driver specific behavior, bits 23:16 to be reserved for now, and bits 31:24 to hold generic PHY driver flags. Signed-off-by: Florian Fainelli <[email protected]> Reviewed-by: Russell King (Oracle) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent f5d2871 commit 62f3415

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/linux/phy.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,11 @@ struct macsec_ops;
496496
* @mac_managed_pm: Set true if MAC driver takes of suspending/resuming PHY
497497
* @state: State of the PHY for management purposes
498498
* @dev_flags: Device-specific flags used by the PHY driver.
499+
* Bits [15:0] are free to use by the PHY driver to communicate
500+
* driver specific behavior.
501+
* Bits [23:16] are currently reserved for future use.
502+
* Bits [31:24] are reserved for defining generic
503+
* PHY driver behavior.
499504
* @irq: IRQ number of the PHY's interrupt (-1 if none)
500505
* @phy_timer: The timer for handling the state machine
501506
* @phylink: Pointer to phylink instance for this PHY

0 commit comments

Comments
 (0)