1. 21 Jul, 2008 1 commit
  2. 24 Apr, 2008 1 commit
    • Alan Stern's avatar
      USB: usbfs: export the URB_NO_INTERRUPT flag to userspace · 14722ef4
      Alan Stern authored
      This patch (as1079) cleans up the way URB_* flags are exported in
      usbfs.
      
      	The URB_NO_INTERRUPT flag is now exported (this is the
      	only behavioral change).
      
      	USBDEVFS_URB_* macros are added for URB_NO_FSBR,
      	URB_ZERO_PACKET, and URB_NO_INTERRUPT, making explicit the
      	fact that the kernel accepts them.
      
      	The flag matching takes into account that the URB_* values
      	may change as the kernel evolves, whereas the USBDEVFS_URB_*
      	values must remain fixed since they are a user API.
      Signed-off-by: default avatarAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      14722ef4
  3. 01 Feb, 2008 1 commit
  4. 28 Nov, 2007 1 commit
  5. 16 Feb, 2007 1 commit
  6. 24 Sep, 2006 1 commit
  7. 25 Apr, 2006 1 commit
  8. 28 Oct, 2005 1 commit
    • Pete Zaitcev's avatar
      [PATCH] usb: Patch for USBDEVFS_IOCTL from 32-bit programs · c36fc889
      Pete Zaitcev authored
      Dell supplied me with the following test:
      
      #include<stdio.h>
      #include<errno.h>
      #include<sys/ioctl.h>
      #include<fcntl.h>
      #include<linux/usbdevice_fs.h>
      
      main(int argc,char*argv[])
      {
         struct usbdevfs_hub_portinfo hubPortInfo = {0};
         struct usbdevfs_ioctl command = {0};
         command.ifno = 0;
         command.ioctl_code = USBDEVFS_HUB_PORTINFO;
         command.data = (void*)&hubPortInfo;
         int fd, ret;
         if(argc != 2) {
           fprintf(stderr,"Usage: %s /proc/bus/usb/<BusNo>/<HubID>\n",argv[0]);
           fprintf(stderr,"Example: %s /proc/bus/usb/001/001\n",argv[0]);
           exit(1);
         }
         errno = 0;
         fd = open(argv[1],O_RDWR);
         if(fd < 0) {
           perror("open failed:");
           exit(errno);
         }
         errno = 0;
         ret = ioctl(fd,USBDEVFS_IOCTL,&command);
         printf("IOCTL return status:%d\n",ret);
         if(ret<0) {
           perror("IOCTL failed:");
           close(fd);
           exit(3);
         } else {
             printf("IOCTL passed:Num of ports %d\n",hubPortInfo.nports);
             close(fd);
             exit(0);
         }
         return 0;
      }
      
      I have verified that it breaks if built in 32 bit mode on x86_64 and that
      the patch below fixes it.
      Signed-off-by: default avatarPete Zaitcev <zaitcev@redhat.com>
      Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
      c36fc889
  9. 12 Sep, 2005 1 commit
  10. 16 Apr, 2005 1 commit
    • Linus Torvalds's avatar
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds authored
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4