diff options
| author | Jaeden Amero <[email protected]> | 2015-03-12 23:07:54 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2015-03-13 03:04:32 +0000 |
| commit | 2c29b2354a06f42493ddd2a5eb65962981e666ed (patch) | |
| tree | c47c4f3b39496f10679fda3d8be3dfe069b544e9 /net/switchdev/switchdev.c | |
| parent | rhashtable: Fix read-side crash during rehash (diff) | |
| download | kernel-2c29b2354a06f42493ddd2a5eb65962981e666ed.tar.gz kernel-2c29b2354a06f42493ddd2a5eb65962981e666ed.zip | |
net/macb: Only adjust tx_clk on link change
The PHY state machine (in drivers/net/phy/phy.c) will unconditionally
call phydev->adjust_link (macb_handle_link_change) when polling in the
PHY_CHANGELINK state. As currently written, macb always ends up
requesting a new tx_clk frequency in macb_handle_link_change. It is a
waste of time to request a new tx_clk frequency if the link state hasn't
changed, as the tx_clk will already be configured properly.
Let's only request a new tx_clk clock frequency when necessary.
Signed-off-by: Jaeden Amero <[email protected]>
Cc: Josh Cartwright <[email protected]>
Cc: Soren Brinkmann <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
