Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC ADC 100M 14b 4cha - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
FMC ADC 100M 14b 4cha - Software
Commits
1614801b
Commit
1614801b
authored
Feb 20, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
driver: trivial: clarify a loop
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
401971dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
fa-zio-drv.c
kernel/fa-zio-drv.c
+3
-4
No files found.
kernel/fa-zio-drv.c
View file @
1614801b
...
...
@@ -853,7 +853,7 @@ static void zfat_irq_trg_fire(struct zio_cset *cset)
static
void
zfat_irq_acq_end
(
struct
zio_cset
*
cset
)
{
struct
fa_dev
*
fa
=
cset
->
zdev
->
priv_d
;
uint32_t
val
=
0
;
uint32_t
val
;
int
try
=
5
;
dev_dbg
(
&
fa
->
fmc
->
dev
,
"Acquisition done
\n
"
);
...
...
@@ -867,10 +867,9 @@ static void zfat_irq_acq_end(struct zio_cset *cset)
* If the state machine is _idle_ we can start the DMA transfer.
* If the state machine it is not idle, try again 5 times
*/
while
(
try
--
&&
val
!=
ZFA_STATE_IDLE
)
{
//udelay(2);
do
{
zfa_hardware_read
(
fa
,
ZFA_STA_FSM
,
&
val
);
}
}
while
(
try
--
&&
val
!=
ZFA_STATE_IDLE
);
if
(
val
!=
ZFA_STATE_IDLE
)
{
/* we can't DMA if the state machine is not idle */
...
...
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