1. 05 1月, 2006 5 次提交
    • L
      [ARM] 3224/1: add masked thread interrupt status registers for ixp2000 · 7a94283a
      Lennert Buytenhek 提交于
      Patch from Lennert Buytenhek
      
      In its interrupt handler, the (NAPI) ixp2000 netdev driver needs to use
      the masked thread interrupt status register (instead of the raw one) to
      prevent scheduling polling when polling is already running when a TXdone
      interrupt comes in.  The definitions for the masked status registers were
      not in yet, so this patch adds them.
      Signed-off-by: NLennert Buytenhek <buytenh@wantstofly.org>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      7a94283a
    • L
      [ARM] 3223/1: remove ixdp2x01 cs89x0 hack · b721243a
      Lennert Buytenhek 提交于
      Patch from Lennert Buytenhek
      
      Remove the ixdp2x01 cs89x0 hack from ixp2000's io implementation.
      Since the cs89x0 driver has been made properly aware of the odd way
      the cs89x0 is hooked up on the ixdp2x01, we don't need this hack
      anymore.
      Signed-off-by: NLennert Buytenhek <buytenh@wantstofly.org>
      Signed-off-by: NDeepak Saxena <dsaxena@plexity.net>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      b721243a
    • R
      [ARM] 3218/1: PAGE_SHIFT undeclared in arch-ixp4xx/memory.h (adjust_zones moved out of line) · 313cbb55
      Rod Whitby 提交于
      Patch from Rod Whitby
      
      PAGE_SHIFT is undeclared in include/asm-arm/arch-ixp4xx/memory.h, identified by the following kernel compilation error:
      
      CC [M] sound/core/memory.o
      In file included from include/asm/memory.h:27,
      from include/asm/io.h:28,
      from sound/core/memory.c:24:
      include/asm/arch/memory.h: In function `__arch_adjust_zones':
      include/asm/arch/memory.h:28: error: `PAGE_SHIFT' undeclared (first use
      in this function)
      
      This patch replaces my previous attempt at fixing this problem (Patch 3214/1) and is based on the following feedback:
      
      Russell King wrote:
      > The error you see came up on SA1100.  The best solution was to move
      > the __arch_adjust_zones() function out of line.  I suggest ixp4xx
      > does the same.
      
      I have moved the function out of line into arch/arm/mach-ixp4xx/common-pci.c as suggested.
      Signed-off-by: NRod Whitby <rod@whitby.id.au>
      Signed-off-by: NDeepak Saxena <dsaxena@plexity.net>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      313cbb55
    • R
      [ARM] 3215/1: Iomega NAS 100d (MACH_NAS100D) machine support · 3145d8a6
      Rod Whitby 提交于
      Patch from Rod Whitby
      
      This patch adds support for a new arm/ixp4xx machine - the Iomega NAS 100d network attached storage product.  The NAS100D is a consumer device containing a 266MHz Intel IXP420 processor, 16MB of flash, 64MB of RAM, a 160Gb internal IDE hard disk, and 802.11b/g wireless on an Atheros mini-PCI card.
      
      Work on porting the latest 2.6.x kernel to this device is being done by
      the NSLU2-Linux project (the same team who maintains the port to the
      Linksys NSLU2 device).  In particular, the majority of this patch was
      authored by Alessandro Zummo, based on the work done for MACH_NSLU2
      support by the NSLU2-Linux core team of developers.
      
      MACH_NAS100D (as implemented by this patch) can be enabled in jumbo
      ixp4xx kernels without any affect on the other machines supported by
      that kernel.
      
      This patch applies cleanly against 2.6.15-rc7 and should be trivial to
      apply to later kernel versions. It does not depend upon any other
      patches.
      
      Modified files (and number of lines inserted):
       arch/arm/mach-ixp4xx/Kconfig           |    8
       arch/arm/mach-ixp4xx/Makefile          |    1
       include/asm-arm/arch-ixp4xx/hardware.h |    1
       include/asm-arm/arch-ixp4xx/irqs.h     |    9
       include/asm-arm/arch-ixp4xx/nas100d.h  |   75
       arch/arm/mach-ixp4xx/nas100d-pci.c     |   77
       arch/arm/mach-ixp4xx/nas100d-power.c   |   69
       arch/arm/mach-ixp4xx/nas100d-setup.c   |  133
      
      -- Rod Whitby (NSLU2-Linux project lead)
      Signed-off-by: NRod Whitby <rod@whitby.id.au>
      Signed-off-by: NAlessandro Zummo <a.zummo@towertech.it>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      3145d8a6
    • D
      [ARM] 3192/1: Remove gpio_isr_line_clear() API from IXP4xx · f7e8bbb8
      Deepak Saxena 提交于
      Patch from Deepak Saxena
      
      Other than interrupt masking purposes, this API is only used when
      configuring interrupt lines and this patch moves that functionality
      directly into the ixp4xx_set_irq_type() implementation as board level
      PCI code should not need to worry about those details.
      Signed-off-by: NDeepak Saxena <dsaxena@plexity.net>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      f7e8bbb8
  2. 04 1月, 2006 7 次提交
  3. 03 1月, 2006 1 次提交
    • D
      [PATCH] Avoid namespace pollution in <asm/param.h> · abe842eb
      Dag-Erling Smrgrav 提交于
      In commit 3D59121003721a8fad11ee72e646fd9d3076b5679c, the x86 and x86-64
      <asm/param.h> was changed to include <linux/config.h> for the
      configurable timer frequency.
      
      However, asm/param.h is sometimes used in userland (it is included
      indirectly from <sys/param.h>), so your commit pollutes the userland
      namespace with tons of CONFIG_FOO macros.  This greatly confuses
      software packages (such as BusyBox) which use CONFIG_FOO macros
      themselves to control the inclusion of optional features.
      
      After a short exchange, Christoph approved this patch
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      abe842eb
  4. 28 12月, 2005 1 次提交
    • D
      [IPV6] mcast: Fix multiple issues in MLDv2 reports. · 5ab4a6c8
      David L Stevens 提交于
      The below "jumbo" patch fixes the following problems in MLDv2.
      
      1) Add necessary "ntohs" to recent "pskb_may_pull" check [breaks
              all nonzero source queries on little-endian (!)]
      
      2) Add locking to source filter list [resend of prior patch]
      
      3) fix "mld_marksources()" to
              a) send nothing when all queried sources are excluded
              b) send full exclude report when source queried sources are
                      not excluded
              c) don't schedule a timer when there's nothing to report
      
      NOTE: RFC 3810 specifies the source list should be saved and each
        source reported individually as an IS_IN. This is an obvious DOS
        path, requiring the host to store and then multicast as many sources
        as are queried (e.g., millions...). This alternative sends a full, 
        relevant report that's limited to number of sources present on the
        machine.
      
      4) fix "add_grec()" to send empty-source records when it should
              The original check doesn't account for a non-empty source
              list with all sources inactive; the new code keeps that
              short-circuit case, and also generates the group header
              with an empty list if needed.
      
      5) fix mca_crcount decrement to be after add_grec(), which needs
              its original value
      
      These issues (other than item #1 ;-) ) were all found by Yan Zheng,
      much thanks!
      Signed-off-by: NDavid L Stevens <dlstevens@us.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5ab4a6c8
  5. 25 12月, 2005 3 次提交
  6. 23 12月, 2005 1 次提交
    • N
      [PATCH] fix race with preempt_enable() · d6f02913
      Nicolas Pitre 提交于
      Currently a simple
      
      	void foo(void) { preempt_enable(); }
      
      produces the following code on ARM:
      
      foo:
      	bic	r3, sp, #8128
      	bic	r3, r3, #63
      	ldr	r2, [r3, #4]
      	ldr	r1, [r3, #0]
      	sub	r2, r2, #1
      	tst	r1, #4
      	str	r2, [r3, #4]
      	blne	preempt_schedule
      	mov	pc, lr
      
      The problem is that the TIF_NEED_RESCHED flag is loaded _before_ the
      preemption count is stored back, hence any interrupt coming within that
      3 instruction window causing TIF_NEED_RESCHED to be set won't be
      seen and scheduling won't happen as it should.
      
      Nothing currently prevents gcc from performing that reordering.  There
      is already a barrier() before the decrement of the preemption count, but
      another one is needed between this and the TIF_NEED_RESCHED flag test
      for proper code ordering.
      Signed-off-by: NNicolas Pitre <nico@cam.org>
      Acked-by: NNick Piggin <nickpiggin@yahoo.com.au>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      d6f02913
  7. 22 12月, 2005 1 次提交
    • A
      [PATCH] include/linux/irq.h: #include <linux/smp.h> · 23f9b317
      Adrian Bunk 提交于
      Jan's crosscompile page [1] shows, that one regression in 2.6.15-rc is
      that the v850 defconfig does no longer compile.
      
      The compile error is:
      
      <--  snip  -->
      
      ...
        CC      arch/v850/kernel/setup.o
      In file included from /usr/src/ctest/rc/kernel/arch/v850/kernel/setup.c:17:
      /usr/src/ctest/rc/kernel/include/linux/irq.h:13:43: asm/smp.h: No such file or directory
      make[2]: *** [arch/v850/kernel/setup.o] Error 1
      
      <--  snip  -->
      
      The #include <asm/smp.h> in irq.h was intruduced in 2.6.15-rc.
      
      Since include/linux/irq.h needs code from asm/smp.h only in the
      CONFIG_SMP=y case and linux/smp.h #include's asm/smp.h only in the
      CONFIG_SMP=y case, I'm suggesting this patch to #include <linux/smp.h>
      in irq.h.
      
      I've tested the compilation with both CONFIG_SMP=y and CONFIG_SMP=n
      on i386.
      Signed-off-by: NAdrian Bunk <bunk@stusta.de>
      Acked-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      23f9b317
  8. 21 12月, 2005 4 次提交
  9. 20 12月, 2005 3 次提交
  10. 19 12月, 2005 2 次提交
  11. 17 12月, 2005 4 次提交
  12. 16 12月, 2005 3 次提交
  13. 15 12月, 2005 5 次提交