23 Mar, 2006

1 commit

  • * git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial:
    fixed path to moved file in include/linux/device.h
    Fix spelling in E1000_DISABLE_PACKET_SPLIT Kconfig description
    Documentation/dvb/get_dvb_firmware: fix firmware URL
    Documentation: Update to BUG-HUNTING
    Remove superfluous NOTIFY_COOKIE_LEN define
    add "tags" to .gitignore
    Fix "frist", "fisrt", typos
    fix rwlock usage example
    It's UTF-8

    Linus Torvalds
     

22 Mar, 2006

2 commits


21 Mar, 2006

4 commits

  • Matt mentioned that a very old ZIP-100 actually does need this, but I am
    yet to see anyone who actually has one still working and uses ub with it.
    He/she must be a retrocomputing geek, who can easily bias it to usb-storage
    with libusual, if needed. Meanwhile, common folks have trouble with poorly
    designed USB keys and some el-cheapo European music players. I think we
    better drop this for now.

    Signed-off-by: Pete Zaitcev
    Signed-off-by: Greg Kroah-Hartman

    Pete Zaitcev
     
  • Remove the "diag" file from the sysfs. The usbmon is good enough these days
    so I do not need this feature anymore. Also, sysfs is a pain. Al Viro caught
    a race in this, which I thought too bothersome to fix.

    Signed-off-by: Pete Zaitcev
    Signed-off-by: Greg Kroah-Hartman

    Pete Zaitcev
     
  • The first_open was long overdue for removal, but I wanted to keep this
    separate for other changes in case of regressions.

    Signed-off-by: Pete Zaitcev
    Signed-off-by: Greg Kroah-Hartman

    Pete Zaitcev
     
  • Switch from kmalloc+memset to kzalloc.

    Signed-off-by: Pete Zaitcev
    Signed-off-by: Greg Kroah-Hartman

    Pete Zaitcev
     

19 Mar, 2006

1 commit


15 Mar, 2006

1 commit


09 Mar, 2006

1 commit


28 Feb, 2006

1 commit


21 Feb, 2006

5 commits


15 Feb, 2006

4 commits


08 Feb, 2006

1 commit


06 Feb, 2006

4 commits

  • Allocate memory for read-gathering at open time, when it is known just how
    much memory is needed. This avoids wasting kernel memory when the real packet
    size is smaller than the maximum packet size supported by the driver. This is
    always the case when using DVD discs.

    Signed-off-by: Peter Osterlund
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Osterlund
     
  • Unless the help text is outdated, this seems to be logical.

    Signed-off-by: Adrian Bunk
    Signed-off-by: Peter Osterlund
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Adrian Bunk
     
  • The version information is not useful for a driver that is maintained in
    Linus' kernel tree.

    Signed-off-by: Peter Osterlund
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Peter Osterlund
     
  • The pktcdvd driver was using an 8 bit field to store the packet length
    obtained from the disc track info. This causes it to overflow packet length
    values of 128KB or more. I changed the field to 32 bits to fix this.

    The pktcdvd driver defaulted to its maximum allowed packet length when it
    detected a 0 in the track info field. I changed this to fail the operation
    and refuse to access the media. This seems more sane than attempting to
    access it with a value that almost certainly will not work.

    Signed-off-by: Peter Osterlund
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Phillip Susi
     

04 Feb, 2006

1 commit


01 Feb, 2006

3 commits

  • For crying out loud, they have devices which do not like port resets.
    So, do what usb-storage does and try both bulk and port resets.
    We start with a port reset (which usb-storage does at the end of transport),
    then do a Bulk reset, then a port reset again. This seems to work for me.

    The code is getting dirtier and dirtier here, but I swear that I'll
    do something about it (see those two new XXX). Honest.

    Signed-off-by: Pete Zaitcev
    Signed-off-by: Greg Kroah-Hartman

    Pete Zaitcev
     
  • If SCSI commands are submitted while other commands are still processed,
    the dispatch loop turns, and we stop the work_timer. Then, if URB fails
    to complete, ub hangs until the device is unplugged.

    This does not happen often, becase we only allow one SCSI command per
    block device, but does happen (on multi-LUN devices, for example).

    The fix is to stop timer only when we actually going to change the state.

    The nicest code would be to have the timer stopped in URB callback, but
    this is impossible, because it can be called from inside a timer, through
    the urb_unlink. Then we get BUG in timer.c:cascade(). So, we do it a
    little dirtier.

    Signed-off-by: Pete Zaitcev
    Signed-off-by: Greg Kroah-Hartman

    Pete Zaitcev
     
  • The blk_cleanup_queue does not necesserily destroy the queue. When we
    destroy the corresponding ub_dev, it may leave the queue spinlock pointer
    dangling.

    This patch moves spinlocks from ub_dev to static memory. The locking
    scheme is not changed. These spinlocks are still separate from the ub_lock.

    Signed-off-by: Pete Zaitcev
    Signed-off-by: Greg Kroah-Hartman

    Pete Zaitcev
     

17 Jan, 2006

1 commit


16 Jan, 2006

1 commit


15 Jan, 2006

3 commits


13 Jan, 2006

5 commits


12 Jan, 2006

1 commit