aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2014-02-17 16:34:04 -0500
committerDavid S. Miller <davem@davemloft.net>2014-02-17 16:40:09 -0500
commit7f6224b7c73b6ce66b6a07e4a0c3b826540b13bb (patch)
tree3d28d96b16090e2ac42bc51b75cf763becc0335a /Documentation
parent9df81dd7583d14862d0cfb673a941b261f3b2112 (diff)
Documentation: networking: update phy.txt with recent changes
The PHY library was missing a bunch of newly added PHY driver callbacks along with a smallish description of what they do, fix that. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/networking/phy.txt9
1 files changed, 9 insertions, 0 deletions
diff --git a/Documentation/networking/phy.txt b/Documentation/networking/phy.txt
index ebf270719402..e602c6f347df 100644
--- a/Documentation/networking/phy.txt
+++ b/Documentation/networking/phy.txt
@@ -253,16 +253,25 @@ Writing a PHY driver
253 253
254 Each driver consists of a number of function pointers: 254 Each driver consists of a number of function pointers:
255 255
256 soft_reset: perform a PHY software reset
256 config_init: configures PHY into a sane state after a reset. 257 config_init: configures PHY into a sane state after a reset.
257 For instance, a Davicom PHY requires descrambling disabled. 258 For instance, a Davicom PHY requires descrambling disabled.
258 probe: Allocate phy->priv, optionally refuse to bind. 259 probe: Allocate phy->priv, optionally refuse to bind.
259 PHY may not have been reset or had fixups run yet. 260 PHY may not have been reset or had fixups run yet.
260 suspend/resume: power management 261 suspend/resume: power management
261 config_aneg: Changes the speed/duplex/negotiation settings 262 config_aneg: Changes the speed/duplex/negotiation settings
263 aneg_done: Determines the auto-negotiation result
262 read_status: Reads the current speed/duplex/negotiation settings 264 read_status: Reads the current speed/duplex/negotiation settings
263 ack_interrupt: Clear a pending interrupt 265 ack_interrupt: Clear a pending interrupt
266 did_interrupt: Checks if the PHY generated an interrupt
264 config_intr: Enable or disable interrupts 267 config_intr: Enable or disable interrupts
265 remove: Does any driver take-down 268 remove: Does any driver take-down
269 ts_info: Queries about the HW timestamping status
270 hwtstamp: Set the PHY HW timestamping configuration
271 rxtstamp: Requests a receive timestamp at the PHY level for a 'skb'
272 txtsamp: Requests a transmit timestamp at the PHY level for a 'skb'
273 set_wol: Enable Wake-on-LAN at the PHY level
274 get_wol: Get the Wake-on-LAN status at the PHY level
266 275
267 Of these, only config_aneg and read_status are required to be 276 Of these, only config_aneg and read_status are required to be
268 assigned by the driver code. The rest are optional. Also, it is 277 assigned by the driver code. The rest are optional. Also, it is