Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180443
b: refs/heads/master
c: c286d03
h: refs/heads/master
i:
  180441: d270df7
  180439: f63dc2d
v: v3
  • Loading branch information
Johan Kristell authored and Linus Torvalds committed Feb 11, 2010
1 parent 7be5c4c commit 63785d0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 93716b9470fbfd9efdc7d0f2445cb34635de3f6d
refs/heads/master: c286d03cce118e9fb8dda8da43f9131c169c5a75
9 changes: 6 additions & 3 deletions trunk/drivers/mmc/card/mmc_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ static void mmc_test_prepare_mrq(struct mmc_test_card *test,
}

mrq->cmd->arg = dev_addr;
if (!mmc_card_blockaddr(test->card))
mrq->cmd->arg <<= 9;

mrq->cmd->flags = MMC_RSP_R1 | MMC_CMD_ADTC;

if (blocks == 1)
Expand Down Expand Up @@ -190,7 +193,7 @@ static int __mmc_test_prepare(struct mmc_test_card *test, int write)
}

for (i = 0;i < BUFFER_SIZE / 512;i++) {
ret = mmc_test_buffer_transfer(test, test->buffer, i * 512, 512, 1);
ret = mmc_test_buffer_transfer(test, test->buffer, i, 512, 1);
if (ret)
return ret;
}
Expand Down Expand Up @@ -219,7 +222,7 @@ static int mmc_test_cleanup(struct mmc_test_card *test)
memset(test->buffer, 0, 512);

for (i = 0;i < BUFFER_SIZE / 512;i++) {
ret = mmc_test_buffer_transfer(test, test->buffer, i * 512, 512, 1);
ret = mmc_test_buffer_transfer(test, test->buffer, i, 512, 1);
if (ret)
return ret;
}
Expand Down Expand Up @@ -426,7 +429,7 @@ static int mmc_test_transfer(struct mmc_test_card *test,
for (i = 0;i < sectors;i++) {
ret = mmc_test_buffer_transfer(test,
test->buffer + i * 512,
dev_addr + i * 512, 512, 0);
dev_addr + i, 512, 0);
if (ret)
return ret;
}
Expand Down

0 comments on commit 63785d0

Please sign in to comment.