1. 31 10月, 2013 1 次提交
  2. 13 8月, 2013 1 次提交
    • S
      powerpc: 52xx: provide a default in mpc52xx_irqhost_map() · 6391f697
      Sebastian Siewior 提交于
      My gcc-4.3.5 fails to compile due to:
      
      |cc1: warnings being treated as errors
      |arch/powerpc/platforms/52xx/mpc52xx_pic.c: In function ‘mpc52xx_irqhost_map’:
      |arch/powerpc/platforms/52xx/mpc52xx_pic.c:343: error: ‘irqchip’ may be used uninitialized in this function
      
      since commit e34298c9 ("powerpc: 52xx: nop out unsupported critical
      IRQs"). This warning is complete crap since only values 0…3 are possible
      which are checked but gcc fails to understand that. I wouldn't care much
      but since this is compiled with -Werror I made this patch.
      While add it, I replaced the warning from l2irq to l1irq since this is
      the number that is evaluated.
      Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: NAnatolij Gustschin <agust@denx.de>
      6391f697
  3. 04 1月, 2013 1 次提交
    • G
      POWERPC: drivers: remove __dev* attributes. · cad5cef6
      Greg Kroah-Hartman 提交于
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the use of __devinit, __devexit_p, __devinitdata,
      __devinitconst, and __devexit from these drivers.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      cad5cef6
  4. 03 1月, 2013 1 次提交
  5. 07 12月, 2012 1 次提交
  6. 04 12月, 2012 1 次提交
  7. 19 11月, 2012 1 次提交
  8. 15 11月, 2012 1 次提交
  9. 26 10月, 2012 1 次提交
    • W
      powerpc: 52xx: nop out unsupported critical IRQs · e34298c9
      Wolfram Sang 提交于
      Currently, when booting MPC52xx based platforms, we get:
      
              mpc52xx_irqhost_map: invalid irq: virq=16, l1=0, l2=3
              irq: irq-16==>hwirq-0x3 mapping failed: -22
              [WARNing skipped]
      
      The warning is wrong since the mapping itself is valid. However, there is no
      support for that type of IRQ currently. Print a proper warning and bind the irq
      to a no_irq chip.
      Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
      Cc: John Bonesio <bones@secretlab.ca>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Signed-off-by: NAnatolij Gustschin <agust@denx.de>
      e34298c9
  10. 06 10月, 2012 1 次提交
  11. 14 9月, 2012 2 次提交
  12. 02 4月, 2012 1 次提交
    • U
      powerpc: Mark const init data with __initconst instead of __initdata · 059378e3
      Uwe Kleine-König 提交于
      As long as there is no other non-const variable marked __initdata in the
      same compilation unit it doesn't hurt. If there were one however
      compilation would fail with
      
      	error: $variablename causes a section type conflict
      
      because a section containing const variables is marked read only and so
      cannot contain non-const variables.
      Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      Cc: Josh Boyer <jwboyer@gmail.com>
      Cc: Matt Porter <mporter@kernel.crashing.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Anatolij Gustschin <agust@denx.de>
      Cc: Kumar Gala <galak@kernel.crashing.org>
      Cc: Arnd Bergmann <arnd@arndb.de>
      Cc: linuxppc-dev@lists.ozlabs.org
      Cc: cbe-oss-dev@lists.ozlabs.org
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      059378e3
  13. 29 3月, 2012 1 次提交
  14. 21 3月, 2012 2 次提交
  15. 16 2月, 2012 2 次提交
    • G
      irq_domain/powerpc: constify irq_domain_ops · 9f70b8eb
      Grant Likely 提交于
      Make all the irq_domain_ops structures in powerpc 'static const'
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Milton Miller <miltonm@bga.com>
      Tested-by: NOlof Johansson <olof@lixom.net>
      9f70b8eb
    • G
      irq_domain: Replace irq_alloc_host() with revmap-specific initializers · a8db8cf0
      Grant Likely 提交于
      Each revmap type has different arguments for setting up the revmap.
      This patch splits up the generator functions so that each revmap type
      can do its own setup and the user doesn't need to keep track of how
      each revmap type handles the arguments.
      
      This patch also adds a host_data argument to the generators.  There are
      cases where the host_data pointer will be needed before the function returns.
      ie. the legacy map calls the .map callback for each irq before returning.
      
      v2: - Add void *host_data argument to irq_domain_add_*() functions
          - fixed failure to compile
          - Moved IRQ_DOMAIN_MAP_* defines into irqdomain.c
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Cc: Rob Herring <rob.herring@calxeda.com>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Milton Miller <miltonm@bga.com>
      Tested-by: NOlof Johansson <olof@lixom.net>
      a8db8cf0
  16. 15 2月, 2012 1 次提交
    • G
      irq_domain/powerpc: Use common irq_domain structure instead of irq_host · bae1d8f1
      Grant Likely 提交于
      This patch drops the powerpc-specific irq_host structures and uses the common
      irq_domain strucutres defined in linux/irqdomain.h.  It also fixes all
      the users to use the new structure names.
      
      Renaming irq_host to irq_domain has been discussed for a long time, and this
      patch is a step in the process of generalizing the powerpc virq code to be
      usable by all architecture.
      
      An astute reader will notice that this patch actually removes the irq_host
      structure instead of renaming it.  This is because the irq_domain structure
      already exists in include/linux/irqdomain.h and has the needed data members.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Thomas Gleixner <tglx@linutronix.de>
      Cc: Milton Miller <miltonm@bga.com>
      Tested-by: NOlof Johansson <olof@lixom.net>
      bae1d8f1
  17. 01 11月, 2011 2 次提交
  18. 29 9月, 2011 1 次提交
  19. 12 7月, 2011 1 次提交
  20. 07 7月, 2011 1 次提交
  21. 10 6月, 2011 1 次提交
  22. 19 5月, 2011 1 次提交
  23. 04 5月, 2011 1 次提交
  24. 31 3月, 2011 1 次提交
  25. 29 3月, 2011 3 次提交
  26. 10 3月, 2011 1 次提交
  27. 28 2月, 2011 1 次提交
  28. 02 1月, 2011 1 次提交
  29. 24 12月, 2010 1 次提交
    • W
      powerpc/mpc5200: include fs.h in mpc52xx_gpt.c · 5e2f55c6
      Wolfram Sang 提交于
      Fix build errors like these (from a randconfig and my defconfig for a custom board):
      
      src/arch/powerpc/platforms/52xx/mpc52xx_gpt.c:549: error: dereferencing pointer to incomplete type: 1 errors in 1 logs
      src/arch/powerpc/platforms/52xx/mpc52xx_gpt.c:636: error: implicit declaration of function 'nonseekable_open': 1 errors in 1 logs
      src/arch/powerpc/platforms/52xx/mpc52xx_gpt.c:657: error: variable 'mpc52xx_wdt_fops' has initializer but incomplete type: 1 errors in 1 logs
      src/arch/powerpc/platforms/52xx/mpc52xx_gpt.c:658: error: excess elements in struct initializer: 1 errors in 1 logs
      src/arch/powerpc/platforms/52xx/mpc52xx_gpt.c:658: error: unknown field 'owner' specified in initializer: 1 errors in 1 logs
      ...
      Reported-by: NGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: NWolfram Sang <w.sang@pengutronix.de>
      Cc: Grant Likely <grant.likely@secretlab.ca>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Andrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      5e2f55c6
  30. 16 11月, 2010 1 次提交
  31. 09 9月, 2010 2 次提交
  32. 07 8月, 2010 1 次提交
    • E
      powerpc/5200: add mpc5200_psc_ac97_gpio_reset · cfa6a88c
      Eric Millbrandt 提交于
      Work around a silicon bug in the ac97 reset functionality of the
      mpc5200(b).  The implementation of the ac97 "cold" reset is flawed.
      If the sync and output lines are high when reset is asserted the
      attached ac97 device may go into test mode.  Avoid this by
      reconfiguring the psc to gpio mode and generating the reset manually.
      
      From MPC5200B User's Manual:
      "Some AC97 devices goes to a test mode, if the Sync line is high
      during the Res line is low (reset phase). To avoid this behavior the
      Sync line must be also forced to zero during the reset phase. To do
      that, the pin muxing should switch to GPIO mode and the GPIO control
      register should be used to control the output lines."
      Signed-off-by: NEric Millbrandt <emillbrandt@dekaresearch.com>
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      cfa6a88c
  33. 01 8月, 2010 1 次提交
    • G
      of/address: Clean up function declarations · 22ae782f
      Grant Likely 提交于
      This patch moves the declaration of of_get_address(), of_get_pci_address(),
      and of_pci_address_to_resource() out of arch code and into the common
      linux/of_address header file.
      
      This patch also fixes some of the asm/prom.h ordering issues.  It still
      includes some header files that it ideally shouldn't be, but at least the
      ordering is consistent now so that of_* overrides work.
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      22ae782f