usb gadget: cdc ethernet notification bugfix
authorDavid Brownell <dbrownell@users.sourceforge.net>
Fri, 17 Oct 2008 23:10:12 +0000 (23:10 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 22 Oct 2008 21:21:25 +0000 (14:21 -0700)
commit4e4ce5b5cb10b08eeafff642b286eb302d53f7eb
tree976031773f1507e760b6da061b07654800dfcdea
parentc78487b1d935d938014ddbec7b3d5816c1580fce
usb gadget: cdc ethernet notification bugfix

commit 29bac7b7661bbbdbbd32bc1e6cedca22f260da7f upstream

Bugfix for the new CDC Ethernet code:  as part of activating the
network interface's USB link, make sure its link management code
knows whether the interface is open or not.

Without this fix, the link won't work right when it's brought up
before the link is active ... because the initial notification it
sends will have the wrong link state (down, not up).  Makes it
hard to bridge these links (on the host side), among other things.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/u_ether.c