Hi, All,
Does anyone know how to reset the USB subsystem in DM8148 platform, usb1 or usb2?
By following the ways provided in the link below, I can successfully reset any of USB host controllers in my Ubuntu PC system.
However, when I do it in DM8148 platform for both usb1 and usb2 using following two commands, the error messages "usb 2-1: device descriptor read/64, error -19" always occurred after "bind" command.
Here are commands:
echo -n "usb2" | tee /sys/bus/usb/drivers/usb/unbind
echo -n "usb2" | tee /sys/bus/usb/drivers/usb/bind
Followed are the dmesg message after each command:
echo -n "usb2" | tee /sys/bus/usb/drivers/usb/unbind
----------------------------------------------------------------------------
PM: Removing info for No Bus:usbdev2.1
PM: Removing info for No Bus:ep_81
PM: Removing info for usb:2-0:1.0
usb 2-1: USB disconnect, address 2
PM: Removing info for No Bus:ep_81
PM: Removing info for usb:2-1:1.0
musb-hdrc musb-hdrc.1: Data toggle same as previous (=1) on ep10
PM: Removing info for No Bus:ep_00
PM: Removing info for usb:2-1
PM: Removing info for No Bus:usbdev2.2
echo -n "usb2" | tee /sys/bus/usb/drivers/usb/bind
--------------------------------------------------------------------------
PM: Adding info for usb:2-0:1.0
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
PM: Adding info for No Bus:ep_81
PM: Adding info for No Bus:usbdev2.1
usb 2-1: new high speed USB device using musb-hdrc and address 4
usb 2-1: device descriptor read/64, error -19
usb 2-1: device descriptor read/64, error -19
usb 2-1: new high speed USB device using musb-hdrc and address 5
usb 2-1: device descriptor read/64, error -19
usb 2-1: device descriptor read/64, error -19
usb 2-1: new high speed USB device using musb-hdrc and address 6
usb 2-1: device not accepting address 6, error -19
usb 2-1: new high speed USB device using musb-hdrc and address 7
usb 2-1: device not accepting address 7, error -19
hub 2-0:1.0: unable to enumerate USB device on port 1
BTW, we have one camera connected to usb1 and one 2-port hub to usb2. After power-up, all these devices work fine.
Any idea what is wrong? Also, advise on how to reset USB controller usb0 or usb1 in DM8148.
Thanks,
Shunnian