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
aefdf116
Commit
aefdf116
authored
Jan 02, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://bk.arm.linux.org.uk/linux-2.6-mmc
into ppc970.osdl.org:/home/torvalds/v2.6/linux
parents
2bd1b5e2
3b97cc29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
drivers/mmc/mmc.c
drivers/mmc/mmc.c
+4
-3
No files found.
drivers/mmc/mmc.c
View file @
aefdf116
...
@@ -301,14 +301,15 @@ static u32 mmc_select_voltage(struct mmc_host *host, u32 ocr)
...
@@ -301,14 +301,15 @@ static u32 mmc_select_voltage(struct mmc_host *host, u32 ocr)
#define UNSTUFF_BITS(resp,start,size) \
#define UNSTUFF_BITS(resp,start,size) \
({ \
({ \
const u32 __mask = (1 << (size)) - 1; \
const int __size = size; \
const u32 __mask = (__size < 32 ? 1 << __size : 0) - 1; \
const int __off = 3 - ((start) / 32); \
const int __off = 3 - ((start) / 32); \
const int __shft = (start) & 31; \
const int __shft = (start) & 31; \
u32 __res; \
u32 __res; \
\
\
__res = resp[__off] >> __shft; \
__res = resp[__off] >> __shft; \
if (
(size) + __shft >=
32) \
if (
__size + __shft >
32) \
__res |= resp[__off-1] << (
32 - __shft
); \
__res |= resp[__off-1] << (
(32 - __shft) % 32
); \
__res & __mask; \
__res & __mask; \
})
})
...
...
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