On Wed, 27 Mar 2013, Lan, Tianyu wrote: > A small tool to test this patch. > > #include <stdio.h> > #include <unistd.h> > #include <fcntl.h> > #include <errno.h> > #include <sys/ioctl.h> > #include <linux/usbdevice_fs.h> > > #define USBDEVFS_POWER_RESET _IO('U', 28) > > int main(int argc, char **argv) > { > const char *filename; > int fd; > int rc; > > if (argc != 2) { > fprintf(stderr, "Usage: usbreset device-filename\n"); The name should be usbrepower (or usb-repower, which is more readable). Not usbreset -- there's already a different program using that name. 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