Re: USB Ethernet gadget seems doesn't work with current mainline

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

2010/11/5 Ming Lei <tom.leiming@xxxxxxxxx>:
> 2010/11/5 Grazvydas Ignotas <notasas@xxxxxxxxx>:
>> hi,
>>
>> On Fri, Nov 5, 2010 at 10:39 AM, Enric Balletbà i Serra
>> <eballetbo@xxxxxxxxx> wrote:
>>> Hello all,
>>>
>>> With current mainline and stable 2.6.35.y branch I've some strange
>>> features with USB ethernet gadget ...
>>>
>>> Âroot@igep0020:~# uname -a
>>> ÂLinux igep0020 2.6.37-rc1+ #1 Fri Nov 5 09:22:53 CET 2010 armv7l
>>> unknown unknown GNU/Linux
>>>
>>> Âroot@igep0020:~# ifconfig
>>> Âusb0 Â Â ÂLink encap:Ethernet ÂHWaddr 5A:A9:54:25:4C:04
>>> Â Â Â Â Âinet addr:192.168.7.2 ÂBcast:192.168.7.255 ÂMask:255.255.255.0
>>> Â Â Â Â Âinet6 addr: fe80::58a9:54ff:fe25:4c04/64 Scope:Link
>>> Â Â Â Â ÂUP BROADCAST RUNNING MULTICAST ÂMTU:1500 ÂMetric:1
>>> Â Â Â Â ÂRX packets:0 errors:0 dropped:0 overruns:0 frame:0
>>> Â Â Â Â ÂTX packets:28 errors:0 dropped:0 overruns:0 carrier:0
>>> Â Â Â Â Âcollisions:0 txqueuelen:1000
>>> Â Â Â Â ÂRX bytes:0 (0.0 B) ÂTX bytes:4951 (4.8 KiB)
>>>
>>> Pinging seems not work
>>>
>>> Âroot@igep0020:~# ping -c5 192.168.7.1
>>> ÂPING 192.168.7.1 (192.168.7.1): 56 data bytes
>>> Â--- 192.168.7.1 ping statistics ---
>>> Â5 packets transmitted, 0 packets received, 100% packet loss
>>>
>>> Curiously if I unplug and plug the USB cable, and ping again ...
>>>
>>> Âroot@igep0020:~# ping -c5 192.168.7.1
>>> ÂPING 192.168.7.1 (192.168.7.1): 56 data bytes
>>> Â64 bytes from 192.168.7.1: seq=0 ttl=64 time=0.397 ms
>>> Â64 bytes from 192.168.7.1: seq=1 ttl=64 time=0.489 ms
>>> Â64 bytes from 192.168.7.1: seq=2 ttl=64 time=0.397 ms
>>> Â64 bytes from 192.168.7.1: seq=3 ttl=64 time=0.366 ms
>>> Â64 bytes from 192.168.7.1: seq=4 ttl=64 time=0.396 ms
>>>
>>> Â--- 192.168.7.1 ping statistics ---
>>> Â5 packets transmitted, 5 packets received, 0% packet loss
>>> Âround-trip min/avg/max = 0.366/0.409/0.489 ms
>>>
>>> Works, anyone knows if the ethernet gadget is broken in current
>>> mainline or have observed this feature ?
>>
>> Please try this patch:
>> http://marc.info/?l=linux-usb&m=128576496614332&w=2
>>
>> Report back if it works, maybe then that patch will finally get merged..
>>
>
> No, the patch is not merged to now.
>
> Felipe, Âseems it is time to send out this musb bugfix patches.

Thanks, the patch is working for me in mainline on my IGEP's board.

Also the issue is fixed on my linux-2.6.35.y branch applying the patch
and cherry-picking

f11d893de444965dfd3e55f726533ae1df5c6471 usb: musb: support ISO high
bandwidth for gadget mode
b0fca50f5a94a268ed02cfddf44448051ed9343f usb gadget: don't save bind
callback in struct usb_gadget_driver

Cheers,
   Enric
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux