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
c5841798
Commit
c5841798
authored
Jan 04, 2011
by
Chris Ball
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmc: Explain why we make adjacent mmc_bus_{put,get} calls during rescan.
Signed-off-by:
Chris Ball
<
cjb@laptop.org
>
parent
807e8e40
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
drivers/mmc/core/core.c
drivers/mmc/core/core.c
+4
-2
No files found.
drivers/mmc/core/core.c
View file @
c5841798
...
@@ -1531,9 +1531,11 @@ void mmc_rescan(struct work_struct *work)
...
@@ -1531,9 +1531,11 @@ void mmc_rescan(struct work_struct *work)
&&
mmc_card_is_removable
(
host
))
&&
mmc_card_is_removable
(
host
))
host
->
bus_ops
->
detect
(
host
);
host
->
bus_ops
->
detect
(
host
);
/*
* Let mmc_bus_put() free the bus/bus_ops if we've found that
* the card is no longer present.
*/
mmc_bus_put
(
host
);
mmc_bus_put
(
host
);
mmc_bus_get
(
host
);
mmc_bus_get
(
host
);
/* if there still is a card present, stop here */
/* if there still is a card present, stop here */
...
...
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