Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
NuttX RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
f4grx
NuttX RTOS
Commits
be8fe9a3
Commit
be8fe9a3
authored
10 years ago
by
Gregory Nutt
Browse files
Options
Downloads
Patches
Plain Diff
Costmetic update to comments
parent
941df094
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/mmcsd/mmcsd_sdio.c
+8
-4
8 additions, 4 deletions
drivers/mmcsd/mmcsd_sdio.c
with
8 additions
and
4 deletions
drivers/mmcsd/mmcsd_sdio.c
+
8
−
4
View file @
be8fe9a3
...
...
@@ -2312,7 +2312,7 @@ static void mmcsd_mediachange(FAR void *arg)
if
(
SDIO_PRESENT
(
priv
->
dev
))
{
/* No... process the card insertion. This could cause chaos if we think
* that a card is already present and there are mounted filesystems!
* that a card is already present and there are mounted file
systems!
* NOTE that mmcsd_probe() will always re-enable callbacks appropriately.
*/
...
...
@@ -2374,7 +2374,7 @@ static int mmcsd_widebus(FAR struct mmcsd_state_s *priv)
}
/* Then send ACMD42 with the argument to disconnect the CD/DAT3
* pullup
* pull
-
up
*
* TODO: May want to disable, then re-enable around data transfers
* to support card detection"
...
...
@@ -2455,7 +2455,7 @@ static int mmcsd_mmcinitialize(FAR struct mmcsd_state_s *priv)
* slot.
*
* Send CMD2, ALL_SEND_CID. This implementation supports only one MMC slot.
* If mul
i
tple cards were installed, each card would respond to CMD2 by
* If mult
i
ple cards were installed, each card would respond to CMD2 by
* sending its CID (only one card completes the response at a time). The
* driver should send CMD2 and assign an RCAs until no response to
* ALL_SEND_CID is received. CMD2 causes transition to identification state/
...
...
@@ -3023,6 +3023,10 @@ static int mmcsd_probe(FAR struct mmcsd_state_s *priv)
SDIO_CALLBACKENABLE
(
priv
->
dev
,
SDIOMEDIA_EJECTED
);
}
/* REVISIT: There is a problem here. If mmcsd_initialize() returns a
* failure, then no events are initialized.
*/
}
/* In any event, we have probed this card */
...
...
@@ -3123,7 +3127,7 @@ static int mmcsd_hwinitialize(FAR struct mmcsd_state_s *priv)
*
* 1. Mechanical insertion that can be detected using the WP switch
* that is closed when a card is inserted into then SD slot (SD
* "hot insertion capable" card conector only)
* "hot insertion capable" card con
n
ector only)
* 2. Electrical insertion that can be sensed using the pull-up resistor
* on CD/DAT3 (both SD/MMC),
* 3. Or by periodic attempts to initialize the card from software.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment