dmaengine: Fix allocation size for PL330 data buffer depth.
authorLiviu Dudau <Liviu.Dudau@arm.com>
Thu, 6 Nov 2014 17:20:12 +0000 (17:20 +0000)
committerVinod Koul <vinod.koul@intel.com>
Mon, 17 Nov 2014 07:31:22 +0000 (13:01 +0530)
commit1f0a5cbf61a54504236bbbe2c98b58e85f90e650
tree5bb9b25cf26025e1c35124e5e3092acd0108050c
parentc27f95568d1ed2573fc9c8848d741da63ca9a34e
dmaengine: Fix allocation size for PL330 data buffer depth.

The datasheet for PL330 says that the data buffer value in the CRD
register is 10bits wide. However, the value stored is "minus one",
which the driver corrects for. Maximum value that the data buffer
depth can have is 1024 lines, which requires 11 bits for storage.

While making updates I found printing the peripheral ID as a hex
value to be more useful as the datasheet shows the values that way.

Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/pl330.c
This page took 0.028008 seconds and 5 git commands to generate.