]> git.baikalelectronics.ru Git - kernel.git/commit
ata: sata_dwc_460ex: use "dmas" DT property to find dma channel
authorMans Rullgard <mans@mansr.com>
Tue, 26 Apr 2016 09:03:10 +0000 (12:03 +0300)
committerTejun Heo <tj@kernel.org>
Tue, 10 May 2016 16:29:19 +0000 (12:29 -0400)
commitb791fe5e850db37e62848c33f0ef16a56925c1fb
tree560a31574c694d1cfa747967ff12ed731a71665a
parentc3e4486e0c2c2e84457081948e9a74ee3eb4a2b6
ata: sata_dwc_460ex: use "dmas" DT property to find dma channel

Currently this driver only works with a DesignWare DMA engine which it
registers manually using the second "reg" address range and interrupt
number from the DT node.

This patch makes the driver instead use the "dmas" property if present,
otherwise optionally falling back on the old way so existing device
trees can continue to work.

With this change, there is no longer any reason to depend on the 460EX
machine type so drop that from Kconfig.

Tested-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
drivers/ata/Kconfig
drivers/ata/sata_dwc_460ex.c