0
Ravaz

USB device hibernates can't be exit (g_ether)

Recommended Posts

Hello,

 

I'm enabling g_ether driver on tinker board. The driver works and I'm able to emulate an Ethernet adapter on my PC when I connect it to the tinker micro USB port.  This only works if the micro USB connection exists before powering ON the board. If I connect it while the device is already running nothing happens. This behavior may be related to the following kernel path:

https://patchwork.kernel.org/patch/10535905/

 

Is there any parameter I can add to avoid the USB from going to hibernate state? Or would it be possible to add the mentioned patch to armbian build tool?

 

Thanks!

 

 

Share this post


Link to post
Share on other sites

When I stat the board without the USB cable connected I get this error on dmesg (running on kernel 4.4.161-rockchip):

[    1.016700] dwc2 ff580000.usb: dwc2_core_reset() HANG! Soft Reset GRSTCTL=80000001
[    1.127654] dwc2 ff580000.usb: dwc2_wait_for_mode: Couldn't set device mode

Googling this message brought me to those bugs:

 

https://www.spinics.net/lists/arm-kernel/msg564614.html

 

Any patch to solve this issue?

 

 

Share this post


Link to post
Share on other sites

Hello, 

 

   I have been re configuring my build environment and trying to fix some bugs, I should be able to begin messing with this.  Do you have the ability to build a kernel yourself?  Check out docs.armbian.com for details.

Share this post


Link to post
Share on other sites

Yes I'm able to compile it myself, I already did it to add few drivers (g_ether and RTC PCF2127) and to create an image using btrfs file system. 

 

Thanks a lot.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
0