1. 11 7月, 2006 2 次提交
    • L
      [PATCH] pci: initialize struct pci_dev.error_state · 82081797
      Linas Vepstas 提交于
      The pci channel state is currently uninitialized, thus there are two ways
      of indicating that "everything's OK": 0 and 1.  This is a bit of a burden.
      
      If a devce driver wants to check if the pci channel is in a working or a
      disconnected state, the driver writer must perform checks similar to
      
         if((pdev->error_state != 0) &&
            (pdev->error_state != pci_channel_io_normal)) {
               whatever();
         }
      
      which is rather akward.  The first check is needed because stuct pci_dev is
      inited to all-zeros.  The scond is needed because the error recovery will
      set the state to pci_channel_io_normal (which is not zero).
      
      This patch fixes this awkwardness.
      Signed-off-by: NLinas Vepstas <linas@austin.ibm.com>
      Cc: Greg KH <greg@kroah.com>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      82081797
    • A
      [PATCH] don't select CONFIG_HOTPLUG · 135c294f
      Andrew Morton 提交于
      It's useful to be able to turn off CONFIG_HOTPLUG for compile-coverage testing
      and for section-checking coverage.  But a few things go and select
      CONFIG_HOTPLUG, making it a royal PITA to turn the thing off.
      
      It's only turnable offable if CONFIG_EMBEDDED anyway.  So let's make those
      things depend on HOTPLUG, not select it.
      
      Cc: Greg KH <greg@kroah.com>
      Cc: Dominik Brodowski <linux@dominikbrodowski.net>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      135c294f
  2. 10 7月, 2006 1 次提交
  3. 03 7月, 2006 1 次提交
  4. 01 7月, 2006 1 次提交
  5. 30 6月, 2006 1 次提交
    • I
      [PATCH] genirq: rename desc->handler to desc->chip · d1bef4ed
      Ingo Molnar 提交于
      This patch-queue improves the generic IRQ layer to be truly generic, by adding
      various abstractions and features to it, without impacting existing
      functionality.
      
      While the queue can be best described as "fix and improve everything in the
      generic IRQ layer that we could think of", and thus it consists of many
      smaller features and lots of cleanups, the one feature that stands out most is
      the new 'irq chip' abstraction.
      
      The irq-chip abstraction is about describing and coding and IRQ controller
      driver by mapping its raw hardware capabilities [and quirks, if needed] in a
      straightforward way, without having to think about "IRQ flow"
      (level/edge/etc.) type of details.
      
      This stands in contrast with the current 'irq-type' model of genirq
      architectures, which 'mixes' raw hardware capabilities with 'flow' details.
      The patchset supports both types of irq controller designs at once, and
      converts i386 and x86_64 to the new irq-chip design.
      
      As a bonus side-effect of the irq-chip approach, chained interrupt controllers
      (master/slave PIC constructs, etc.) are now supported by design as well.
      
      The end result of this patchset intends to be simpler architecture-level code
      and more consolidation between architectures.
      
      We reused many bits of code and many concepts from Russell King's ARM IRQ
      layer, the merging of which was one of the motivations for this patchset.
      
      This patch:
      
      rename desc->handler to desc->chip.
      
      Originally i did not want to do this, because it's a big patch.  But having
      both "desc->handler", "desc->handle_irq" and "action->handler" caused a
      large degree of confusion and made the code appear alot less clean than it
      truly is.
      
      I have also attempted a dual approach as well by introducing a
      desc->chip alias - but that just wasnt robust enough and broke
      frequently.
      
      So lets get over with this quickly.  The conversion was done automatically
      via scripts and converts all the code in the kernel.
      
      This renaming patch is the first one amongst the patches, so that the
      remaining patches can stay flexible and can be merged and split up
      without having some big monolithic patch act as a merge barrier.
      
      [akpm@osdl.org: build fix]
      [akpm@osdl.org: another build fix]
      Signed-off-by: NIngo Molnar <mingo@elte.hu>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      d1bef4ed
  6. 28 6月, 2006 5 次提交
  7. 27 6月, 2006 2 次提交
    • C
      [PATCH] x86_64: msi_apic.c build fix · a4cffb64
      Christian Kujau 提交于
            CC      drivers/pci/msi-apic.o
      In file included from include/asm/msi.h:11,
                        from drivers/pci/msi.h:71,
                        from drivers/pci/msi-apic.c:8:
      include/asm/smp.h:103: error: syntax error before '->' token
      
      akpm: nasty.  It appears to be
      
        static inline unsigned int cpu_mask_to_apicid(cpumask_t cpumask)
      
      conflicting with include/asm-x86_64/mach_apic.h's
      
        #define cpu_mask_to_apicid (genapic->cpu_mask_to_apicid)
      
      And I don't know which patch in rc4-mm1 triggered this.
      
      Fixing this in the .c file seems wrong.
      
      Including asm/smp.h instead of linux/smp.h seems wrong too.  Need that
      .config.
      
      Cc: Andi Kleen <ak@muc.de>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NAndi Kleen <ak@suse.de>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      a4cffb64
    • A
      spelling fixes · d6e05edc
      Andreas Mohr 提交于
      acquired (aquired)
      contiguous (contigious)
      successful (succesful, succesfull)
      surprise (suprise)
      whether (weather)
      some other misspellings
      Signed-off-by: NAndreas Mohr <andi@lisas.de>
      Signed-off-by: NAdrian Bunk <bunk@stusta.de>
      d6e05edc
  8. 22 6月, 2006 20 次提交
  9. 20 6月, 2006 7 次提交