lkml.org 
[lkml]   [2015]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] net/macb: Only adjust tx_clk on link change
From
From: Jaeden Amero <jaeden.amero@ni.com>
Date: Thu, 12 Mar 2015 18:07:54 -0500

> 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 <jaeden.amero@ni.com>

Applied to net-next, thanks.


\
 
 \ /
  Last update: 2015-03-13 04:21    [W:0.212 / U:0.320 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site