dmaengine: pl08x: allocate OF slave channel data at probe time
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 4 Apr 2016 20:44:59 +0000 (22:44 +0200)
committerVinod Koul <vinod.koul@intel.com>
Tue, 5 Apr 2016 23:53:41 +0000 (16:53 -0700)
commitf9cd476123ced488e628339becedb2cf3243a58a
tree7b017a4a63b94bcb7e032b75e5fd432dcd0c694d
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca
dmaengine: pl08x: allocate OF slave channel data at probe time

The current OF translation of channels can never work with
any DMA client using the DMA channels directly: the only way
to get the channels initialized properly is in the
dma_async_device_register() call, where chan->dev etc is
allocated and initialized.

Allocate and initialize all possible DMA channels and
only augment a target channel with the periph_buses at
of_xlate(). Remove some const settings to make things work.

Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
Tested-by: Joachim Eastwood <manabian@gmail.com>
Tested-by: Johannes Stezenbach <js@sig21.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/amba-pl08x.c
include/linux/amba/pl08x.h