1. 01 May, 2004 2 commits
    • Duncan Sands's avatar
      [PATCH] USB: fix WARN_ON in usbfs · b9c5051b
      Duncan Sands authored
      On Tuesday 27 April 2004 10:58, Oliver Neukum wrote:
      > Am Dienstag, 27. April 2004 00:14 schrieb Greg KH:
      > > On Mon, Apr 26, 2004 at 04:05:17PM +0200, Duncan Sands wrote:
      > > > diff -Nru a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
      > > > --- a/drivers/usb/core/devio.c	Mon Apr 26 13:48:28 2004
      > > > +++ b/drivers/usb/core/devio.c	Mon Apr 26 13:48:28 2004
      > > > @@ -350,8 +350,8 @@
      > > >  	 * all pending I/O requests; 2.6 does that.
      > > >  	 */
      > > >
      > > > -	if (ifnum < 8*sizeof(ps->ifclaimed))
      > > > -		clear_bit(ifnum, &ps->ifclaimed);
      > > > +	BUG_ON(ifnum >= 8*sizeof(ps->ifclaimed));
      > >
      > > I've changed that to a WARN_ON().  Yeah, writing over memory is bad, but
      > > oopsing is worse.  Let's be a bit nicer than that.
      >
      > You aren't nice that way. An oops has localised consequences. Scribbling
      > over memory can cause anything.
      
      Hi Greg, if won't accept a BUG_ON, how about the following?
      b9c5051b
    • Duncan Sands's avatar
      [PATCH] USB: usbfs: change extern inline to static inline · 2a6f7d11
      Duncan Sands authored
      And change __inline__ to inline and get rid of an unused function
      while at it.
      2a6f7d11
  2. 30 Apr, 2004 5 commits
    • Jürgen Stuber's avatar
      [PATCH] USB: LEGO USB Tower driver v0.95 · d28412d9
      Jürgen Stuber authored
      here is the latest version 0.95 of the LEGO USB Tower driver against 2.6.6-rc3
      which corrects a lot of problems in the version currently in the kernel,
      most notably sleeping in interrupt context and improper locking.
      Please apply.
      
      It has been thoroughly tested with UHCI, OHCI and EHCI host controllers
      using Lejos and NQC.  Firmware and program download, and with proper
      modifications all communication protocols supported by Lejos work,
      as well as firmware and program download and datalog upload in NQC.
      
      Notes to application maintainers/protocol designers:
      
      - Small modifications are needed in communication protocols because
        the tower tends to discard the first byte of transmissions.
        So for example LNP needs to send an extra byte like 0xff before
        the packet, and F7 handlers needs to cope with a lost 0x55.
      
      - I suggest /dev/usb/legousbtower0 etc. as the standard device names.
        This puts it in the same place as the other USB devices and makes
        clear which driver is responsible for these devices.
      d28412d9
    • David Brownell's avatar
      [PATCH] USB: reject urb submissions to suspended devices · e6ff3ede
      David Brownell authored
      This patch rejects URB submissions to suspended devices, so
      that they don't get hardware-specific fault reports.  Instead,
      they get the same code (-EHOSTUNREACH) for all HCDs.
      
      It also fixes a minor problem with colliding declarations of
      the symbol USB_STATE_SUSPENDED.
      e6ff3ede
    • David Brownell's avatar
      [PATCH] USB Gadget: gadget zero and USB suspend/resume · eb9f952a
      David Brownell authored
      This patch lets gadget zero be more useful in testing usb suspend
      and resume.  It prints messages on suspend() and resume(), and
      supports an "autoresume=N" mode to wake the host after N seconds.
      eb9f952a
    • Sepp Wijnands's avatar
      [PATCH] USB: Alcatel TD10 Serial to USB converter cable support · 8fba64b0
      Sepp Wijnands authored
      The Alcatel TD10 USB to Serial converter cable (for use with a Alcatel
      OT 535 or 735(i) mobile phone) seems to be a repackaged Alcatel
      version of the Prolific 2303 adapter.
      
      And as such, simply adding its product/vendor id (0x11f7/0x02df) to
      drivers/usb/serial/pl2303.c seems to be enough to make it work.
      8fba64b0
    • Alan Stern's avatar
      [PATCH] USB: USB altsetting updates for IDSN Hisax driver · e7285d82
      Alan Stern authored
      The USB core is changing the way interfaces and altsettings are stored.
      They are no longer required to be in numerical order, and as a result,
      simply indexing the interface and altsetting arrays won't work as
      expected.
      
      This patch for the st5481 takes these changes into account.  A simpler
      approach would be to store a pointer to the struct usb_host_interface
      rather than look it up repeatedly, but I'm not very familiar with this
      driver and didn't want to attempt such an alteration.
      e7285d82
  3. 29 Apr, 2004 2 commits
  4. 28 Apr, 2004 17 commits
  5. 29 Apr, 2004 5 commits
  6. 28 Apr, 2004 9 commits
    • Andrew Morton's avatar
      [PATCH] ppc32: Update Motorola PrPMC750 support · abfd7fc4
      Andrew Morton authored
      From: Tom Rini <trini@kernel.crashing.org>
      
      This patch updates support for the Motorola PrPMC750 platform.  Most of the
      size in this patch comes from merging prpmc750_pci.c and prpmc750_setup.c into
      just prpmc750.c.
      abfd7fc4
    • Andrew Morton's avatar
      [PATCH] ppc32: Add openpic_hookup_cascade() · 6c4f928b
      Andrew Morton authored
      From: Tom Rini <trini@kernel.crashing.org>
      
      This patch adds openpic_hookup_cascade(offset, name, handler) which allows for
      an arbitrary interrupt controller to be hooked up as a cascade to the openpic.
       This also allows for platforms to just not have a cascaded controller.
      6c4f928b
    • Andrew Morton's avatar
      [PATCH] ppc32: Update SBS K2 support · 9be15f90
      Andrew Morton authored
      From: Tom Rini <trini@kernel.crashing.org>
      
      This patch updates support for the SBS K2 platform.  Most of the size in this
      patch comes from merging k2_pci.c and k2_setup.c into just k2.c.
      9be15f90
    • Andrew Morton's avatar
      [PATCH] fix warning in arch/ppc/boot/simple/misc.c · 3e0dd373
      Andrew Morton authored
      From: Christoph Hellwig <hch@lst.de>
      
      asm-ppc/elf.h uses a pointer to struct task_struct without any
      forward-declaration.
      
      In file included from include/linux/elf.h:5,
                       from arch/ppc/boot/simple/misc.c:20:
      include/asm/elf.h:102: warning: `struct task_struct' declared inside parameter list
      include/asm/elf.h:102: warning: its scope is only this definition or declaration, which is probably not what you want
      3e0dd373
    • Andrew Morton's avatar
      [PATCH] Fix thinkos in #if -> #ifdef conversions #2 · caff0e5e
      Andrew Morton authored
      From: Tom Rini <trini@kernel.crashing.org>
      
      And when trying to catch up on old patches, I forgot this hunk:
      caff0e5e
    • Nathan Scott's avatar
    • Andrew Morton's avatar
      [PATCH] Fix thinkos in #if -> #ifdef conversions · 95c06313
      Andrew Morton authored
      From: Tom Rini <trini@kernel.crashing.org>
      
      When I changed some '#if FOO' tests to '#ifdef FOO' I forgot to make sure
      that nothing was doing #define FOO 0.  So after auditing all of the changes
      I made, the following is needed:
      95c06313
    • Andrew Morton's avatar
      [PATCH] ppc64: Set memory-only nodes online · f6364f27
      Andrew Morton authored
      From: Olof Johansson <olof@austin.ibm.com>
      
      On pSeries LPARs we might end up with NUMA nodes that only have memory and
      no CPUs.  Only the CPU configuration code actually set a node online, so
      memory-only nodes wouldn't show up in sysfs.  Below patch adds the
      set_online call to the memory loop too.
      f6364f27
    • Andrew Morton's avatar
      [PATCH] fix warning in fs/dquot.c · aa995aac
      Andrew Morton authored
      From: "Luiz Fernando N. Capitulino" <lcapitulino@prefeitura.sp.gov.br>
      
      fs/dquot.c: In function `vfs_quota_off':
      fs/dquot.c:1328: warning: label `out' defined but not used
      aa995aac