1. 26 Apr, 2005 32 commits
  2. 25 Apr, 2005 8 commits
    • Linus Torvalds's avatar
    • Deepak Saxena's avatar
      [PATCH] ARM: 2653/1: Fix memset and memzero macro double-reference of parameters · 2fac6f3f
      Deepak Saxena authored
      Patch from Deepak Saxena
      
      The current memset() and memzero() macros on ARM reference the
      incoming parameters more than once and this can cause uninted
      side-effects. The issue was found while debugging SCTP protocol
      and with the specific usage of memzero(skb_put(skb,size),size).
      This call would call skb_put(skb,size) twice leading to badness.
      The fixed version copies the incoming parameters into local
      variables and uses those instead.
      
      Signed-off-by: Deepak Saxena
      Signed-off-by: Russell King
      2fac6f3f
    • Jeff Lackey's avatar
      [PATCH] ARM: 2650/1: PXA27x sleep - workaround Errata 39 & 50 (Patch 2667) · 41130d37
      Jeff Lackey authored
      Patch from Jeff Lackey
      
      This patch updates arch/arm/mach-pxa/sleep.S to support
      the PXA270 CPU.  It works around Errata 39 & 50 from the
      Intel(R) PXA27x Processor Family Specification Update.
      
      Signed-off-by: Jeff Lackey
      Signed-off-by: Russell King
      41130d37
    • Michael Chan's avatar
      [TG3]: Fix tg3_restart_ints() · 04237ddd
      Michael Chan authored
      tg3_restart_ints() is called to re-enable interrupts after tg3_poll()
      has finished all the work. It calls tg3_cond_int() to force an interrupt
      if the status block updated bit is set. The updated bit will be set if
      there is a new status block update sometime during tg3_poll() and it can
      be very often. The worst part is that even if all the work has been
      processed, the updated bit remains set and an interrupt will be forced
      unnecessarily.
      
      The fix is to call tg3_has_work() instead to determine if new work is
      posted before forcing an interrupt. The way to force an interrupt is
      also changed to use "coalesce_now" instead of "SETINT". The former is
      generally a safer way to force the interrupt.
      
      Also deleted the first parameter to tg3_has_work() which is unused.
      Signed-off-by: default avatarMichael Chan <mchan@broadcom.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      04237ddd
    • Michael Chan's avatar
      [TG3]: Refresh hw index in tg3_rx() · 52f6d697
      Michael Chan authored
      This patch refreshes the hw rx producer in tg3_rx() so that additional
      work posted by the hardware can be processed.
      Signed-off-by: default avatarMichael Chan <mchan@broadcom.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      52f6d697
    • Michael Chan's avatar
      [TG3]: Fix bug in tg3_rx() · 483ba50b
      Michael Chan authored
      This patch fixes a bug that causes tg3_has_work() to always return 1.
      
      rx work is determined by comparing tp->rx_rcb_ptr with the current hw
      producer index. The hw producer index is modulo the ring size, but tp-
      >rx_rcb_ptr is a free running counter that goes up beyond the ring size.
      After the ring wraps around once, tg3_has_work() will always return 1.
      
      The fix is to always do modulo arithmetic on tp->rx_rcb_ptr.
      Signed-off-by: default avatarMichael Chan <mchan@broadcom.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      483ba50b
    • Lucas Correia Villa Real's avatar
      [PATCH] ARM: 2645/1: Adds IIS definitions for the S3C2400 · eec99e34
      Lucas Correia Villa Real authored
      Patch from Lucas Correia Villa Real
      
      Adds IISFCON definitions for the S3C2400 at
      include/asm-arm/arch-s3c2400/regs-iis.h.
      
      Signed-off-by: Lucas Correia Villa Real
      Signed-off-by: Ben Dooks
      Signed-off-by: Russell King
      eec99e34
    • Lucas Correia Villa Real's avatar
      [PATCH] ARM: 2644/1: Adds S3C2400 support to uncompress.h · bd7b1702
      Lucas Correia Villa Real authored
      Patch from Lucas Correia Villa Real
      
      The S3C2400 doesn't have a cpuid information stored anywhere. This patch adds
      support to the S3C2400 at include/asm-arm/arch-s3c2400/uncompress.h by
      initializing the cpuid variable to the S3C2410, as they share the same
      routine. The GSTATUS1 pin is then used only if not compiling for the S3C2400.
      
      Signed-off-by: Lucas Correia Villa Real
      Signed-off-by: Ben Dooks
      Signed-off-by: Russell King
      bd7b1702