[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20100216.160647.208330407.davem@davemloft.net>
Date: Tue, 16 Feb 2010 16:06:47 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: yegor_sub1@...ionsystems.de
Cc: linux-arm-kernel@...ts.infradead.org, avictor.za@...il.com,
netdev@...r.kernel.org
Subject: Re: [PATCH][KS8695] Mark network interface as running on ifconfig
up
From: Yegor Yefremov <yegor_sub1@...ionsystems.de>
Date: Thu, 11 Feb 2010 12:12:43 +0100
> [KS8695] Mark network interface as running on ifconfig up
>
> Without netif_carrier_on() network interface will not transmit any packets
> after ifconfig down and subsequent ifconfig up.
>
> Signed-off-by: Yegor Yefremov <yegorslists@...glemail.com>
>
> Index: linux-2.6.33-rc7/drivers/net/arm/ks8695net.c
> ===================================================================
> --- linux-2.6.33-rc7.orig/drivers/net/arm/ks8695net.c
> +++ linux-2.6.33-rc7/drivers/net/arm/ks8695net.c
> @@ -1371,6 +1371,7 @@ ks8695_open(struct net_device *ndev)
>
> napi_enable(&ksp->napi);
> netif_start_queue(ndev);
> + netif_carrier_on(ndev);
>
> return 0;
> }
>
Only ks8695_link_irq() should be setting the carrier state.
If necessary, reset the PHY on device open so that the link up
interrupt arrives and the code handling that event can set the carrier
status properly.
This is how every other driver handles this situation.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists