1. 22 1月, 2015 1 次提交
  2. 26 9月, 2014 1 次提交
    • M
      mfd: Add ACPI support · 6ab34301
      Mika Westerberg 提交于
      If an MFD device is backed by ACPI namespace, we should allow subdevice
      drivers to access their corresponding ACPI companion devices through normal
      means (e.g using ACPI_COMPANION()).
      
      This patch adds such support to the MFD core. If the MFD parent device
      does not specify any ACPI _HID/_CID for the child device, the child
      device will share the parent ACPI companion device. Otherwise the child
      device will be assigned with the corresponding ACPI companion, if found
      in the namespace below the parent.
      Signed-off-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Reviewed-by: NDarren Hart <dvhart@linux.intel.com>
      Signed-off-by: NLee Jones <lee.jones@linaro.org>
      6ab34301
  3. 12 7月, 2014 1 次提交
  4. 23 5月, 2014 1 次提交
  5. 08 1月, 2014 1 次提交
  6. 20 10月, 2013 1 次提交
  7. 23 8月, 2013 2 次提交
  8. 20 8月, 2013 1 次提交
  9. 16 4月, 2013 1 次提交
    • A
      dma: acpi-dma: introduce ACPI DMA helpers · 1b2e98bc
      Andy Shevchenko 提交于
      There is a new generic API to get a DMA channel for a slave device (commit
      9a6cecc8 "dmaengine: add helper function to request a slave DMA channel"). In
      similar fashion to the DT case (commit aa3da644 "of: Add generic device tree
      DMA helpers") we introduce helpers to the DMAC drivers which are enumerated by
      ACPI.
      
      The proposed extension provides the following API calls:
      	acpi_dma_controller_register(), devm_acpi_dma_controller_register()
      	acpi_dma_controller_free(), devm_acpi_dma_controller_free()
      	acpi_dma_simple_xlate()
      	acpi_dma_request_slave_chan_by_index()
      	acpi_dma_request_slave_chan_by_name()
      
      The first two should be used, for example, at probe() and remove() of the
      corresponding DMAC driver. At the register stage the DMAC driver supplies a
      custom xlate() function to translate a struct dma_spec into struct dma_chan.
      
      Accordingly to the ACPI Fixed DMA resource specification the only two pieces of
      information the slave device has are the channel id and the request line (slave
      id). Those two are represented by struct dma_spec. The
      acpi_dma_request_slave_chan_by_index() provides access to the specifix FixedDMA
      resource by its index. Whereas dma_request_slave_channel() takes a string
      parameter to identify the DMA resources required by the slave device. To make a
      slave device driver work with both DeviceTree and ACPI enumeration a simple
      convention is established: "tx" corresponds to the index 0 and "rx" to the
      index 1. In case of robust configuration the slave device driver unfortunately
      needs to call acpi_dma_request_slave_chan_by_index() directly.
      
      Additionally the patch provides "managed" version of the register/free pair
      i.e. devm_acpi_dma_controller_register() and devm_acpi_dma_controller_free().
      Usually, the driver uses only devm_acpi_dma_controller_register().
      Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
      Reviewed-by: NMika Westerberg <mika.westerberg@linux.intel.com>
      Acked-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      Signed-off-by: NVinod Koul <vinod.koul@intel.com>
      1b2e98bc
  10. 12 4月, 2013 1 次提交
  11. 13 2月, 2013 1 次提交
  12. 04 1月, 2013 1 次提交
    • G
      Documentation: remove __dev* attributes. · 63a29f74
      Greg Kroah-Hartman 提交于
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the use of __devinit, __devexit_p, __devinitdata,
      __devinitconst, and __devexit from the kernel documentation.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      63a29f74
  13. 08 12月, 2012 1 次提交