1. 18 1月, 2013 1 次提交
  2. 06 1月, 2013 2 次提交
  3. 21 12月, 2012 1 次提交
  4. 20 12月, 2012 1 次提交
  5. 13 12月, 2012 2 次提交
  6. 12 12月, 2012 6 次提交
  7. 11 12月, 2012 4 次提交
  8. 06 12月, 2012 1 次提交
  9. 29 11月, 2012 1 次提交
  10. 27 11月, 2012 4 次提交
  11. 24 11月, 2012 2 次提交
  12. 21 11月, 2012 2 次提交
    • D
      regmap: introduce tables for readable/writeable/volatile/precious checks · 76aad392
      Davide Ciminaghi 提交于
      Many of the regmap enabled drivers implementing one or more of the
      readable, writeable, volatile and precious methods use the same code
      pattern:
      
      	return ((reg >= X && reg <= Y) || (reg >= W && reg <= Z) || ...)
      
      Switch to a data driven approach, using tables to describe
      readable/writeable/volatile and precious registers ranges instead.
      The table based check can still be overridden by passing the usual function
      pointers via struct regmap_config.
      Signed-off-by: NDavide Ciminaghi <ciminaghi@gnudd.com>
      Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
      76aad392
    • R
      ACPI / platform: Initialize ACPI handles of platform devices in advance · 863f9f30
      Rafael J. Wysocki 提交于
      The current platform device creation and registration code in
      acpi_create_platform_device() is quite convoluted.  This function
      takes an ACPI device node as an argument and eventually calls
      platform_device_register_resndata() to create and register a
      platform device object on the basis of the information contained
      in that code.  However, it doesn't associate the new platform
      device with the ACPI node directly, but instead it relies on
      acpi_platform_notify(), called from within device_add(), to find
      that ACPI node again with the help of acpi_platform_find_device()
      and acpi_platform_match() and then attach the new platform device
      to it.  This causes an additional ACPI namespace walk to happen and
      is clearly suboptimal.
      
      Use the observation that it is now possible to initialize the ACPI
      handle of a device before calling device_add() for it to make this
      code more straightforward.  Namely, add a new field to struct
      platform_device_info allowing us to pass the ACPI handle of interest
      to platform_device_register_full(), which will then use it to
      initialize the new device's ACPI handle before registering it.
      This will cause acpi_platform_notify() to use the ACPI handle from
      the device structure directly instead of using the .find_device()
      routine provided by the device's bus type.  In consequence,
      acpi_platform_bus, acpi_platform_find_device(), and
      acpi_platform_match() are not necessary any more, so remove them.
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Reviewed-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Acked-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      863f9f30
  13. 16 11月, 2012 1 次提交
  14. 15 11月, 2012 12 次提交