summaryrefslogtreecommitdiff
path: root/cleopatre/linux-2.6.25.10-spc300/drivers/net
diff options
context:
space:
mode:
authorYacine Belkadi2012-10-24 17:15:06 +0200
committerYacine Belkadi2012-11-06 09:49:31 +0100
commitb1ad2af5c83f5201566c05e7a626a5f9903be738 (patch)
treec53caeb3e9925168239cdad7c6f4b4384871cdc2 /cleopatre/linux-2.6.25.10-spc300/drivers/net
parentf0dc7f59b094d6fc795cd8d20a55987f2095c8e6 (diff)
cleo/linux/drv/eth: don't netif_wake_queue() on link up
In the Synop3504 Ethernet driver, there is no reason to wake the queue on link up, because it's already started on open() and it's not stopped on link down.
Diffstat (limited to 'cleopatre/linux-2.6.25.10-spc300/drivers/net')
-rw-r--r--cleopatre/linux-2.6.25.10-spc300/drivers/net/arm/synop3504.c17
1 files changed, 1 insertions, 16 deletions
diff --git a/cleopatre/linux-2.6.25.10-spc300/drivers/net/arm/synop3504.c b/cleopatre/linux-2.6.25.10-spc300/drivers/net/arm/synop3504.c
index 8359ac0122..3e3b0eefaf 100644
--- a/cleopatre/linux-2.6.25.10-spc300/drivers/net/arm/synop3504.c
+++ b/cleopatre/linux-2.6.25.10-spc300/drivers/net/arm/synop3504.c
@@ -1250,16 +1250,6 @@ static int synop3504_writeproc_mii(struct file *file, const char *buffer, unsign
}
/**
- * Link up config.
- * \param dev device structure.
- */
-static void synop3504_on_link_up(struct net_device *dev)
-{
- //restart transmit
- netif_wake_queue(dev);
-}// synop3504_on_link_up
-
-/**
* Link change callback.
* \param dev device structure.
*/
@@ -1299,12 +1289,7 @@ static void synop3504_handle_link_change(struct net_device *dev)
//link change
if (phydev->link != priv->link)
{
- if (phydev->link)
- {
- //link up
- synop3504_on_link_up(dev);
- }
- else
+ if (!phydev->link)
{
//Force PHY communication mode to GMII if allowed
SynopsysSetMiiClkCap(synop, 1000);