14 Jan, 2015

1 commit

  • In case of PCI driver we will get a warning:
    dw_dmac_pci 0000:00:18.0: Unbalanced pm_runtime_enable!
    dw_dmac_pci 0000:00:18.0: DesignWare DMA Controller, 8 channels

    This happens due to pm_runtime_enable() call from the driver when PM runtime is
    enabled by core.

    This patch moves that call to the platform driver where it might make sense.

    Fixes: bb32baf76e56 (dmaengine: dw: enable runtime PM)
    Signed-off-by: Andy Shevchenko
    Signed-off-by: Vinod Koul

    Andy Shevchenko
     

15 Oct, 2014

1 commit


11 Sep, 2014

3 commits

  • On BayTrail platform DMA is not functional in the PCI mode, whereby it always
    failed and exit at the point when it tries to get a clock. It causes the PCI
    mode probe to exit with the error message:
    dw_dmac_pci: probe of 0000:00:1e.0 failed with error -2

    This patch moves clock operations to where it belongs to. Thus, the clock is
    provided only in ACPI / non-PCI cases.

    Reported-by: Chew, Chiau Ee
    Signed-off-by: Andy Shevchenko
    Signed-off-by: Vinod Koul

    Andy Shevchenko
     
  • The introduced filter function would be reused in the ACPI and DT cases since
    in those cases we have to apply mandatory data to the requested channel. Thus,
    patch moves platform driver to use it in that case.

    The function unlikely can't be used by users of the driver due to an implicit
    dependency to the dw_dmac_core module.

    Signed-off-by: Andy Shevchenko
    Signed-off-by: Vinod Koul

    Andy Shevchenko
     
  • Instead of one request line member let's use both source and destination ones.
    Usually we have no such hardware except Atmel MMC controller found on AVR32
    platform (see arch/avr32/mach-at32ap/at32ap700x.c and
    drivers/mmc/host/atmel-mci.c).

    This patch removes slave_id usage since it'll be removed from the generic
    structure in later. This breaks the non-ACPI / non-DT cases for the users of
    the driver, i.e. SPI and HSUART. However, these cases mean only PCI enumerated
    devices for now, which is anyway broken (considering more than one DMA
    controller in the system) and this patch series is intended to fix that
    eventually.

    The ACPI and DT cases shall be aware of the channel direction when setting
    request lines, but this is a minor problem that would be addressed in future.

    Suggested-by: Arnd Bergmann
    Signed-off-by: Andy Shevchenko
    Signed-off-by: Vinod Koul

    Andy Shevchenko
     

07 May, 2014

1 commit


31 Oct, 2013

1 commit


05 Aug, 2013

1 commit

  • In rare cases (mostly for the testing purposes) the dw_dmac driver might be
    compiled as a module as well as the other LPSS device drivers (I2C, SPI,
    HSUART). When udev handles the event of the devices appearing the dw_dmac
    module is missing. This patch will fix that.

    Signed-off-by: Andy Shevchenko
    Acked-by: Viresh Kumar
    Signed-off-by: Vinod Koul

    Andy Shevchenko
     

05 Jul, 2013

1 commit