Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
bd6fe9e1
Commit
bd6fe9e1
authored
Sep 12, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge master.kernel.org:/home/rmk/linux-2.6-mmc
parents
862aad56
210ce2a7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
229 additions
and
235 deletions
+229
-235
drivers/mmc/wbsd.c
drivers/mmc/wbsd.c
+218
-223
drivers/mmc/wbsd.h
drivers/mmc/wbsd.h
+11
-12
No files found.
drivers/mmc/wbsd.c
View file @
bd6fe9e1
...
...
@@ -1136,6 +1136,7 @@ static void wbsd_tasklet_card(unsigned long param)
{
struct
wbsd_host
*
host
=
(
struct
wbsd_host
*
)
param
;
u8
csr
;
int
delay
=
-
1
;
spin_lock
(
&
host
->
lock
);
...
...
@@ -1155,16 +1156,8 @@ static void wbsd_tasklet_card(unsigned long param)
DBG
(
"Card inserted
\n
"
);
host
->
flags
|=
WBSD_FCARD_PRESENT
;
spin_unlock
(
&
host
->
lock
);
/*
* Delay card detection to allow electrical connections
* to stabilise.
*/
mmc_detect_change
(
host
->
mmc
,
msecs_to_jiffies
(
500
));
delay
=
500
;
}
else
spin_unlock
(
&
host
->
lock
);
}
else
if
(
host
->
flags
&
WBSD_FCARD_PRESENT
)
{
...
...
@@ -1181,15 +1174,17 @@ static void wbsd_tasklet_card(unsigned long param)
tasklet_schedule
(
&
host
->
finish_tasklet
);
}
delay
=
0
;
}
/*
* Unlock first since we might get a call back.
*/
spin_unlock
(
&
host
->
lock
);
mmc_detect_change
(
host
->
mmc
,
0
);
}
else
spin_unlock
(
&
host
->
lock
);
if
(
delay
!=
-
1
)
mmc_detect_change
(
host
->
mmc
,
msecs_to_jiffies
(
delay
));
}
static
void
wbsd_tasklet_fifo
(
unsigned
long
param
)
...
...
drivers/mmc/wbsd.h
View file @
bd6fe9e1
...
...
@@ -184,6 +184,5 @@ struct wbsd_host
struct
tasklet_struct
finish_tasklet
;
struct
tasklet_struct
block_tasklet
;
struct
timer_list
detect_timer
;
/* Card detection timer */
struct
timer_list
ignore_timer
;
/* Ignore detection timer */
};
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