* [PATCH] cdc-ether: Assume link is up initially
@ 2010-01-06 1:26 Ben Hutchings
2010-01-06 1:47 ` Ben Hutchings
0 siblings, 1 reply; 3+ messages in thread
From: Ben Hutchings @ 2010-01-06 1:26 UTC (permalink / raw)
To: speedyboyinovator-PkbjNfxxIARBDgjK7y7TUQ
Cc: David S. Miller, Rafael J. Wysocki, netdev, Kernel Testers List
The bug report <http://bugzilla.kernel.org/show_bug.cgi?id=14791>
implies that at least some devices will not send a Network Connection
notification if the link is initially up. Further, the CDC-ECM
specification states that '[n]etworking devices are typically "Always
Connected", spending all of their time with the "link up"'. So it
appears to be safer to assume the link is up and to rely on the device
to tell us otherwise.
This is a partial revert of:
commit 37e8273cd30592d3a82bcb70cbb1bdc4eaeb6b71
Author: Ben Hutchings <ben-/+tVBieCtBitmTQ+vhA3Yw@public.gmane.org>
Date: Wed Nov 4 15:29:52 2009 +0000
usbnet: Set link down initially for drivers that update link state
Signed-off-by: Ben Hutchings <ben-/+tVBieCtBitmTQ+vhA3Yw@public.gmane.org>
Cc: stable-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org
---
This should be tested by someone with one of these devices, preferably
you since you reported the bug.
Ben.
drivers/net/usb/cdc_ether.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/net/usb/cdc_ether.c b/drivers/net/usb/cdc_ether.c
index 21e183a..4f27f02 100644
--- a/drivers/net/usb/cdc_ether.c
+++ b/drivers/net/usb/cdc_ether.c
@@ -419,7 +419,7 @@ static int cdc_manage_power(struct usbnet *dev, int on)
static const struct driver_info cdc_info = {
.description = "CDC Ethernet Device",
- .flags = FLAG_ETHER | FLAG_LINK_INTR,
+ .flags = FLAG_ETHER,
// .check_connect = cdc_check_connect,
.bind = cdc_bind,
.unbind = usbnet_cdc_unbind,
--
1.6.5.7
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] cdc-ether: Assume link is up initially
2010-01-06 1:26 [PATCH] cdc-ether: Assume link is up initially Ben Hutchings
@ 2010-01-06 1:47 ` Ben Hutchings
2010-01-16 9:07 ` David Miller
0 siblings, 1 reply; 3+ messages in thread
From: Ben Hutchings @ 2010-01-06 1:47 UTC (permalink / raw)
To: David S. Miller; +Cc: Rafael J. Wysocki, netdev, Kernel Testers List
[-- Attachment #1: Type: text/plain, Size: 1242 bytes --]
On Wed, 2010-01-06 at 01:26 +0000, Ben Hutchings wrote:
> The bug report <http://bugzilla.kernel.org/show_bug.cgi?id=14791>
> implies that at least some devices will not send a Network Connection
> notification if the link is initially up. Further, the CDC-ECM
> specification states that '[n]etworking devices are typically "Always
> Connected", spending all of their time with the "link up"'. So it
> appears to be safer to assume the link is up and to rely on the device
> to tell us otherwise.
>
> This is a partial revert of:
>
> commit 37e8273cd30592d3a82bcb70cbb1bdc4eaeb6b71
> Author: Ben Hutchings <ben-/+tVBieCtBitmTQ+vhA3Yw@public.gmane.org>
> Date: Wed Nov 4 15:29:52 2009 +0000
>
> usbnet: Set link down initially for drivers that update link state
>
> Signed-off-by: Ben Hutchings <ben-/+tVBieCtBitmTQ+vhA3Yw@public.gmane.org>
> Cc: stable-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org
> ---
> This should be tested by someone with one of these devices, preferably
> you since you reported the bug.
Mail to reporter bounces, so someone else had better check this.
Ben.
--
Ben Hutchings
Horngren's Observation:
Among economists, the real world is often a special case.
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] cdc-ether: Assume link is up initially
2010-01-06 1:47 ` Ben Hutchings
@ 2010-01-16 9:07 ` David Miller
0 siblings, 0 replies; 3+ messages in thread
From: David Miller @ 2010-01-16 9:07 UTC (permalink / raw)
To: ben-/+tVBieCtBitmTQ+vhA3Yw
Cc: rjw-KKrjLPT3xs0, netdev-u79uwXL29TY76Z2rM5mHXA,
kernel-testers-u79uwXL29TY76Z2rM5mHXA
From: Ben Hutchings <ben-/+tVBieCtBitmTQ+vhA3Yw@public.gmane.org>
Date: Wed, 06 Jan 2010 01:47:15 +0000
> Mail to reporter bounces, so someone else had better check this.
I'm tossing this patch until someone can reproduce and test the
fix.
Otherwise we're just going to endlessly monkey around with this
link status issue.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-01-16 9:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-06 1:26 [PATCH] cdc-ether: Assume link is up initially Ben Hutchings
2010-01-06 1:47 ` Ben Hutchings
2010-01-16 9:07 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).