1. 13 7月, 2007 1 次提交
  2. 12 7月, 2007 1 次提交
  3. 26 6月, 2007 1 次提交
  4. 09 6月, 2007 1 次提交
    • D
      USB: usb gadgets avoid le{16,32}_to_cpup() · 01ee7d70
      David Brownell 提交于
      It turns out that le16_to_cpup() and le32_to_cpup() aren't always safe
      to call with pointers into packed structures, since those are inlined
      functions and GCC may lose the "packed" attribute.  So those references
      can become unaligned kernel accesses, which are evil on some hardware.
      
      This patch updates uses of those routines in the gadget stack.  The
      references into packed structures can just use leXX_to_cpu(*x), which
      in most cases is more natural.  Some other uses in RNDIS, mostly in
      debug code, were wrong in the first place; those use get_unaligned().
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      01ee7d70
  5. 23 5月, 2007 1 次提交
  6. 12 5月, 2007 1 次提交
  7. 09 5月, 2007 1 次提交
  8. 28 4月, 2007 7 次提交
  9. 26 4月, 2007 1 次提交
  10. 22 4月, 2007 1 次提交
    • E
      [ARM] 4304/1: removes the unnecessary bit number from CKENnn_XXXX · 7053acbd
      Eric Miao 提交于
      This patch removes the unnecessary bit number from CKENnn_XXXX
      definitions for PXA, so that
      
      	CKEN0_PWM0 --> CKEN_PWM0
      	CKEN1_PWM1 --> CKEN_PWM1
      	...
      	CKEN24_CAMERA --> CKEN_CAMERA
      
      The reasons for the change of these defitions are:
      
      1. they do not scale - they are currently valid for pxa2xx, but
      definitely not valid for pxa3xx, e.g., pxa3xx has bit 3 for camera
      instead of bit 24
      
      2. they are unnecessary - the peripheral name within the definition
      has already announced its usage, we don't need those bit numbers
      to know which peripheral we are going to enable/disable clock for
      
      3. they are inconvenient - think about this: a driver programmer
      for pxa has to remember which bit in the CKEN register to turn
      on/off
      
      Another change in the patch is to make the definitions equal to its
      clock bit index, so that
      
         #define CKEN_CAMERA  (24)
      
      instead of
      
         #define CKEN_CAMERA  (1 << 24)
      
      this change, however, will add a run-time bit shift operation in
      pxa_set_cken(), but the benefit of this change is that it scales
      when bit index exceeds 32, e.g., pxa3xx has two registers CKENA
      and CKENB, totally 64 bit for this, suppose CAMERA clock enabling
      bit is CKENB:10, one can simply define CKEN_CAMERA to be (32 + 10)
      and so that pxa_set_cken() need minimum change to adapt to that.
      Signed-off-by: Neric miao <eric.y.miao@gmail.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      7053acbd
  11. 27 3月, 2007 1 次提交
    • D
      USB: omap_udc: workaround dma_free_coherent() bogosity · 8a3c1f57
      David Brownell 提交于
      Various fixes to omap_udc, noted with some recent testing:
      
       - Cope with some SMP-induced braindamage in ARM's dma_{alloc,free}_coherent()
         implementation: alloc() can be called with IRQs blocked, but since late
         last year that's no longer true for free().  This resolves really NASTY
         problems with logspamming via WARN_ON(), indicating N-page leaks.
      
       - Be more correct in handling GET_STATUS request for RECIP_ENDPOINT ... the
         previous code only handled RECIP_INTERFACE, this version should be correct
         except for (sigh) bulk/interrupt endpoints.
      
       - Provide a better name for the function reporting whether the board has
         vbus sensing wired up.
      
      GET_STATUS requests for endpoint status still acts strangely though, at least
      given one flakey host doesn't always ack the first DATA packet, then the packet
      that gets retransmitted doesn't have data!
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      8a3c1f57
  12. 11 3月, 2007 1 次提交
  13. 10 3月, 2007 3 次提交
  14. 24 2月, 2007 1 次提交
  15. 17 2月, 2007 2 次提交
    • D
      USB: at91_udc, shrink runtime footprint · 398acce7
      David Brownell 提交于
      This is a runtime codespace shrink:  in most cases, platform devices should
      put probe() should in the init section, and remove() in the exit section.
      And I have no idea why the module init/exit routines were mismarked.
      It also moves one function table into read-only data.
      Signed-off-by: NDavid Brownell <dbrownell@users.sourceforge.net>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      398acce7
    • B
      USB: fix g_serial small error · 8356f311
      Bryan O'Donoghue 提交于
      A SET_LINE_CODING control request should return a zero length packet
      as an ACK to the host, during the status phase of a USB transaction.
      
      The return value of gs_setup_class() is treated as the number of
      bytes to write in the status phase of the control request, by
      gs_setup(). For this case, the value returned by gs_setup_class should
      be zero for SET_LINE_CODING but, right now, appears to be
      sizeof(struct usb_cdc_line_coding).
      
      However, if after doing the memcpy of the line coding descriptor we
      set the variable "ret" to be zero, we should return the appropiate ZLP
      to the host as an ACK in the status phase of the control request.
      I've tested this out using Linux as both host and slave and confirmed
      that the following small change fixes the spurious return of
      sizeof(struct usb_cdc_line_coding)/wLength bytes in the status phase
      of a USB_CDC_REQ_SET_LINE_CODING request. It's not a huge bug but, it
      is worth fixing.
      Signed-off-by: NBryan O'Donoghue <bodonoghue@codehermit.ie>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      8356f311
  16. 15 2月, 2007 2 次提交
    • T
      [PATCH] Scheduled removal of SA_xxx interrupt flags fixups · 38515e90
      Thomas Gleixner 提交于
      The obsolete SA_xxx interrupt flags have been used despite the scheduled
      removal.  Fixup the remaining users.
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Acked-by: NIngo Molnar <mingo@elte.hu>
      Cc: "Luck, Tony" <tony.luck@intel.com>
      Cc: Roman Zippel <zippel@linux-m68k.org>
      Cc: Geert Uytterhoeven <geert@linux-m68k.org>
      Cc: Jeff Garzik <jeff@garzik.org>
      Cc: Wim Van Sebroeck <wim@iguana.be>
      Cc: Roland Dreier <rolandd@cisco.com>
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      Cc: James Bottomley <James.Bottomley@steeleye.com>
      Cc: Greg KH <greg@kroah.com>
      Cc: Dave Airlie <airlied@linux.ie>
      Cc: James Simmons <jsimmons@infradead.org>
      Cc: "Antonino A. Daplas" <adaplas@pol.net>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      38515e90
    • T
      [PATCH] remove many unneeded #includes of sched.h · cd354f1a
      Tim Schmielau 提交于
      After Al Viro (finally) succeeded in removing the sched.h #include in module.h
      recently, it makes sense again to remove other superfluous sched.h includes.
      There are quite a lot of files which include it but don't actually need
      anything defined in there.  Presumably these includes were once needed for
      macros that used to live in sched.h, but moved to other header files in the
      course of cleaning it up.
      
      To ease the pain, this time I did not fiddle with any header files and only
      removed #includes from .c-files, which tend to cause less trouble.
      
      Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
      arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
      allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
      configs in arch/arm/configs on arm.  I also checked that no new warnings were
      introduced by the patch (actually, some warnings are removed that were emitted
      by unnecessarily included header files).
      Signed-off-by: NTim Schmielau <tim@physik3.uni-rostock.de>
      Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      cd354f1a
  17. 12 2月, 2007 2 次提交
  18. 08 2月, 2007 12 次提交