Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
71f021cf
Commit
71f021cf
authored
Oct 24, 2018
by
Vinod Koul
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'topic/stm' into for-linus
parents
4b4447bf
cc832dc8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
14 deletions
+6
-14
drivers/dma/stm32-dma.c
drivers/dma/stm32-dma.c
+6
-14
No files found.
drivers/dma/stm32-dma.c
View file @
71f021cf
...
@@ -308,20 +308,12 @@ static bool stm32_dma_fifo_threshold_is_allowed(u32 burst, u32 threshold,
...
@@ -308,20 +308,12 @@ static bool stm32_dma_fifo_threshold_is_allowed(u32 burst, u32 threshold,
static
bool
stm32_dma_is_burst_possible
(
u32
buf_len
,
u32
threshold
)
static
bool
stm32_dma_is_burst_possible
(
u32
buf_len
,
u32
threshold
)
{
{
switch
(
threshold
)
{
/*
case
STM32_DMA_FIFO_THRESHOLD_FULL
:
* Buffer or period length has to be aligned on FIFO depth.
if
(
buf_len
>=
STM32_DMA_MAX_BURST
)
* Otherwise bytes may be stuck within FIFO at buffer or period
return
true
;
* length.
else
*/
return
false
;
return
((
buf_len
%
((
threshold
+
1
)
*
4
))
==
0
);
case
STM32_DMA_FIFO_THRESHOLD_HALFFULL
:
if
(
buf_len
>=
STM32_DMA_MAX_BURST
/
2
)
return
true
;
else
return
false
;
default:
return
false
;
}
}
}
static
u32
stm32_dma_get_best_burst
(
u32
buf_len
,
u32
max_burst
,
u32
threshold
,
static
u32
stm32_dma_get_best_burst
(
u32
buf_len
,
u32
max_burst
,
u32
threshold
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment