mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-22 17:01:14 +00:00
dw_dmac: Change value of DWC_MAX_COUNT to 4095.
Every descriptor can transfer a maximum count of 4095 (12 bits, in control reg), So we must have DWC_MAX_COUNT as 4095 instead of 2048. Signed-off-by: Viresh Kumar <viresh.kumar@st.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
This commit is contained in:
parent
a02274564d
commit
418e740706
1 changed files with 2 additions and 3 deletions
|
@ -47,14 +47,13 @@
|
|||
|
||||
/*
|
||||
* This is configuration-dependent and usually a funny size like 4095.
|
||||
* Let's round it down to the nearest power of two.
|
||||
*
|
||||
* Note that this is a transfer count, i.e. if we transfer 32-bit
|
||||
* words, we can do 8192 bytes per descriptor.
|
||||
* words, we can do 16380 bytes per descriptor.
|
||||
*
|
||||
* This parameter is also system-specific.
|
||||
*/
|
||||
#define DWC_MAX_COUNT 2048U
|
||||
#define DWC_MAX_COUNT 4095U
|
||||
|
||||
/*
|
||||
* Number of descriptors to allocate for each channel. This should be
|
||||
|
|
Loading…
Reference in a new issue