Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
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-2.6.23
Commits
3bc87f24
Commit
3bc87f24
authored
Aug 27, 2006
by
Russell King
Committed by
Russell King
Sep 16, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MMC] Convert mmci to use data->blksz rather than data->blksz_bits
Signed-off-by:
Russell King
<
rmk+kernel@arm.linux.org.uk
>
parent
63b98080
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
drivers/mmc/mmci.c
drivers/mmc/mmci.c
+8
-4
No files found.
drivers/mmc/mmci.c
View file @
3bc87f24
...
...
@@ -69,12 +69,13 @@ static void mmci_start_data(struct mmci_host *host, struct mmc_data *data)
unsigned
int
datactrl
,
timeout
,
irqmask
;
unsigned
long
long
clks
;
void
__iomem
*
base
;
int
blksz_bits
;
DBG
(
host
,
"blksz %04x blks %04x flags %08x
\n
"
,
1
<<
data
->
blksz_bits
,
data
->
blocks
,
data
->
flags
);
data
->
blksz
,
data
->
blocks
,
data
->
flags
);
host
->
data
=
data
;
host
->
size
=
data
->
bl
ocks
<<
data
->
blksz_bits
;
host
->
size
=
data
->
bl
ksz
;
host
->
data_xfered
=
0
;
mmci_init_sg
(
host
,
data
);
...
...
@@ -88,7 +89,10 @@ static void mmci_start_data(struct mmci_host *host, struct mmc_data *data)
writel
(
timeout
,
base
+
MMCIDATATIMER
);
writel
(
host
->
size
,
base
+
MMCIDATALENGTH
);
datactrl
=
MCI_DPSM_ENABLE
|
data
->
blksz_bits
<<
4
;
blksz_bits
=
ffs
(
data
->
blksz
)
-
1
;
BUG_ON
(
1
<<
blksz_bits
!=
data
->
blksz
);
datactrl
=
MCI_DPSM_ENABLE
|
blksz_bits
<<
4
;
if
(
data
->
flags
&
MMC_DATA_READ
)
{
datactrl
|=
MCI_DPSM_DIRECTION
;
irqmask
=
MCI_RXFIFOHALFFULLMASK
;
...
...
@@ -145,7 +149,7 @@ mmci_data_irq(struct mmci_host *host, struct mmc_data *data,
unsigned
int
status
)
{
if
(
status
&
MCI_DATABLOCKEND
)
{
host
->
data_xfered
+=
1
<<
data
->
blksz_bits
;
host
->
data_xfered
+=
data
->
blksz
;
}
if
(
status
&
(
MCI_DATACRCFAIL
|
MCI_DATATIMEOUT
|
MCI_TXUNDERRUN
|
MCI_RXOVERRUN
))
{
if
(
status
&
MCI_DATACRCFAIL
)
...
...
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