1. 09 Mar, 2004 7 commits
    • David Brownell's avatar
      [PATCH] USB: clarify CONFIG_USB_GADGET · ba6f837d
      David Brownell authored
      Marc-Christian Petersen wrote:
      >
      > I think the attached patch is needed to stop showing us USB Gadget support if
      > Support for USB is disabled.
      
      No it isn't.  But maybe the attached patch would clarify what's
      really going on:  CONFIG_USB is the host side, and CONFIG_USB_GADGET
      is the peripheral side.
      ba6f837d
    • David Brownell's avatar
      [PATCH] USB: gadget config buf utilities · 1a89696e
      David Brownell authored
      Somehow I sent you a version of this code with a misplaced
      semicolon ... it makes for awkward failures!
      
      Please merge.  Bad semicolon!
      1a89696e
    • David Brownell's avatar
      [PATCH] USB: usbnet and ALI M5632 · 10443b9f
      David Brownell authored
      Some of the 480 Mbit/sec USB host-to-host links have ALI
      chips in them.  They seem to work with no problem, given
      this patch, even when the ends talk different speed.
      10443b9f
    • Petko Manolov's avatar
      [PATCH] USB: 2.6 pegasus.h updates · d4bf9393
      Petko Manolov authored
      a few more IDs added, could you please apply it?
      d4bf9393
    • Stéphane Doyon's avatar
      [PATCH] USB brlvger: Driver obsoleted by rewrite using usbfs · 25a1f19a
      Stéphane Doyon authored
      We have rewritten the brlvger (Tieman Voyager USB Braille display) driver
      so that it works from user-space through usbfs. It appears to work just as
      well as the in-kernel driver.
      
      The brlvger driver in the 2.6.x kernel is now obsolete and should be
      removed. The attached patch against 2.6.3 does this. Please apply.
      NB: The following files are completely deleted:
          Documentation/usb/brlvger.txt
          drivers/usb/misc/brlvger.c
          include/linux/brlvger.h
      
      The new Voyager driver is available (stil under GPL) as part of BRLTTY,
      starting with version 3.5pre1 (http://mielke.cc/brltty).
      Thanks to Dave Mielke who implemented BRLTTY's usbfs functionality, among
      lots of other stuff.
      25a1f19a
    • Greg Kroah-Hartman's avatar
    • Alan Stern's avatar
      [PATCH] USB: Interface/altsetting update for ISDN hisax driver · 26375db9
      Alan Stern authored
      On Mon, 8 Mar 2004, Greg KH wrote:
      
      > Oh, could you look at drivers/isdn/hisax/hfc_usb.c if you get a chance?
      > I tried to figure out the mess there with regards to act_altsetting, but
      > gave up :(
      
      You're right, it is a mess.  Beats me why they didn't use a plain old
      "for" statement to do that altsetting loop.  Probably the most confusing
      part is where the code needlessly resets intf->act_altsetting.
      
      Anyway, this patch sets things right.  I haven't tried to compile it, but
      any errors ought to be pretty small, obvious, and easy to fix.
      
      My intention was to go through the files under driver/usb (in alphabetical
      order!) and then do the ones outside that subtree -- I've got a little
      list.  But it's no problem to take care of this one first.
      26375db9
  2. 08 Mar, 2004 7 commits
    • Alan Stern's avatar
      [PATCH] USB UHCI: restore more state following PM resume · 593f48d6
      Alan Stern authored
      Some systems don't save the internal state of the UHCI registers across a
      PM suspend/resume cycle very well.  This patch saves & restores the
      Frame Number and the Framelist Base Address registers (in addition to the
      Interrupt Enable register, which was added separately in a recent patch.)
      593f48d6
    • Alan Stern's avatar
      [PATCH] USB: Remove interface/altsettings assumption from audio driver · 2d5185c7
      Alan Stern authored
      This patch updates the USB audio class driver to use the usb_ifnum_to_if()
      and usb_altnum_to_altsetting() routines, thereby removing assumptions
      about which interface or altsetting is stored in which array entry.
      
      It also simplifies the driver's probe() routine by using the raw
      configuration descriptor already loaded into memory instead of reading the
      descriptor from the device.  Now, either the current driver has a bug and
      never deallocates the buffer used to hold the descriptor, or else I've
      introduced a double-free error.  There's no obvious place where the buffer
      gets freed, but it's hard to be certain.
      
      It would be good if someone could try out this patch.  I can't test it,
      not having any USB audio devices handy.  If the double-free error is
      present, it will show up when the device is disconnected and the
      configuration data is released.
      2d5185c7
    • Alan Stern's avatar
      [PATCH] USB: Update USB class drivers · 40c72cb0
      Alan Stern authored
      This patch makes the necessary updates to the bluetty, cdc-acm, and usblp
      class drivers for the new interface/altsetting paradigm.  The changes are
      quite small.
      
      Unfortunately, the audio and usb-midi drivers are in much worse shape.
      They will require more in-depth hacking, to come later...
      40c72cb0
    • Greg Kroah-Hartman's avatar
    • Greg Kroah-Hartman's avatar
    • Greg Kroah-Hartman's avatar
      merge fixups with irda usb code · 536a5db5
      Greg Kroah-Hartman authored
      536a5db5
    • Greg Kroah-Hartman's avatar
      merge · eba9fb15
      Greg Kroah-Hartman authored
      eba9fb15
  3. 07 Mar, 2004 5 commits
  4. 06 Mar, 2004 21 commits
    • Andrew Morton's avatar
      [PATCH] floppy oops fix · bdfe6862
      Andrew Morton authored
      From: Zwane Mwaikambo <zwane@linuxpower.ca>
      
      It looks like a block request snuck through before we had initialised the
      motor_off_timer timers.  So I pushed the timer init earlier.
      bdfe6862
    • Andrew Morton's avatar
      [PATCH] OSS Sound Driver Forte needs ac97_codec · 1ec55db5
      Andrew Morton authored
      From: Marc-Christian Petersen <m.c.p@wolk-project.de>
      
      OSS Sound Driver Forte needs ac97_codec.
      1ec55db5
    • Andrew Morton's avatar
      [PATCH] fix i2c compile warnings · b2ea9dcb
      Andrew Morton authored
      drivers/i2c/busses/i2c-elv.c: In function `i2c_bitelv_init':
      
      drivers/i2c/busses/i2c-elv.c:155: warning: unsigned int format, long int arg (arg 2)
      drivers/i2c/busses/i2c-elv.c:155: warning: unsigned int format, long int arg (arg 2)
      drivers/i2c/busses/i2c-velleman.c: In function `i2c_bitvelle_init':
      drivers/i2c/busses/i2c-velleman.c:141: warning: unsigned int format, long int arg (arg 2)
      drivers/i2c/busses/i2c-velleman.c:141: warning: unsigned int format, long int arg (arg 2)
      b2ea9dcb
    • Andrew Morton's avatar
      [PATCH] Documentation/cdrom/ide-cd fix · 2cc53dd5
      Andrew Morton authored
      From: David Joerg <davidjoerg@web.de>
      
      Fix the description of the IO ports for the IDE primary and secondary
      interfaces.
      2cc53dd5
    • Andrew Morton's avatar
      [PATCH] alpha ptrace race fix · 01d63346
      Andrew Morton authored
      From: Aneesh Kumar KV <aneesh.kumar@digital.com>
      
      We need to set the tasks's exit code prior to waking it, not afterwards.
      
      Acked by rth.
      01d63346
    • Andrew Morton's avatar
      [PATCH] Fix nobh_prepare_write() race · b12088bf
      Andrew Morton authored
      Dave Kleikamp <shaggy@austin.ibm.com> points out a race between
      nobh_prepare_write() and end_buffer_read_sync().  end_buffer_read_sync()
      calls unlock_buffer(), waking the nobh_prepare_write() thread, which
      immediately frees the buffer_head.  end_buffer_read_sync() then calls
      put_bh() which decrements b_count for the already freed structure.  The
      SLAB_DEBUG code detects the slab corruption.
      
      We fix this by giving nobh_prepare_write() a private buffer_head end_o
      handler which doesn't touch the buffer's contents after unlocking it.
      b12088bf
    • Andrew Morton's avatar
      [PATCH] CONFIG_LBD fixes · d67c0fd5
      Andrew Morton authored
      From: Eric Sandeen <sandeen@sgi.com>
      
      Several functions in buffer.c are using unsigned long where they should be
      using sector_t.
      
      Also, use pgoff_t in several places so it is easier to tell what is beingused
      as a pagecache index, what is being used as a disk index and what is being
      used as an offset-into-page.
      d67c0fd5
    • Andrew Morton's avatar
      [PATCH] fix oops in emu10k1_wavein_open() error recovery · 1cd4dae0
      Andrew Morton authored
      If a large pci_alloc_consistent() GFP_ATOMIC allocation fails this driver's
      recovery code will call emu10k1_wavein_close() far earlier than it should: it
      goes splat in emu10k1_timer_uninstall().
      
      Fix it by simply removing that call: we haven't allocated any resources yet
      anyway.
      
      Note that one of the callers of emu10k1_wavein_open(), emu10k1_audio_read()
      will sit there stupidly retrying the open.  But it has a sleep in there so
      something might eventually give way.
      1cd4dae0
    • Andrew Morton's avatar
      [PATCH] i2o subsystem minor bugfixes · 50d89de7
      Andrew Morton authored
      From: Markus Lidel <Markus.Lidel@shadowconnect.com>
      
      drivers/message/i2o/i2o_block.c:
      
       - corrected the initialization sequence of the request queues.
      
       - added initialization to queue spinlocks.
      
       - release device in i2o_scan because else the device could not be queried.
      
       - i2o_block event threads wait on signal KILL but signal TERM was sent.
      
      drivers/message/i2o/i2o_core.c:
      
       - set the HRT length to 0 at initialization, to avoid calling free on
         unallocated memory.
      
       - i2o_core event threads wait on signal KILL but signal TERM was sent.
      
       - added a limit of 3 tries to get the HRT from the controller.
      
       - removed the dpt parameter, which was used to force DPT controllers get
         handled by the i2o driver.  Now all available i2o controllers will be
         handled by this driver.
      
      drivers/message/i2o/i2o_scsi.c:
      
       - beautifying of printk calls.
      
       - added scsi_unregister to properly clean up on module unload.
      
      drivers/message/i2o/Kconfig:
      
       - added help for i2o_block and i2o_scsi to describe the differences between
         the two drivers.
      
      include/linux/i2o-dev.h:
      
       - cleaned typo "tate" into "state".
      
      include/linux/i2o.h:
      
       - removed defines from i2o_block and insert it here.
      
      (Acked by Alan)
      50d89de7
    • Andrew Morton's avatar
      [PATCH] v4l1 compatibility module fix. · 84e0e179
      Andrew Morton authored
      From: Gerd Knorr <kraxel@bytesex.org>
      
      This patch fixes a bug in the v4l1-compat module and makes it pass the
      correct buffer type to the v4l2 driver on VIDIOC_STREAM(ON|OFF) ioctls.
      84e0e179
    • Andrew Morton's avatar
      [PATCH] add missing MODULE_LICENSEs · 18e0d45e
      Andrew Morton authored
      From: Arjan van de Ven <arjanv@redhat.com>
      18e0d45e
    • Andrew Morton's avatar
      [PATCH] ext2/ext3 -ENOSPC bug · 5e9087ad
      Andrew Morton authored
      From: Chris Mason <mason@suse.com>
      
      find_group_other looks buggy for ext2 and ext3 in 2.6, it can cause -ENOSPC
      errors when the fs has plenty of free room.
      
      To hit the bug, you need a filesystem where:
      
      parent_group has no free blocks (but might have free inodes) Every other
      group with free inodes has no free blocks.
      
      That gets you down to the final linear search in find_group_other.  The
      linear search has two bugs:
      
      group = parent_group + 1; means we start searching at parent_group + 2
      because the loop increments group before using it.
      
      for(i = 2 ; i < ngroups ; i++) means we don't search through all the
      groups.
      
      The end result is that parent_group and parent_group + 1 are not checked
      for free inodes in the final linear search.  ext3 has the same problem.
      5e9087ad
    • Andrew Morton's avatar
      [PATCH] sb16 sample size fix · f8abc670
      Andrew Morton authored
      From: Andreas Kies <andikies@t-online.de>
      
      Fix improperly handled 16 bit sample size.  If you use an odd number of
      bytes in 16 bit mode the driver fails to work.
      f8abc670
    • Andrew Morton's avatar
      [PATCH] serial_core.h needs sched.h · 9352726c
      Andrew Morton authored
      In file included from drivers/misc/ibmasm/uart.c:27:
      include/linux/serial_core.h: In function `uart_handle_dcd_change':
      include/linux/serial_core.h:407: `TASK_INTERRUPTIBLE' undeclared (first use in this function)
      9352726c
    • Andrew Morton's avatar
      [PATCH] kill a dead function in lockd · 03970c32
      Andrew Morton authored
      From: Christoph Hellwig <hch@lst.de>
      
      sleep_on hurts my eyes and this offender is compltely unused, so..
      03970c32
    • Andrew Morton's avatar
      [PATCH] c99 initializers for cs46xx_wrapper · 61a318bf
      Andrew Morton authored
      From: Arnd Bergmann <arnd@arndb.de>
      
      This use of deprecated struct initializers was hidden behind macro magic
      and has appearantly not been noticed before.
      61a318bf
    • Andrew Morton's avatar
      [PATCH] Fix initrd Kconfig dependencies · 57d5b52e
      Andrew Morton authored
      From: "Jim Gifford" <maillist@jg555.com>
      
      Prevent initrd from being built if ram device is built as a module.
      57d5b52e
    • Andrew Morton's avatar
      [PATCH] char/rio/rioctrl: fix ioctl return values · 8f048a26
      Andrew Morton authored
      From: "Randy.Dunlap" <rddunlap@osdl.org>
      
      From: Tony Breeds <tony@bakeyournoodle.com>
      
      It fixes 3 places where the ioctl returns positives instead of negatives.
      I've gotten feedback from the maintainer (Rogier Wolff (sp?) and he has no
      objections.
      8f048a26
    • Andrew Morton's avatar
      [PATCH] fix put_compat_timespec prototype · e729d83f
      Andrew Morton authored
      From: Arnd Bergmann <arnd@arndb.de>
      
      The wrong argument in put_compat_timespec is marked const, causing
      unnecessary compiler warnings.
      e729d83f
    • Andrew Morton's avatar
      [PATCH] ppc64: Convert mm_context_t to a struct · 5b9c017d
      Andrew Morton authored
      From: David Gibson <david@gibson.dropbear.id.au>
      
      Converts the mm_context_t on ppc64 to be a struct.  This lets us separate
      the low_hpages flag into a separate field rather than folding it into the
      actual context id.  That makes things neater, since the flag is
      conceptually separate and has, for example, should be propogate across a
      fork whereas the context ID obviously isn't.  The mm_context_id is the only
      place to put arch-specific information in the mm_struct.
      
      This patch will also make some interesting extensions to the hugepage
      support much easier, such as allowing dynamic resizing of the hugepage
      address space, or using special pagetables for hugepages.
      5b9c017d
    • Andrew Morton's avatar
      [PATCH] ppc64: iSeries virtual cdrom driver · 99e7e863
      Andrew Morton authored
      From: Stephen Rothwell <sfr@canb.auug.org.au>
      
      This patch adds the virtual cdrom driver for PPC64 iSeries.
      99e7e863