linux - How to logically disconnect and reconnect a USB modem without unplugging it physically -
i want restart usb modem power on restart without rebooting , unplugging physically in linux machine. have tried doing procedure :
- echo -n 0 > /sys/devices/platform/omap/ti81xx-usbss/musb-hdrc.0/usb1/bconfigurationvalue
- echo -n 1 > /sys/devices/platform/omap/ti81xx-usbss/musb-hdrc.0/usb1/bconfigurationvalue
but able disconnect 2nd command failed. giving following prints :
hub 1-0:1.0: usb hub found hub 1-0:1.0: 1 port detected usb 1-1: new full speed usb device using musb-hdrc , address 4 usb 1-1: device descriptor read/64, error -19 usb 1-1: device descriptor read/64, error -19 usb 1-1: new full speed usb device using musb-hdrc , address 5 usb 1-1: device descriptor read/64, error -19 usb 1-1: device descriptor read/64, error -19 usb 1-1: new full speed usb device using musb-hdrc , address 6 usb 1-1: device not accepting address 6, error -19 usb 1-1: new full speed usb device using musb-hdrc , address 7 usb 1-1: device not accepting address 7, error -19 hub 1-0:1.0: unable enumerate usb device on port 1
is there way in can automate resetting procedure. such if insmod module, should register usb device , when rmmod module shall disconnect usb device.
is there such module ?
Comments
Post a Comment