1. 30 7月, 2010 1 次提交
  2. 15 7月, 2010 1 次提交
  3. 18 3月, 2010 1 次提交
    • G
      of: Fix comparison of "compatible" properties · 1976152f
      Grant Likely 提交于
      Commit 7c7b60cb
      "of: put default string compare and #a/s-cell values into common header"
      
      Breaks various things on powerpc due to using strncasecmp instead of
      strcasecmp for comparing against "compatible" strings.
      
      This causes things like the 4xx PCI code to fail miserably due to the
      partial matches in code like this:
      
             for_each_compatible_node(np, NULL, "ibm,plb-pcix")
                     ppc4xx_probe_pcix_bridge(np);
             for_each_compatible_node(np, NULL, "ibm,plb-pci")
                     ppc4xx_probe_pci_bridge(np);
      
      It's not quite right to do partial name match. Entries in a compatible
      list are meant to be matched whole. If a device is compatible with both
      "foo" and "foo1", then the device should have both strings in its
      "compatible" property.
      
      This patch reverts powerpc and microblaze us to use strcasecmp.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
            (for patch description)
      Signed-off-by: NGrant Likely <grant.likely@secretlab.ca>
      Acked-by: NDavid S. Miller <davem@davemloft.net>
      Acked-by: NMichal Simek <michal.simek@petalogix.com>
      1976152f
  4. 15 2月, 2010 1 次提交
  5. 14 2月, 2010 4 次提交
  6. 09 2月, 2010 3 次提交
  7. 29 1月, 2010 1 次提交
  8. 24 11月, 2009 2 次提交
  9. 16 10月, 2009 7 次提交
  10. 27 4月, 2009 1 次提交
  11. 19 11月, 2008 1 次提交
  12. 13 10月, 2008 1 次提交
  13. 26 7月, 2008 1 次提交
  14. 07 4月, 2008 1 次提交
    • J
      [POWERPC] Add of_device_is_available function · 834d97d4
      Josh Boyer 提交于
      IEEE 1275 defined a standard "status" property to indicate the operational
      status of a device.  The property has four possible values: okay, disabled,
      fail, fail-xxx.  The absence of this property means the operational status
      of the device is unknown or okay.
      
      This adds a function called of_device_is_available that checks the state
      of the status property of a device.  If the property is absent or set to
      either "okay" or "ok", it returns 1.  Otherwise it returns 0.
      Signed-off-by: NJosh Boyer <jwboyer@linux.vnet.ibm.com>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      834d97d4
  15. 06 2月, 2008 1 次提交
    • M
      [POWERPC] Add of_get_next_parent() · f4eb0107
      Michael Ellerman 提交于
      Iterating through a device node's parents is simple enough, but dealing
      with the refcounts properly is a little ugly, and replicating that logic
      is asking for someone to get it wrong or forget it all together, eg:
      
      while (dn != NULL) {
      	/* loop body */
      	tmp = of_get_parent(dn);
      	of_node_put(dn);
      	dn = tmp;
      }
      
      So add of_get_next_parent(), inspired by of_get_next_child().  The
      contract is that it returns the parent and drops the reference on the
      current node, this makes the loop look like:
      
      while (dn != NULL) {
      	/* loop body */
      	dn = of_get_next_parent(dn);
      }
      Signed-off-by: NMichael Ellerman <michael@ellerman.id.au>
      Acked-by: NDavid S. Miller <davem@davemloft.net>
      Signed-off-by: NPaul Mackerras <paulus@samba.org>
      f4eb0107
  16. 17 1月, 2008 1 次提交
  17. 11 12月, 2007 1 次提交
  18. 20 10月, 2007 1 次提交
  19. 17 8月, 2007 1 次提交
  20. 20 7月, 2007 1 次提交
  21. 26 4月, 2007 3 次提交
  22. 03 3月, 2007 1 次提交
  23. 30 6月, 2006 3 次提交
  24. 26 6月, 2006 1 次提交