01 Nov, 2005

1 commit


31 Oct, 2005

3 commits

  • Manual #include fixups for clashes - there may be some unnecessary

    Linus Torvalds
     
  • I recently picked up my older work to remove unnecessary #includes of
    sched.h, starting from a patch by Dave Jones to not include sched.h
    from module.h. This reduces the number of indirect includes of sched.h
    by ~300. Another ~400 pointless direct includes can be removed after
    this disentangling (patch to follow later).
    However, quite a few indirect includes need to be fixed up for this.

    In order to feed the patches through -mm with as little disturbance as
    possible, I've split out the fixes I accumulated up to now (complete for
    i386 and x86_64, more archs to follow later) and post them before the real
    patch. This way this large part of the patch is kept simple with only
    adding #includes, and all hunks are independent of each other. So if any
    hunk rejects or gets in the way of other patches, just drop it. My scripts
    will pick it up again in the next round.

    Signed-off-by: Tim Schmielau
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Tim Schmielau
     
  • Typo fix: dots appearing after a newline in printk strings.

    Signed-off-by: Jean Delvare
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Jean Delvare
     

30 Oct, 2005

3 commits


29 Oct, 2005

33 commits

  • Thanks to Andrew for doing the hard work on this.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This driver comes from the gnokii project.
    Was further cleaned up by me to match recent usb-serial core changes.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This is a patch to get the ELV FHZ1000 Home Automation control device to
    work with Linux. The patch adds a new device ID to the ftdi_sio driver.
    It is for kernel version 2.6.13.4.

    Signed-off-by: Martin Hagelin
    Signed-off-by: Greg Kroah-Hartman

    Martin Hagelin
     
  • Signed-off-by: Koen Kooi

    Koen Kooi
     
  • With CONFIG_PM=n:

    drivers/built-in.o(.text+0x1098c): In function `hub_thread':
    drivers/usb/core/hub.c:2673: undefined reference to `.dpm_runtime_resume'
    drivers/built-in.o(.text+0x10998):drivers/usb/core/hub.c:2674: undefined reference to `.dpm_runtime_resume'

    Please, never ever ever put extern decls into .c files. Use the darn header
    files :(

    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Andrew Morton
     
  • With CONFIG_PM=n:

    drivers/built-in.o(.text+0x2a69c): In function `ohci_hub_control':
    drivers/usb/host/ohci-hub.c:539: undefined reference to `.usb_hcd_resume_root_hub'
    drivers/built-in.o(.text+0x2b920): In function `ohci_irq':
    drivers/usb/host/ohci-hcd.c:726: undefined reference to `.usb_hcd_resume_root_hub'

    Cc: David Brownell
    Signed-off-by: Andrew Morton
    Signed-off-by: Greg Kroah-Hartman

    Andrew Morton
     
  • This patch (as592) makes a few small improvements to the way device
    strings are handled, and it fixes some bugs in a couple of other sysfs
    attribute routines. (Look at show_configuration_string() to see what I
    mean.)

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This patch (as591) fixes a rather innocuous bug that has been around for
    quite a long time: Virtual root hubs should have a maxpacket length of
    64 for endpoint 0. I didn't realize it was wrong until I started
    looking through the endpoint attribute files.

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This patch (as590) fixes up all the remaining places where usbcore can
    use kzalloc rather than kmalloc/memset.

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • I can't stand text lines that wrap-around in my 80-column windows. This
    patch (as589) makes cosmetic changes to a couple of source files.

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This patch (as588) fixes the way endpoint attribute files are registered
    and unregistered. Now they will correctly track along with altsetting
    changes. This fixes bugzilla entry #5467.

    In a separate but related change, when a usb_reset_configuration call
    fails, the device state is not changed to USB_STATE_ADDRESS. In the
    first place, failure means that we don't know what the state is, not
    that we know the device is unconfigured. In the second place, doing
    this can potentially lead to a memory leak, since usbcore might not
    realize there still is a current configuration that needs to be
    destroyed.

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This revised patch (as587b) improves the implementation of USB endpoint
    sysfs files. Instead of storing a whole bunch of attributes for every
    single endpoint, each endpoint now gets its own kobject and they can
    share a static list of attributes. The number of extra fields added to
    struct usb_host_endpoint has been reduced from 4 to 1.

    The bEndpointAddress field is retained even though it is redundant (it
    repeats the same information as the attributes' directory name). The
    code avoids calling kobject_register, to prevent generating unwanted
    hotplug events.

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • Freecom seems to be one of those vendors that can't get the GET CAPACITY
    thing right. This expands the US_FL_FIX_CAPACITY flag for the entire
    range of their fccd product line.

    This is based on a patch sent by Stuart Black
    .

    Signed-off-by: Phil Dibowitz
    Signed-off-by: Greg Kroah-Hartman

    Phil Dibowitz
     
  • Signed-off-by: Alexey Dobriyan
    Signed-off-by: Greg Kroah-Hartman

    Alexey Dobriyan
     
  • This patch is originally from Alan Stern (as569). It has been rediffed
    against a current tree.

    This patch converts usb-storage to use the kthread API for creating its
    control and scanning threads. The new code doesn't use kthread_stop
    because the threads need (or will need in the future) to exit
    asynchronously.

    Signed-off-by: Alan Stern
    Signed-off-by: Matthew Dharm
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This patch from Alan Stern started as as568. It has been rediffed against
    a current tree.

    This patch adds minimal suspend/resume support to usb-storage. Just enough
    for it to qualify as PM-aware.

    Signed-off-by: Alan Stern
    Signed-off-by: Matthew Dharm
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This patch is from Alan Stern (as560). It has been rediffed against a
    current tree.

    This patch allocates a separate buffer for usb-storage to use when
    auto-sensing. Up to now we have been using the sense buffer embedded in a
    scsi_cmnd struct, which is dangerous on hosts that (a) don't do
    cache-coherent DMA or (b) have DMA alignment restrictions.

    Signed-off-by: Alan Stern
    Signed-off-by: Matthew Dharm
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This patch is originally from Alan Stern (as557). It has been re-diffed
    against a current tree, and I also corrected a minor merging error.

    Some time ago we introduced a delay before device scanning, because many
    devices do not like to receive SCSI commands right after enumeration.
    Now it turns out there's a device that doesn't like to receive
    Get-Max-LUN right after enumeration either. Accordingly this patch
    delays the Get-Max-LUN request until the beginning of the scanning
    procedure. This fixes Bugzilla entry #5010.

    Three things are worth noting. First, I removed the locking code from
    usb_stor_acquire_resources. It's not needed, because the locking is to
    protect against disconnect events and acquire_resources is only called
    during probe (so the disconnect routine can't be called). Second, I
    initialized to 0 the buffer used for the Get-Max-LUN response. It's not
    really necessary, but it will prevent random values from showing up in
    the debugging log when the request fails. Third, I added a test against
    the SINGLE_LUN flag. This will allow us to use the flag to indicate
    Bulk-only devices that can't handle Get-Max-LUN.

    Signed-off-by: Alan Stern
    Signed-off-by: Matthew Dharm
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This patch (as577) adds a Clear-Halt call on the Interrupt-in endpoint
    during input device configuration. Without it my HP USB keyboard doesn't
    work.

    Vojtech says it's worth trying, since it might help with some recalcitrant
    devices. On the other hand, it might interfere with others. I'm
    submitting it so that it can get tested by a range of users.

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • This revised patch (as586b) makes usb-handoff permanently true and no
    longer a kernel boot parameter. It also removes the piix3_usb quirk code;
    that was nothing more than an early version of the USB handoff code
    (written at a time when Intel's PIIX3 was about the only motherboard with
    USB support). And it adds identifiers for the three PCI USB controller
    classes to pci_ids.h.

    Signed-off-by: Alan Stern
    Signed-off-by: Greg Kroah-Hartman

    Alan Stern
     
  • another one to use kzalloc. Please apply.

    Signed-off-by: Oliver Neukum
    Signed-off-by: Greg Kroah-Hartman

    Oliver Neukum
     
  • This is a patch improving the set of vendor/product IDs used in the
    "ipaq" USB serial device driver. The patch size is because I sorted the
    ids this time, forgot about that last time.

    Changes:

    - Added vendor/product identifiers for Psion Teklogix devices
    - Restored Microsoft's identifier pair 045e/00ce
    - Sorted list of vendor/product identifiers

    Signed-off-by: David Eriksson
    Signed-off-by: Ganesh Varadarajan
    Signed-off-by: Greg Kroah-Hartman

    David Eriksson
     
  • On some arch (like arm) udelay cannot be called with value greater that
    2000.

    Signed-off-by: Guillaume GOURAT / guillaume.gourat@nexvision.fr
    Signed-off-by: Oliver Neukum

    Guillaume GOURAT /
     
  • here is another one to use kzalloc. Please apply.

    Signed-off-by: Oliver Neukum
    Signed-off-by: Greg Kroah-Hartman

    Oliver Neukum
     
  • On Tue, 18 Oct 2005, Simeon Simeonov wrote:
    > Attached is a patch that solves mounting problems for
    > LEICA D-LUX camera with FC4 2.6.13 kernel.
    >
    > Let me know if you have some questions.

    Looks okay to me. Given that the previous entry uses the full 0000 -
    9999 range, I guess this one can also. The vendor name is a little odd
    (it will give us three different vendor names all in entries with the
    same vendor ID) but that doesn't really matter either.

    Signed-off-by: Alan Stern
    Signed-off-by: Phil Dibowitz
    Signed-off-by: Greg Kroah-Hartman

    Simeon Simeonov
     
  • This fixes a problem with some cdc acm devices that were not getting
    automatically loaded as the module alias was not being reported
    properly.

    This check was for back in the days when we only reported hotplug events
    for the main usb device, not the interfaces. We should always give the
    interface information for MODALIAS/modalias as it can be needed.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • These numbers are pointless, as they have not been changed in _years_,
    so we should just remove them to stop pretending there is an actual
    "version number" for these drivers.

    This should also help reduce confusion when people try to ask for
    support of a specific driver version, as there has been no way to tell
    what they are talking about.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • This fixes up a lot of problems in sysfs with some of the usb serial
    drivers, they had incorrect driver names. Also saves a tiny ammount
    of memory.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • Create a new file just for these things, as they just get in the
    way in the source files.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • Don't duplicate something that's already in struct driver.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • I'm tired of trying to explain why a "device_type" is really a driver.
    This better describes exactly what this structure is.

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • We have a real Bluetooth system in Linux, lets finally delete this driver as no
    one is using it (and if they are, they are using a closed source bluetooth
    stack, which I can't support anyway.)

    Marcel, you owe me a beer :)

    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     
  • Dell supplied me with the following test:

    #include
    #include
    #include
    #include
    #include

    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//\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
    Signed-off-by: Greg Kroah-Hartman

    Pete Zaitcev