26 Oct, 2015

1 commit

  • There is at least one board on the market, i.e. Intel Galileo Gen2, that uses
    _ADR to distinguish the devices under one actual device. Due to this we have to
    improve the quirk in the MFD core to handle that board.

    Acked-by: Rafael J. Wysocki
    Acked-by: Lee Jones
    Signed-off-by: Andy Shevchenko
    Signed-off-by: Wolfram Sang

    Andy Shevchenko
     

19 Jun, 2015

2 commits


01 May, 2015

1 commit


18 Mar, 2015

1 commit


22 Jan, 2015

1 commit


26 Sep, 2014

1 commit

  • 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: Mika Westerberg
    Reviewed-by: Darren Hart
    Signed-off-by: Lee Jones

    Mika Westerberg
     

12 Jul, 2014

1 commit

  • As of:

    4845934 ACPI / scan: use platform bus type by default for _HID enumeration

    ACPI uses the platform bus by default, changing the opt-in to an opt-out
    policy, eliminating the acpi_platform_device_ids table and replacing it
    with forbidden_id_list[].

    Remove the qualifying paragraph from the acpi/enumeration documentation
    as it no longer applies.

    Reported-by: Max Eliaser
    Signed-off-by: Darren Hart
    Signed-off-by: Rafael J. Wysocki

    Darren Hart
     

23 May, 2014

1 commit

  • Commit fd8e198cfcaa ("Documentation: gpiolib: document new interface")
    moved Documentation/gpio.txt to Documentation/gpio/gpio-legacy.txt and added
    new documents for descriptor-based interface so fix the the location here to
    point Documentation/gpio/ since that what commit ccb6fbb99020
    ("Documentation / ACPI: update to GPIO descriptor API") was looking for.

    Signed-off-by: Jarkko Nikula
    Acked-by: Mika Westerberg
    Signed-off-by: Linus Walleij

    Jarkko Nikula
     

08 Jan, 2014

1 commit


20 Oct, 2013

1 commit

  • In addition to the existing ACPI specific GPIO interface, document the new
    descriptor based GPIO interface in Documentation/acpi/enumeration.txt, so
    it is clear that this new interface is preferred over the ACPI specific
    version.

    Signed-off-by: Mika Westerberg
    Acked-by: Rafael J. Wysocki
    Reviewed-by: Alexandre Courbot
    Signed-off-by: Linus Walleij

    Mika Westerberg
     

07 Sep, 2013

1 commit

  • Pull trivial tree from Jiri Kosina:
    "The usual trivial updates all over the tree -- mostly typo fixes and
    documentation updates"

    * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (52 commits)
    doc: Documentation/cputopology.txt fix typo
    treewide: Convert retrun typos to return
    Fix comment typo for init_cma_reserved_pageblock
    Documentation/trace: Correcting and extending tracepoint documentation
    mm/hotplug: fix a typo in Documentation/memory-hotplug.txt
    power: Documentation: Update s2ram link
    doc: fix a typo in Documentation/00-INDEX
    Documentation/printk-formats.txt: No casts needed for u64/s64
    doc: Fix typo "is is" in Documentations
    treewide: Fix printks with 0x%#
    zram: doc fixes
    Documentation/kmemcheck: update kmemcheck documentation
    doc: documentation/hwspinlock.txt fix typo
    PM / Hibernate: add section for resume options
    doc: filesystems : Fix typo in Documentations/filesystems
    scsi/megaraid fixed several typos in comments
    ppc: init_32: Fix error typo "CONFIG_START_KERNEL"
    treewide: Add __GFP_NOWARN to k.alloc calls with v.alloc fallbacks
    page_isolation: Fix a comment typo in test_pages_isolated()
    doc: fix a typo about irq affinity
    ...

    Linus Torvalds
     

23 Aug, 2013

2 commits

  • This follows what has already been done for the DeviceTree helpers. Move
    the ACPI helpers from drivers/acpi/acpi_i2c.c to the I2C core and update
    documentation accordingly.

    This also solves a problem reported by Jerry Snitselaar that we can't build
    the ACPI I2C helpers as a module.

    Signed-off-by: Mika Westerberg
    Acked-by: Rafael J. Wysocki
    Signed-off-by: Wolfram Sang

    Mika Westerberg
     
  • I2C of helpers used to live in of_i2c.c but experience (from SPI) shows
    that it is much cleaner to have this in the core. This also removes a
    circular dependency between the helpers and the core, and so we can
    finally register child nodes in the core instead of doing this manually
    in each driver. So, fix the drivers and documentation, too.

    Signed-off-by: Wolfram Sang

    Wolfram Sang
     

20 Aug, 2013

1 commit


10 May, 2013

1 commit

  • Pull slave-dmaengine updates from Vinod Koul:
    "This time we have dmatest improvements from Andy along with dw_dmac
    fixes. He has also done support for acpi for dmanegine.

    Also we have bunch of fixes going in DT support for dmanegine for
    various folks. Then Haswell and other ioat changes from Dave and
    SUDMAC support from Shimoda."

    * 'for-linus' of git://git.infradead.org/users/vkoul/slave-dma: (53 commits)
    dma: tegra: implement suspend/resume callbacks
    dma:of: Use a mutex to protect the of_dma_list
    dma: of: Fix of_node reference leak
    dmaengine: sirf: move driver init from module_init to subsys_initcall
    sudmac: add support for SUDMAC
    dma: sh: add Kconfig
    at_hdmac: move to generic DMA binding
    ioatdma: ioat3_alloc_sed can be static
    ioatdma: Adding write back descriptor error status support for ioatdma 3.3
    ioatdma: S1200 platforms ioatdma channel 2 and 3 falsely advertise RAID cap
    ioatdma: Adding support for 16 src PQ ops and super extended descriptors
    ioatdma: Removing hw bug workaround for CB3.x .2 and earlier
    dw_dmac: add ACPI support
    dmaengine: call acpi_dma_request_slave_channel as well
    dma: acpi-dma: introduce ACPI DMA helpers
    dma: of: Remove unnecessary list_empty check
    DMA: OF: Check properties value before running be32_to_cpup() on it
    DMA: of: Constant names
    ioatdma: skip silicon bug workaround for pq_align for cb3.3
    ioatdma: Removing PQ val disable for cb3.3
    ...

    Linus Torvalds
     

16 Apr, 2013

1 commit

  • 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: Andy Shevchenko
    Reviewed-by: Mika Westerberg
    Acked-by: Rafael J. Wysocki
    Signed-off-by: Vinod Koul

    Andy Shevchenko
     

12 Apr, 2013

1 commit

  • Instead of open-coding ACPI GPIO resource lookup in each driver, we provide
    a helper function analogous to Device Tree version that allows drivers to
    specify which GPIO resource they are interested (using an index to the GPIO
    resources). The function then finds out the correct resource, translates
    the ACPI GPIO number to the corresponding Linux GPIO number and returns
    that.

    Signed-off-by: Mika Westerberg
    Acked-by: Rafael J. Wysocki
    Signed-off-by: Linus Walleij

    Mika Westerberg
     

13 Feb, 2013

1 commit


04 Jan, 2013

1 commit

  • 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
    Signed-off-by: Greg Kroah-Hartman

    Greg Kroah-Hartman
     

08 Dec, 2012

1 commit

  • Add a document that describes how to take advantage of ACPI enumeration for
    buses like platform, I2C and SPI. In addition to that we document how to
    translate ACPI GpioIo and GpioInt resources to be useful in Linux device
    drivers.

    Signed-off-by: Mika Westerberg
    Signed-off-by: Rafael J. Wysocki

    Mika Westerberg