AnsweredAssumed Answered

bf606 usb can not work after disconnect device while working in host mode

Question asked by jiangfux on Jul 21, 2014
Latest reply on Aug 7, 2014 by jiangfux

Hi, ereryone.

 

I use bf606 + blackfin-buildroot-2014R1-RC1, after kernel bootup,

i connect a usb device(such as a mouse) to my board, it can detect, kernel print

usb 1-1: new low-speed USB device number 6 using musb-hdrc

input: USB Optical Mouse as /devices/platform/musb-blackfin.0/musb-hdrc.0.auto/usb1/1-1/1-1:1.0/input/input5

hid-generic 0003:1BCF:0007.0005: input: USB HID v1.10 Mouse [USB Optical Mouse] on usb-musb-hdrc.0.auto-1/input0

 

then i disconnect the device, kernel print

usb 1-1: USB disconnect, device number 6

 

but if i re-connect the device to my board, cpu can not detect my usb device any more.


I make some change to linux/linux-kernel/drivers/usb/musb/blackfin.c and it works fine.

Is it a bug or I have make some mistake?

 

attachment is my patch for blackfin.c

Attachments

Outcomes