Ethernet RNDIS USB Gadget issue

This forum is for users of Atmel's SAM Series and who are interested in using Linux OS.

Moderator: nferre

sfd
Posts: 2
Joined: Mon Dec 12, 2016 10:00 am

Ethernet RNDIS USB Gadget issue

Mon Dec 12, 2016 11:51 am

I am using the RNDIS Ethernet gadget in order to connect my custom board to a Windows machine.

It was working fine with kernel 4.1.X but since I switched to kernel 4.4.36 I have the following issue:

Booting with the USB cable connected or connecting the cable while the board is running works. But when I disconnect then reconnect the USB cable, the USB peripheral (as seen from Windows) fails to initialize. At this point the only way is to reboot the board.
sfd
Posts: 2
Joined: Mon Dec 12, 2016 10:00 am

Re: Ethernet RNDIS USB Gadget issue

Wed Jan 18, 2017 10:02 am

Apparently the problem can be solved by replacing "return -EINVAL" by "return 0" in drivers/usb/gadget/udc/atmel_usba_udc.c, function usba_ep_disable().

Return to “Linux”

Who is online

Users browsing this forum: No registered users and 2 guests