1. 31 7月, 2008 1 次提交
    • K
      [MIPS] Initialization of Alchemy boards · fd7ccfa7
      Kevin Hickey 提交于
      An earlier update changed some calls from simple_strotl to strict_strtol but
      did not account for the differences in the syntax between the calls.
      simple_strotl returns the integer; strict_strtol returns an error code and
      takes a pointer to the result.  As it was, NULL was being passed in place of
      the result, which led to failures during kernel initialization when using
      YAMON.
      Signed-off-by: NKevin Hickey <khickey@rmicorp.com>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      fd7ccfa7
  2. 16 7月, 2008 1 次提交
  3. 12 5月, 2008 1 次提交
    • S
      [MIPS] Pb1200/DBAu1200 code style cleanup · c3d1d5c8
      Sergei Shtylyov 提交于
      Fix several errors and warnings given by checkpatch.pl:
      
      - use of C99 // comments;
      
      - initialization of a 'static' variable to 0;
      
      - space after opening and before closing parentheses;
      
      - missing space between 'for' and opening parenthesis;
      
      - macros with complex values not enclosed in parentheses;
      
      - printk() without KERN_* facility level;
      
      - unnecessary braces for single-statement block;
      
      - using simple_strtol() where strict_strtol() could be used;
      
      - line over 80 characters.
      
      In addition to these changes, also do the following:
      
      - mention DBAu1200 board in the Makefile;
      
      - replace the group of #include/#ifdef directives by a single
        #include <au1xxx.h> since this header contains the needed stuff;
      
      - properly indent the blocks;
      
      - insert spaces between operator and its operands, remove excess spaces
        there;
      
      - remove needless parentheses and add some for clarity;
      
      - replace numeric literals/expressions with the matching macros;
      
      - remove space after the type cast's closing parenthesis;
      
      - reduce pb1200_setup_cascade() to the single 'return' statement;
      
      - reduce the number of printed empty lines in the so-called CPLD
        workaround;
      
      - remove #undef AU1X00_EXTERNAL_INT since that macro is not defined
        anywhere;
      
      - replace spaces after the macro name with tabs in the #define directives;
      
      - remove excess tabs after the macro name in the #define directives;
      
      - fix typo in the BCSR_RESETS_PWMR1mUX macro's name;
      
      - group all Pb1200 PCMCIA definitions together;
      
      - put the function's result type and name/parameters on the same line;
      
      - insert missing and remove excess new lines;
      
      - make the multi-line comment style consistent with the kernel style
        elsewhere by adding empty first line and/or adding space/asterisk on
        their left side;
      
      - fix typos/errors, capitalize acronyms, etc. in the comments;
      
      - combine some comments;
      
      - update MontaVista copyright;
      
      - remove Pete Popov's old email address...
      Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      c3d1d5c8
  4. 29 4月, 2008 2 次提交
    • S
      [MIPS] Pb1200/DBAu1200: move platform code to its proper place · fcbd3b4b
      Sergei Shtylyov 提交于
      Since both the IDE interface and SMC 91C111 Ethernet chip are on-board
      devices, not SOC devices, move the platform device registration form the
      common to the board specific code.
      
      While at it, remove semicolon (which didn't break compilation only by
      chance) from the AU1XXX_ATA_DDMA_REQ macro and do some renaming:
      
      - change 'au1200_ide0_' variable name prefix to the mere 'ide_';
      
      - change 'smc91x_' variable name prefix to 'smc91c111_' since that's the
        name of the chip used on the boards;
      
      - drop 'AU1XXX_' prefix from the names of macros describing IDE and Ethernet
        on-board devices;
      
      - change 'SMC91111_' to 'SMC91C111_', change 'IRQ' to 'INT' in the names of
        the macros describing the Ethernet chip for consistency with the IDE
        macros;
      
      - change 'ATA_' to 'IDE_' and 'OFFSET' to 'SHIFT' (since this value is
        indeed a shift count) in the names of the macros describing the IDE
        interface.
      Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      fcbd3b4b
    • S
      [MIPS] Alchemy: kill useless #include's, #define's and extern's · ce28f94c
      Sergei Shtylyov 提交于
      Go thru the Alchemy code and hunt down every unneeded #include, #define, and
      extern (some of which refer to already long dead functions).
      Signed-off-by: NSergei Shtylyov <sshtylyov@ru.mvista.com>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      ce28f94c
  5. 29 1月, 2008 1 次提交
  6. 07 12月, 2007 1 次提交
  7. 03 11月, 2007 3 次提交
  8. 20 10月, 2007 1 次提交
  9. 18 10月, 2007 1 次提交
  10. 17 10月, 2007 2 次提交
  11. 16 10月, 2007 1 次提交
  12. 12 10月, 2007 3 次提交
  13. 14 7月, 2007 1 次提交
  14. 07 2月, 2007 1 次提交
  15. 30 11月, 2006 1 次提交
  16. 08 10月, 2006 1 次提交
  17. 14 7月, 2006 1 次提交
  18. 01 7月, 2006 1 次提交
  19. 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
  20. 20 6月, 2006 1 次提交
  21. 30 10月, 2005 4 次提交