1. 30 3月, 2009 1 次提交
  2. 16 12月, 2008 2 次提交
    • J
      powerpc: Introduce ppc_pci_flags accessors · 7fe519c2
      Josh Boyer 提交于
      Currently there are a number of platforms that open code access to
      the ppc_pci_flags global variable.  However, that variable is not
      present if CONFIG_PCI is not set, which can lead to a build break.
      
      This introduces a number of accessor functions that are defined
      to be empty in the case of CONFIG_PCI being disabled.  The
      various platform files in the kernel are updated to use these.
      Signed-off-by: NJosh Boyer <jwboyer@linux.vnet.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      7fe519c2
    • N
      powerpc/chrp: Add missing of_node_put in pci.c · 29e931c0
      Nicolas Palix 提交于
      of_node_put is needed before discarding a value received from
      of_find_node_by_name, eg in error handling code or when the device
      node is no longer used.
      
      The semantic match that catches the bug is as follows:
      (http://www.emn.fr/x-info/coccinelle/)
      
      // <smpl>
      @r exists@
      local idexpression struct device_node *n;
      position p1, p2;
      statement S1,S2;
      expression E,E1;
      expression *ptr != NULL;
      @@
      
      (
      if (!(n@p1 = of_find_node_by_name(...))) S1
      |
      n@p1 = of_find_node_by_name(...)
      )
      <... when != of_node_put(n)
          when != if (...) { <+... of_node_put(n) ...+> }
          when != true !n  || ...
          when != n = E
          when != E = n
      if (!n || ...) S2
      ...>
      (
        return \(0\|<+...n...+>\|ptr\);
      |
      return@p2 ...;
      |
      n = E1
      |
      E1 = n
      )
      @script:python@
      p1 << r.p1;
      p2 << r.p2;
      @@
      
      print "* file: %s of_find_node_by_name %s return %s" % (p1[0].file,p1[0].line,p2[0].line)
      // </smpl>
      Signed-off-by: NNicolas Palix <npalix@diku.dk>
      Signed-off-by: NJulia Lawall <julia@diku.dk>
      Acked-by: NStephen Rothwell <sfr@canb.auug.org.au>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      29e931c0
  3. 15 10月, 2008 2 次提交
  4. 07 9月, 2008 1 次提交
  5. 20 8月, 2008 1 次提交
  6. 22 7月, 2008 1 次提交
  7. 14 5月, 2008 1 次提交
  8. 29 4月, 2008 1 次提交
  9. 25 1月, 2008 2 次提交
  10. 20 12月, 2007 2 次提交
  11. 10 12月, 2007 1 次提交
  12. 11 10月, 2007 1 次提交
  13. 23 8月, 2007 2 次提交
  14. 22 8月, 2007 1 次提交
    • O
      [POWERPC] Advertise correct IDE mode on Pegasos2 · 556ecf9b
      Olaf Hering 提交于
      The built-in IDE controller is configured in legacy mode, but the PCI
      registers advertise native mode.  Force the PCI class into legacy
      mode. This allows pata_via to access two drives.
      
      The Pegasos specific irq enforcement in the via82cxxx driver must stay
      because there is apparently no generic way to setup irq per channel.
      
      Tested on Pegasos2 with firmware version 20040810, and two IDE disks.
      Signed-off-by: NOlaf Hering <olaf@aepfle.de>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      556ecf9b
  15. 17 8月, 2007 2 次提交
  16. 24 7月, 2007 1 次提交
  17. 29 6月, 2007 3 次提交
  18. 23 5月, 2007 1 次提交
    • L
      [POWERPC] Fix Section mismatch warnings · 405861a0
      Li Yang 提交于
      This patch fix the following Section mismatch warnings in powerpc code.
      
      WARNING: arch/powerpc/platforms/built-in.o - Section mismatch: reference to .init.data:mv643xx_eth_pd_devs from .text between 'mv643xx_eth_add_pds' (at offset 0x9ed2) and 'gg2_read_config'
      WARNING: arch/powerpc/platforms/built-in.o - Section mismatch: reference to .init.data:mv643xx_eth_pd_devs from .text between 'mv643xx_eth_add_pds' (at offset 0x9ed6) and 'gg2_read_config'
      WARNING: arch/powerpc/platforms/built-in.o - Section mismatch: reference to .init.text:note_scsi_host from __ksymtab between '__ksymtab_note_scsi_host' (at offset 0x8) and '__ksymtab_sys_ctrler'
      Signed-off-by: NLi Yang <leoli@freescale.com>
      Signed-off-by: NKumar Gala <galak@kernel.crashing.org>
      405861a0
  19. 09 5月, 2007 1 次提交
  20. 07 5月, 2007 1 次提交
  21. 24 4月, 2007 4 次提交
  22. 13 4月, 2007 3 次提交
  23. 22 3月, 2007 1 次提交
  24. 16 3月, 2007 1 次提交
  25. 06 3月, 2007 1 次提交
  26. 10 2月, 2007 1 次提交
  27. 04 12月, 2006 1 次提交