linux/drivers/usb/gadget
Jonathan McDowell 237e75bf1e usb gadget: fix ethernet link reports to ethtool
The g_ether USB gadget driver currently decides whether or not there's a
link to report back for eth_get_link based on if the USB link speed is
set. The USB gadget speed is however often set even before the device is
enumerated. It seems more sensible to only report a "link" if we're
actually connected to a host that wants to talk to us. The patch below
does this for me - tested with the PXA27x UDC driver.

Signed-off-by: Jonathan McDowell <noodles@earth.li>
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2009-04-17 10:50:23 -07:00
..
Kconfig trivial: fix typos/grammar errors in Kconfig texts 2009-03-30 15:22:01 +02:00
Makefile USB: add imx udc gadget driver 2009-01-07 10:00:11 -08:00
amd5536udc.c USB: replace uses of __constant_{endian} 2009-03-24 16:20:33 -07:00
amd5536udc.h
at91_udc.c
at91_udc.h
atmel_usba_udc.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6 into avr32-arch 2009-03-27 16:14:38 +01:00
atmel_usba_udc.h
cdc2.c USB: replace uses of __constant_{endian} 2009-03-24 16:20:33 -07:00
ci13xxx_udc.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 2009-03-26 11:17:39 -07:00
ci13xxx_udc.h USB: gadget: MIPS ci13xxx_udc 2009-01-07 09:59:58 -08:00
composite.c USB: gadget: composite device-level suspend/resume hooks 2009-03-24 16:20:45 -07:00
config.c
dummy_hcd.c USB: make transfer_buffer_lengths in struct urb field u32 2009-03-24 16:20:36 -07:00
epautoconf.c USB: replace uses of __constant_{endian} 2009-03-24 16:20:33 -07:00
ether.c USB: replace uses of __constant_{endian} 2009-03-24 16:20:33 -07:00
f_acm.c USB: replace uses of __constant_{endian} 2009-03-24 16:20:33 -07:00
f_ecm.c USB: replace uses of __constant_{endian} 2009-03-24 16:20:33 -07:00
f_loopback.c USB: gadget: gadget zero uses new suspend/resume hooks 2009-03-24 16:20:45 -07:00
f_obex.c USB: replace uses of __constant_{endian} 2009-03-24 16:20:33 -07:00
f_phonet.c USB: replace uses of __constant_{endian} 2009-03-24 16:20:33 -07:00
f_rndis.c USB: replace uses of __constant_{endian} 2009-03-24 16:20:33 -07:00
f_serial.c USB: replace uses of __constant_{endian} 2009-03-24 16:20:33 -07:00
f_sourcesink.c USB: gadget: gadget zero uses new suspend/resume hooks 2009-03-24 16:20:45 -07:00
f_subset.c USB: replace uses of __constant_{endian} 2009-03-24 16:20:33 -07:00
file_storage.c Merge branch 'bkl-removal' of git://git.lwn.net/linux-2.6 2009-03-26 16:14:02 -07:00
fsl_qe_udc.c USB: fsl_qe_udc: Fix stalled TX requests bug 2009-02-09 11:19:47 -08:00
fsl_qe_udc.h
fsl_usb2_udc.c USB: add missing KERN_* constants to printks 2009-03-24 16:20:30 -07:00
fsl_usb2_udc.h
g_zero.h USB: gadget: gadget zero uses new suspend/resume hooks 2009-03-24 16:20:45 -07:00
gadget_chips.h USB: add imx udc gadget driver 2009-01-07 10:00:11 -08:00
gmidi.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 2009-03-26 11:17:39 -07:00
goku_udc.c USB: replace uses of __constant_{endian} 2009-03-24 16:20:33 -07:00
goku_udc.h
imx_udc.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb-2.6 2009-03-26 11:17:39 -07:00
imx_udc.h USB: imx_udc: Fix IMX UDC gadget general irq handling 2009-03-24 16:20:29 -07:00
inode.c USB: replace uses of __constant_{endian} 2009-03-24 16:20:33 -07:00
lh7a40x_udc.c USB: add missing KERN_* constants to printks 2009-03-24 16:20:30 -07:00
lh7a40x_udc.h
m66592-udc.c
m66592-udc.h
ndis.h
net2280.c USB: replace uses of __constant_{endian} 2009-03-24 16:20:33 -07:00
net2280.h
omap_udc.c USB: otg: add otg_put_transceiver() 2009-01-07 10:00:02 -08:00
omap_udc.h
printer.c USB: replace uses of __constant_{endian} 2009-03-24 16:20:33 -07:00
pxa25x_udc.c [ARM] 5403/1: pxa25x_ep_fifo_flush() *ep->reg_udccs always set to 0 2009-02-19 11:04:46 +00:00
pxa25x_udc.h
pxa27x_udc.c USB: pxa27x_udc: typo fixes and code cleanups 2009-03-24 16:20:45 -07:00
pxa27x_udc.h USB: pxa27x_udc: add otg transceiver support 2009-03-24 16:20:27 -07:00
rndis.c usbnet: convert rndis driver to use dev_get_stats 2009-03-21 19:55:34 -07:00
rndis.h
s3c2410_udc.c USB: gadget: s3c2410_udc uses standard GPIO calls 2009-01-07 10:00:02 -08:00
s3c2410_udc.h
serial.c USB: replace uses of __constant_{endian} 2009-03-24 16:20:33 -07:00
u_ether.c usb gadget: fix ethernet link reports to ethtool 2009-04-17 10:50:23 -07:00
u_ether.h
u_phonet.h
u_serial.c USB: replace uses of __constant_{endian} 2009-03-24 16:20:33 -07:00
u_serial.h
usbstring.c
zero.c USB: gadget: gadget zero uses new suspend/resume hooks 2009-03-24 16:20:45 -07:00