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
fc8e3d17
Commit
fc8e3d17
authored
Oct 30, 2005
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge master.kernel.org:/home/rmk/linux-2.6-mmc
parents
ad2c1604
936d8592
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
drivers/mmc/mmc_block.c
drivers/mmc/mmc_block.c
+8
-2
drivers/mmc/pxamci.c
drivers/mmc/pxamci.c
+0
-1
No files found.
drivers/mmc/mmc_block.c
View file @
fc8e3d17
...
...
@@ -85,6 +85,12 @@ static void mmc_blk_put(struct mmc_blk_data *md)
up
(
&
open_lock
);
}
static
inline
int
mmc_blk_readonly
(
struct
mmc_card
*
card
)
{
return
mmc_card_readonly
(
card
)
||
!
(
card
->
csd
.
cmdclass
&
CCC_BLOCK_WRITE
);
}
static
int
mmc_blk_open
(
struct
inode
*
inode
,
struct
file
*
filp
)
{
struct
mmc_blk_data
*
md
;
...
...
@@ -97,7 +103,7 @@ static int mmc_blk_open(struct inode *inode, struct file *filp)
ret
=
0
;
if
((
filp
->
f_mode
&
FMODE_WRITE
)
&&
mmc_
card
_readonly
(
md
->
queue
.
card
))
mmc_
blk
_readonly
(
md
->
queue
.
card
))
ret
=
-
EROFS
;
}
...
...
@@ -410,7 +416,7 @@ static int mmc_blk_probe(struct mmc_card *card)
printk
(
KERN_INFO
"%s: %s %s %dKiB %s
\n
"
,
md
->
disk
->
disk_name
,
mmc_card_id
(
card
),
mmc_card_name
(
card
),
(
card
->
csd
.
capacity
<<
card
->
csd
.
read_blkbits
)
/
1024
,
mmc_
card
_readonly
(
card
)
?
"(ro)"
:
""
);
mmc_
blk
_readonly
(
card
)
?
"(ro)"
:
""
);
mmc_set_drvdata
(
card
,
md
);
add_disk
(
md
->
disk
);
...
...
drivers/mmc/pxamci.c
View file @
fc8e3d17
...
...
@@ -29,7 +29,6 @@
#include <asm/dma.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/scatterlist.h>
#include <asm/sizes.h>
...
...
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