1. 22 6月, 2017 4 次提交
  2. 30 3月, 2017 1 次提交
  3. 29 3月, 2017 11 次提交
  4. 07 2月, 2017 3 次提交
  5. 26 6月, 2016 1 次提交
  6. 28 4月, 2016 1 次提交
  7. 09 4月, 2016 1 次提交
  8. 18 3月, 2016 1 次提交
  9. 11 3月, 2016 1 次提交
  10. 09 3月, 2016 1 次提交
    • H
      device property: fwnode->secondary may contain ERR_PTR(-ENODEV) · 77812034
      Heikki Krogerus 提交于
      This fixes BUG triggered when fwnode->secondary is not NULL,
      but has ERR_PTR(-ENODEV) instead.
      
      BUG: unable to handle kernel paging request at ffffffffffffffed
      IP: [<ffffffff81677b86>] __fwnode_property_read_string+0x26/0x160
      PGD 200e067 PUD 2010067 PMD 0
      Oops: 0000 [#1] SMP KASAN
      Modules linked in: dwc3_pci(+) dwc3
      CPU: 0 PID: 1138 Comm: modprobe Not tainted 4.5.0-rc5+ #61
      task: ffff88015aaf5b00 ti: ffff88007b958000 task.ti: ffff88007b958000
      RIP: 0010:[<ffffffff81677b86>]  [<ffffffff81677b86>] __fwnode_property_read_string+0x26/0x160
      RSP: 0018:ffff88007b95eff8  EFLAGS: 00010246
      RAX: fffffbfffffffffd RBX: ffffffffffffffed RCX: ffff88015999cd37
      RDX: dffffc0000000000 RSI: ffffffff81e11bc0 RDI: ffffffffffffffed
      RBP: ffff88007b95f020 R08: 0000000000000000 R09: 0000000000000000
      R10: ffff88007b90f7cf R11: 0000000000000000 R12: ffff88007b95f0a0
      R13: 00000000fffffffa R14: ffffffff81e11bc0 R15: ffff880159ea37a0
      FS:  00007ff35f46c700(0000) GS:ffff88015b800000(0000) knlGS:0000000000000000
      CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
      CR2: ffffffffffffffed CR3: 000000007b8be000 CR4: 00000000001006f0
      Stack:
       ffff88015999cd20 ffffffff81e11bc0 ffff88007b95f0a0 ffff88007b383dd8
       ffff880159ea37a0 ffff88007b95f048 ffffffff81677d03 ffff88007b952460
       ffffffff81e11bc0 ffff88007b95f0a0 ffff88007b95f070 ffffffff81677d40
      Call Trace:
       [<ffffffff81677d03>] fwnode_property_read_string+0x43/0x50
       [<ffffffff81677d40>] device_property_read_string+0x30/0x40
      ...
      
      Fixes: 362c0b30 (device property: Fallback to secondary fwnode if primary misses the property)
      Signed-off-by: NHeikki Krogerus <heikki.krogerus@linux.intel.com>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      77812034
  11. 01 1月, 2016 2 次提交
  12. 07 12月, 2015 7 次提交
  13. 07 11月, 2015 2 次提交
  14. 25 9月, 2015 1 次提交
  15. 15 9月, 2015 2 次提交
    • R
      ACPI / property: Extend device_get_next_child_node() to data-only nodes · 504a3374
      Rafael J. Wysocki 提交于
      Make device_get_next_child_node() work with ACPI data-only subnodes
      introduced previously.
      
      Namely, replace acpi_get_next_child() with acpi_get_next_subnode()
      that can handle (and return) child device objects as well as child
      data-only subnodes of the given device and modify the ACPI part
      of the GPIO subsystem to handle data-only subnodes returned by it.
      
      To that end, introduce acpi_node_get_gpiod() taking a struct
      fwnode_handle pointer as the first argument.  That argument may
      point to an ACPI device object as well as to a data-only subnode
      and the function should do the right thing (ie. look for the matching
      GPIO descriptor correctly) in either case.
      
      Next, modify fwnode_get_named_gpiod() to use acpi_node_get_gpiod()
      instead of acpi_get_gpiod_by_index() which automatically causes
      devm_get_gpiod_from_child() to work with ACPI data-only subnodes
      that may be returned by device_get_next_child_node() which in turn
      is required by the users of that function (the gpio_keys_polled
      and gpio-leds drivers).
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Tested-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Acked-by: NLinus Walleij <linus.walleij@linaro.org>
      504a3374
    • R
      ACPI / property: Extend fwnode_property_* to data-only subnodes · 3a7a2ab8
      Rafael J. Wysocki 提交于
      Modify is_acpi_node() to return "true" for ACPI data-only subnodes as
      well as for ACPI device objects and change the name of to_acpi_node()
      to to_acpi_device_node() so it is clear that it covers ACPI device
      objects only.  Accordingly, introduce to_acpi_data_node() to cover
      data-only subnodes in an analogous way.
      
      With that, make the fwnode_property_* family of functions work with
      ACPI data-only subnodes introduced previously.
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Tested-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      3a7a2ab8
  16. 09 9月, 2015 1 次提交