On Wed, 26 Nov 2014, tianjulin wrote: > Hi Stern, > > Many Thanks!!! You're welcome. > I use command as follows,the usb bus can enter runtime suspend when I > connect usb storage,and if have operate on usb storage,the usb bus can > be resume,if have not any operate on usb storage,the usb bus can enter > runtime suspend. > > echo auto > /sys/bus/usb/devices/1-1/power/control auto > echo auto > > /sys/bus/usb/devices/1-1:1.0/host0/target0:0:0/0:0:0:0/power/control auto > echo 1000 > > /sys/bus/usb/devices/1-1:1.0/host0/target0:0:0/0:0:0:0/power/autosuspend_delay_ms > 100 > > But how to modify source code to implement this feature?can you provide > some help? If you want to enable runtime suspend automatically, you can write a udev script to do it (assuming your platform uses udev). Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html