]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP1: DMA: Correct the number of logical channels
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Tue, 3 Jan 2017 11:22:34 +0000 (13:22 +0200)
committerTony Lindgren <tony@atomide.com>
Fri, 6 Jan 2017 16:46:06 +0000 (08:46 -0800)
commit28eac1efbaa5d70f1d29bfda77833d0a64a861ba
tree99ba20f33c6fbb92d93d0346977d45590d9c19b0
parent1d1efc60a07e4152c32b270a552aa9557e1e5547
ARM: OMAP1: DMA: Correct the number of logical channels

OMAP1510, OMAP5910 and OMAP310 have only 9 logical channels.
OMAP1610, OMAP5912, OMAP1710, OMAP730, and OMAP850 have 16 logical channels
available.

The wired 17 for the lch_count must have been used to cover the 16 + 1
dedicated LCD channel, in reality we can only use 9 or 16 channels.

The d->chan_count is not used by the omap-dma stack, so we can skip the
setup. chan_count was configured to the number of logical channels and not
the actual number of physical channels anyways.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Aaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap1/dma.c