1. 14 10月, 2008 1 次提交
  2. 13 10月, 2008 1 次提交
  3. 10 10月, 2008 1 次提交
  4. 26 7月, 2008 1 次提交
  5. 15 5月, 2008 1 次提交
  6. 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
  7. 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
  8. 17 1月, 2008 1 次提交
  9. 20 7月, 2007 6 次提交