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
nexedi
linux
Commits
3c409b15
Commit
3c409b15
authored
Mar 19, 2003
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Fix more timeouts to use correct type.
parent
c7416967
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
drivers/char/nwflash.c
drivers/char/nwflash.c
+5
-4
No files found.
drivers/char/nwflash.c
View file @
3c409b15
...
@@ -354,6 +354,7 @@ static int erase_block(int nBlock)
...
@@ -354,6 +354,7 @@ static int erase_block(int nBlock)
{
{
volatile
unsigned
int
c1
;
volatile
unsigned
int
c1
;
volatile
unsigned
char
*
pWritePtr
;
volatile
unsigned
char
*
pWritePtr
;
unsigned
long
timeout
;
int
temp
,
temp1
;
int
temp
,
temp1
;
/*
/*
...
@@ -406,9 +407,9 @@ static int erase_block(int nBlock)
...
@@ -406,9 +407,9 @@ static int erase_block(int nBlock)
/*
/*
* wait while erasing in process (up to 10 sec)
* wait while erasing in process (up to 10 sec)
*/
*/
t
emp
=
jiffies
+
10
*
HZ
;
t
imeout
=
jiffies
+
10
*
HZ
;
c1
=
0
;
c1
=
0
;
while
(
!
(
c1
&
0x80
)
&&
time_before
(
jiffies
,
t
emp
))
{
while
(
!
(
c1
&
0x80
)
&&
time_before
(
jiffies
,
t
imeout
))
{
flash_wait
(
HZ
/
100
);
flash_wait
(
HZ
/
100
);
/*
/*
* read any address
* read any address
...
@@ -466,8 +467,8 @@ static int write_block(unsigned long p, const char *buf, int count)
...
@@ -466,8 +467,8 @@ static int write_block(unsigned long p, const char *buf, int count)
unsigned
char
*
pWritePtr
;
unsigned
char
*
pWritePtr
;
unsigned
int
uAddress
;
unsigned
int
uAddress
;
unsigned
int
offset
;
unsigned
int
offset
;
unsigned
int
timeout
;
unsigned
long
timeout
;
unsigned
int
timeout1
;
unsigned
long
timeout1
;
/*
/*
* red LED == write
* red LED == write
...
...
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