1. 03 5月, 2017 1 次提交
  2. 29 4月, 2017 1 次提交
  3. 28 4月, 2017 1 次提交
  4. 19 4月, 2017 1 次提交
  5. 23 3月, 2017 1 次提交
    • R
      of: Add function for generating a DT modalias with a newline · 0634c295
      Rob Herring 提交于
      The modalias sysfs attr is lacking a newline for DT aliases on platform
      devices. The macio and ibmebus correctly add the newline, but open code it.
      Introduce a new function, of_device_modalias(), that fills the buffer with
      the modalias including the newline and update users of the old
      of_device_get_modalias function.
      Signed-off-by: NRob Herring <robh@kernel.org>
      Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
      Cc: Paul Mackerras <paulus@samba.org>
      Cc: Michael Ellerman <mpe@ellerman.id.au>
      Cc: Frank Rowand <frowand.list@gmail.com>
      Cc: linuxppc-dev@lists.ozlabs.org
      Acked-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      0634c295
  6. 22 3月, 2017 1 次提交
    • R
      of: fix of_device_get_modalias returned length when truncating buffers · bcf54d53
      Rob Herring 提交于
      If the length of the modalias is greater than the buffer size, then the
      modalias is truncated. However the untruncated length is returned which
      will cause an error. Fix this to return the truncated length. If an error
      in the case was desired, then then we should just return -ENOMEM.
      
      The reality is no device will ever have 4KB of compatible strings to hit
      this case.
      Signed-off-by: NRob Herring <robh@kernel.org>
      Cc: Frank Rowand <frowand.list@gmail.com>
      bcf54d53
  7. 20 2月, 2017 1 次提交
  8. 15 2月, 2017 1 次提交
  9. 09 2月, 2017 3 次提交
  10. 24 1月, 2017 1 次提交
  11. 20 1月, 2017 2 次提交
  12. 17 1月, 2017 1 次提交
  13. 10 1月, 2017 1 次提交
  14. 09 1月, 2017 1 次提交
    • G
      of/irq: improve error report on irq discovery process failure · f1aa5484
      Guilherme G. Piccoli 提交于
      On PowerPC machines some PCI slots might not have level triggered
      interrupts capability (also know as level signaled interrupts),
      leading of_irq_parse_pci() to complain by presenting error messages
      on the kernel log - in this case, the properties "interrupt-map" and
      "interrupt-map-mask" are not present on device's node in the device
      tree.
      
      This patch introduces a different message for this specific case,
      and also reduces its level from error to warning. Besides, we warn
      (once) that possibly some PCI slots on the system have no level
      triggered interrupts available.
      We changed some error return codes too on function of_irq_parse_raw()
      in order other failure's cases can be presented in a more precise way.
      
      Before this patch, when an adapter was plugged in a slot without level
      interrupts capabilitiy on PowerPC, we saw a generic error message
      like this:
      
          [54.239] pci 002d:70:00.0: of_irq_parse_pci() failed with rc=-22
      
      Now, with this applied, we see the following specific message:
      
          [16.154] pci 0014:60:00.1: of_irq_parse_pci: no interrupt-map found,
          INTx interrupts not available
      
      Finally, we standardize the error path in of_irq_parse_raw() by always
      taking the fail path instead of returning directly from the loop.
      Signed-off-by: NGuilherme G. Piccoli <gpiccoli@linux.vnet.ibm.com>
      Signed-off-by: NRob Herring <robh@kernel.org>
      f1aa5484
  15. 05 1月, 2017 2 次提交
  16. 03 1月, 2017 2 次提交
  17. 13 12月, 2016 1 次提交
  18. 10 12月, 2016 3 次提交
  19. 30 11月, 2016 1 次提交
  20. 18 11月, 2016 3 次提交
  21. 15 11月, 2016 11 次提交