1. 04 8月, 2011 1 次提交
  2. 03 8月, 2011 1 次提交
  3. 02 8月, 2011 1 次提交
  4. 09 7月, 2011 1 次提交
  5. 07 7月, 2011 1 次提交
  6. 04 7月, 2011 1 次提交
  7. 01 7月, 2011 1 次提交
  8. 28 2月, 2011 1 次提交
  9. 24 2月, 2011 1 次提交
    • S
      rtc: cmos: Add OF bindings · 3bcbaf6e
      Sebastian Andrzej Siewior 提交于
      This allows to load the OF driver based informations from the device
      tree. Systems without BIOS may need to perform some initialization.
      PowerPC creates a PNP device from the OF information and performs this
      kind of initialization in their private PCI quirk. This looks more
      generic.
      
      This patch also avoids registering the platform RTC driver on X86 if
      we have a device tree blob. Otherwise we would setup the device based
      on the hardcoded information in arch/x86 rather than the device tree
      based one.
      
      [ tglx: Changed "int of_have_populated_dt()" to bool as recommended by
              Grant ]
      Signed-off-by: NSebastian Andrzej Siewior <bigeasy@linutronix.de>
      Signed-off-by: NDirk Brandewie <dirk.brandewie@gmail.com>
      Acked-by: NGrant Likely <grant.likely@secretlab.ca>
      Cc: sodaville@linutronix.de
      Cc: devicetree-discuss@lists.ozlabs.org
      Cc: rtc-linux@googlegroups.com
      Cc: Alessandro Zummo <a.zummo@towertech.it>
      LKML-Reference: <1298405266-1624-12-git-send-email-bigeasy@linutronix.de>
      Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
      3bcbaf6e
  10. 22 1月, 2011 1 次提交
  11. 30 7月, 2010 1 次提交
  12. 15 7月, 2010 1 次提交
  13. 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
  14. 15 2月, 2010 1 次提交
  15. 14 2月, 2010 4 次提交
  16. 09 2月, 2010 3 次提交
  17. 29 1月, 2010 1 次提交
  18. 24 11月, 2009 2 次提交
  19. 16 10月, 2009 7 次提交
  20. 27 4月, 2009 1 次提交
  21. 19 11月, 2008 1 次提交
  22. 13 10月, 2008 1 次提交
  23. 26 7月, 2008 1 次提交
  24. 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
  25. 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
  26. 17 1月, 2008 1 次提交
  27. 11 12月, 2007 1 次提交
  28. 20 10月, 2007 1 次提交