summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/cadence/macb.h
diff options
context:
space:
mode:
authorSoren Brinkmann <soren.brinkmann@xilinx.com>2013-12-11 01:07:23 +0100
committerDavid S. Miller <davem@davemloft.net>2013-12-11 04:56:23 +0100
commite1824dfe0d8e6bae55859eb016ce21b61d1b8c85 (patch)
tree68977e7fae1bdb561770f5ae0590951fda62e72c /drivers/net/ethernet/cadence/macb.h
parentnet: macb: Use devm_request_irq() (diff)
downloadlinux-e1824dfe0d8e6bae55859eb016ce21b61d1b8c85.tar.xz
linux-e1824dfe0d8e6bae55859eb016ce21b61d1b8c85.zip
net: macb: Adjust tx_clk when link speed changes
Adjust the ethernet clock according to the negotiated link speed. Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/cadence/macb.h')
-rw-r--r--drivers/net/ethernet/cadence/macb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/cadence/macb.h b/drivers/net/ethernet/cadence/macb.h
index f4076155bed7..51c02442160a 100644
--- a/drivers/net/ethernet/cadence/macb.h
+++ b/drivers/net/ethernet/cadence/macb.h
@@ -572,6 +572,7 @@ struct macb {
struct platform_device *pdev;
struct clk *pclk;
struct clk *hclk;
+ struct clk *tx_clk;
struct net_device *dev;
struct napi_struct napi;
struct work_struct tx_error_task;