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
a7f2eef8
Commit
a7f2eef8
authored
Sep 18, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MMC] Save MMC card raw CSD structure.
parent
62a78432
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
0 deletions
+3
-0
drivers/mmc/mmc.c
drivers/mmc/mmc.c
+2
-0
include/linux/mmc/card.h
include/linux/mmc/card.h
+1
-0
No files found.
drivers/mmc/mmc.c
View file @
a7f2eef8
...
...
@@ -523,6 +523,8 @@ static void mmc_read_csds(struct mmc_host *host)
continue
;
}
memcpy
(
card
->
raw_csd
,
cmd
.
resp
,
sizeof
(
card
->
raw_csd
));
mmc_decode_csd
(
&
card
->
csd
,
cmd
.
resp
);
mmc_decode_cid
(
&
card
->
cid
,
card
->
raw_cid
);
}
...
...
include/linux/mmc/card.h
View file @
a7f2eef8
...
...
@@ -46,6 +46,7 @@ struct mmc_card {
#define MMC_STATE_PRESENT (1<<0)
#define MMC_STATE_DEAD (1<<1)
u32
raw_cid
[
4
];
/* raw card CID */
u32
raw_csd
[
4
];
/* raw card CSD */
struct
mmc_cid
cid
;
/* card identification */
struct
mmc_csd
csd
;
/* card specific */
};
...
...
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