1. 05 1月, 2006 7 次提交
    • M
      [PATCH] USB: Eagle and ADI 930 usb adsl modem driver · b72458a8
      matthieu castet 提交于
      A driver for USB ADSL modems based on the ADI eagle chipset using the
      usb_atm infrastructure.
      
      The managing part was taken from bsd ueagle driver, other parts were
      written from scratch.
      
      The driver uses the in-kernel firmware loader :
      - to load  a first usb firmware when the modem is in pre-firmware state
      - to load the dsp firmware that are swapped in host memory.
      - to load CMV (configuration and management variables) when the modem
      boot. (We can't use options or sysfs for this as there many possible
      values. See
      https://mail.gna.org/public/eagleusb-dev/2005-04/msg00031.html for a
      description of some)
      - to load fpga code for 930 chipset.
      
      The device had 4 endpoints :
      * 2 for data (use by usbatm). The incoming
      endpoint could be iso or bulk. The modem seems buggy and produce lot's
      of atm errors when using it in bulk mode for speed > 3Mbps, so iso
      endpoint is need for speed > 3Mbps. At the moment iso endpoint need a
      patched usbatm library and for this reason is not included in this patch.
      
      * One bulk endpoint for uploading dsp firmware
      
      * One irq endpoint that notices the driver
          - if we need to upload a page of the dsp firmware
          - an ack for read or write CMV and the value (for the read case).
      
      If order to make the driver cleaner, we design synchronous
      (read|write)_cmv :
      -send a synchronous control message to the modem
      -wait for an ack or a timeout
      -return the value if needed.
      
      In order to run these synchronous usb messages we need a kernel thread.
      
      The driver has been tested  with sagem fast 800 modems with different
      eagle chipset revision and with ADI 930 since April 2005.
      Signed-off-by: NMatthieu CASTET <castet.matthieu@free.fr>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      b72458a8
    • A
      [PATCH] USB: EHCI: fix conflation of buf == 0 with len == 0 · 6912354a
      Alan Stern 提交于
      When the ehci-hcd driver prepares a control URB, it tests for a
      zero-length data stage by looking at the transfer_dma value instead of
      the transfer_buffer_length.  (In fact it does this even for non-control
      URBs, which is an additional aspect of the same bug.)
      
      However, under certain circumstances it's possible for transfer_dma to
      be 0 while transfer_buffer_length is non-zero.  This can happen when a
      freshly allocated page (mapped to address 0 and marked Copy-On-Write,
      but never written to) is used as the source buffer for an OUT transfer.
      This patch (as598) fixes the problem.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      6912354a
    • O
      [PATCH] USB: isp116x-hcd: cleanup · 959eea21
      Olav Kongas 提交于
      The attached patch makes a cleanup of isp116x-hcd. Most of the volume of
      the patch comes from 2 sources: moving the code around to get rid of a
      few function prototypes and reworking register dumping functions/macros.
      Among other things, switched over from using procfs to debugfs.
      
      Cleanup. The following changes were made:
      
      - Rework register dumping code so it can be used for dumping
        to both syslog and debugfs.
      - Switch from procfs to debugfs..
      - Die gracefully on Unrecoverable Error interrupt.
      - Fix memory leak in isp116x_urb_enqueue(), if HC happens to
        die in a narrow time window.
      - Fix a 'sparce' warning (unnecessary cast).
      - Report Devices Removable for root hub ports by default
        (was Devices Permanently Attached).
      - Move bus suspend/resume functions down in code to get rid of
        a few function prototypes.
      - A number of one-line cleanups.
      - Add an entry to MAINTAINERS.
      Signed-off-by: NOlav Kongas <ok@artecdesign.ee>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
       MAINTAINERS                    |    6
       drivers/usb/host/isp116x-hcd.c |  429 ++++++++++++++++-------------------------
       drivers/usb/host/isp116x.h     |   83 +++++--
       3 files changed, 230 insertions(+), 288 deletions(-)
      959eea21
    • O
      [PATCH] USB: isp116x-hcd: support reiniting HC on resume · 535488fc
      Olav Kongas 提交于
      Until now the isp116x-hcd had no support to reinitialize the HC on
      resume, if the controller lost its state during suspend. This patch,
      generated against your Oct 26 git tree, adds that support. The patch is
      basically the same as the one tested by Ivan Kalatchev, who reported the
      problem, on 2.6.13.
      
      Please apply,
      
      Support reinitializing the isp116x host controller from scratch on
      resume, if the controller has lost its state.
      Signed-off-by: NOlav Kongas <ok@artecdesign.ee>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      535488fc
    • D
      [PATCH] USB: Converting cdc acm to a ring queue · 61a87adf
      David Kubicek 提交于
      this patch by David converts the sending queue of the CDC ACM driver
      to a queue of URBs. This is needed for quicker devices. Please apply.
      Signed-Off-By: NOliver Neukum <oliver@neukum.name>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      
       drivers/usb/class/cdc-acm.c |  229 ++++++++++++++++++++++++++++++--------------
       drivers/usb/class/cdc-acm.h |   33 +++++-
       2 files changed, 185 insertions(+), 77 deletions(-)
      61a87adf
    • R
      [PATCH] USB: Add pxa27x OHCI PM functions · 2e1dcc16
      Richard Purdie 提交于
      Add power management functions for the pxa27x USB OHCI host controller.
      This is a totally rewritten version of the patch by Nicolas Pitre and
      Todd Poynor which accounts for recent USB changes.
      Signed-off-by: NRichard Purdie <rpurdie@rpsys.net>
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      2e1dcc16
    • R
      [PATCH] USB: pxa27x OHCI - Separate platform code from main driver · 81f280e2
      Richard Purdie 提交于
      To allow multiple platforms to use the PXA27x OHCI driver, the platform
      code needs to be moved into the board specific files in
      arch/arm/mach-pxa. This patch does this for mainstone and adds
      preliminary hooks to allow other boards to use the driver.
      
      This has been compile tested for mainstone and successfully run on Spitz
      (Sharp Zaurus SL-C3000) with the addition of an appropriate board
      support file.
      Signed-off-by: NRichard Purdie <rpurdie@rpsys.net>
      Signed-off-by: NNicolas Pitre <nico@cam.org>
      Acked-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      81f280e2
  2. 31 12月, 2005 2 次提交
  3. 30 12月, 2005 1 次提交
  4. 22 12月, 2005 2 次提交
  5. 19 12月, 2005 1 次提交
  6. 17 12月, 2005 1 次提交
  7. 16 12月, 2005 1 次提交
  8. 14 12月, 2005 1 次提交
  9. 30 11月, 2005 4 次提交
  10. 24 11月, 2005 8 次提交
    • N
      [PATCH] usb serial: remove redundant include · 569cfaad
      Nicolas Kaiser 提交于
      remove redundant include
      Signed-off-by: NNicolas Kaiser <nikai@nikai.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      569cfaad
    • D
      [PATCH] USB: fix USB key generates ioctl_internal_command errors issue · 63dc3ff3
      David Hrdeman 提交于
      On Wed, Nov 16, 2005 at 06:34:24PM -0800, Pete Zaitcev wrote:
      >On Wed, 16 Nov 2005 23:52:32 +0100, David Hrdeman <david@2gen.com> wrote:
      >> usb-storage: waiting for device to settle before scanning
      >>   Vendor: I0MEGA    Model: UMni1GB*IOM2K4    Rev: 1.01
      >>   Type:   Direct-Access                      ANSI SCSI revision: 02
      >> SCSI device sda: 2048000 512-byte hdwr sectors (1049 MB)
      >> sda: Write Protect is off
      >> sda: Mode Sense: 00 00 00 00
      >> sda: assuming drive cache: write through
      >> ioctl_internal_command: <8 0 0 0> return code = 8000002
      >>    : Current: sense key=0x0
      >>     ASC=0x0 ASCQ=0x0
      >> SCSI device sda: 2048000 512-byte hdwr sectors (1049 MB)
      >
      >I think it's harmless. I saw things like that, and initially I plugged
      >them with workarounds like this:
      
      Thanks for the pointer, and yes, it is harmless, but it floods the
      console with the messages which hides other (potentially important)
      messages...following your example I've made a patch which fixes the
      problem.
      Signed-off-by: NDavid Hrdeman <david@2gen.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      63dc3ff3
    • D
      [PATCH] USB: ohci, move ppc asic tweaks nearer pci · 21b1861f
      David Brownell 提交于
      This should fix a suspend/resume issues that appear with OHCI on some
      PPC hardware.  The PCI layer should doesn't have the hooks needed for
      such ASIC-specific hooks (in this case, software clock gating), so
      this moves the code to do that into hcd-pci.c ... where it can be
      done after the relevant PCI PM state transition (to/from D3).
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      21b1861f
    • D
      [PATCH] USB: EHCI updates split init/reinit logic for resume · 18807521
      David Brownell 提交于
      Moving the PCI-specific parts of the EHCI driver into their own file
      created a few issues ... notably on resume paths which (like swsusp)
      require re-initializing the controller.  This patch:
      
       - Splits the EHCI startup code into run-once HCD setup code and
         separate "init the hardware" reinit code.  (That reinit code is
         a superset of the "early usb handoff" code.)
      
       - Then it makes the PCI init code run both, and the resume code only
         run the reinit code.
      
       - It also removes needless pci wrappers around EHCI start/stop methods.
      
       - Removes a byteswap issue that would be seen on big-endian hardware.
      
      The HCD glue still doesn't actually provide a good way to do all this
      run-one init stuff in one place though.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      18807521
    • D
      [PATCH] USB: EHCI updates mostly whitespace cleanups · abcc9448
      David Brownell 提交于
      This cleans up the recent updates to EHCI PCI support:
      
        - Gets rid of checks for "is this a PCI device", they're no
          longer needed since this is now all PCI-only code.
      
        - Reduce log spamming:  MWI is only interesting in the atypical
          case that it can actually be used.
      
        - Whitespace cleanup, as appropriate for a new file with no
          other pending patches.
      
      So other than that minor logging change, no functional updates.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      abcc9448
    • D
      [PATCH] USB: EHCI updates · f03c17fc
      David Brownell 提交于
      This fixes some bugs in EHCI suspend/resume that joined us over the past
      few releases (as usbcore, PCI, pmcore, and other components evolved):
      
        - Removes suspend and resume recursion from the EHCI driver, getting
          rid of the USB_SUSPEND special casing.
      
        - Updates the wakeup mechanism to work again; there's a newish usbcore
          call it needs to use.
      
        - Provide simpler tests for "do we need to restart from scratch", to
          address another case where PCI Vaux was lost.  (In this case it was
          restoring a swsusp snapshot, but there could be others.)
      
      Un-exports a symbol that was temporarily exported.
      
      A notable change from previous version is that this doesn't move
      the spinlock init, so there's still a resume/reinit path bug.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      f03c17fc
    • I
      [PATCH] USB: ftdi_sio: new IDs for KOBIL devices · b4723ae3
      Ian Abbott 提交于
      This patch adds two new devices to the ftdi_sio driver's device ID
      table.  The device IDs were supplied by Stefan Nies of KOBIL Systems for
      two of their devices using the FTDI chip.
      Signed-off-by: NIan Abbott <abbotti@mev.co.uk>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      b4723ae3
    • D
      [PATCH] USB: SN9C10x driver - bad page state fix · 0b67ba63
      Damian Wrobel 提交于
      This patch solves the following problem I've already discovered on the
      latest 2.6.15-rc1-git1 kernel:
      
      Nov 13 07:37:28 wrobel kernel: Bad page state at free_hot_cold_page (in process 'motion', page c164e020)
      Nov 13 07:37:28 wrobel kernel: flags:0x40000400 mapping:00000000 mapcount:0 count:0
      Nov 13 07:37:28 wrobel kernel: Backtrace:
      Nov 13 07:37:28 wrobel kernel:  [<c0146d86>] bad_page+0x85/0xbe
      Nov 13 07:37:28 wrobel kernel:  [<c0147629>] free_hot_cold_page+0x54/0x129
      Nov 13 07:37:28 wrobel kernel:  [<c01598c6>] __vunmap+0xa9/0xfe
      Nov 13 07:37:28 wrobel kernel:  [<c0154114>] vmalloc_to_page+0x34/0x55
      Nov 13 07:37:28 wrobel kernel:  [<c0159942>] vfree+0x27/0x35
      Nov 13 07:37:28 wrobel kernel:  [<f8a20292>]  sn9c102_release_buffers+0x30/0x3f [sn9c102]
      Nov 13 07:37:28 wrobel kernel:  [<f8a231c2>] sn9c102_release+0x37/0xeb [sn9c102]
      Nov 13 07:37:28 wrobel kernel:  [<c0163e74>] __fput+0xa9/0x1aa
      Nov 13 07:37:28 wrobel kernel:  [<c01624f7>] filp_close+0x49/0x6d
      Nov 13 07:37:30 wrobel kernel:  [<c016258f>] sys_close+0x74/0x95
      Nov 13 07:37:30 wrobel kernel:  [<c0102ef9>] syscall_call+0x7/0xb
      Nov 13 07:37:31 wrobel kernel: Trying to fix it up, but a reboot is needed
      Signed-off-by: NDamian Wrobel <dwrobel@ertel.com.pl>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      0b67ba63
  11. 18 11月, 2005 12 次提交