Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 53578
b: refs/heads/master
c: b855885
h: refs/heads/master
v: v3
  • Loading branch information
Pierre Ossman committed May 1, 2007
1 parent e8e9b35 commit 05f297b
Show file tree
Hide file tree
Showing 6 changed files with 401 additions and 556 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: b5af25bee2de2f6cd1ac74ba737cbc4f3d303e5d
refs/heads/master: b855885e3b60cf6f9452848712a62517b94583eb
13 changes: 5 additions & 8 deletions trunk/drivers/mmc/card/block.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,7 @@ static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)
struct mmc_blk_request brq;
int ret = 1, sg_pos, data_size;

if (mmc_card_claim_host(card))
goto flush_queue;
mmc_claim_host(card->host);

do {
struct mmc_command cmd;
Expand Down Expand Up @@ -357,7 +356,7 @@ static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)
spin_unlock_irq(&md->lock);
} while (ret);

mmc_card_release_host(card);
mmc_release_host(card->host);

return 1;

Expand Down Expand Up @@ -393,9 +392,7 @@ static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)
spin_unlock_irq(&md->lock);
}

flush_queue:

mmc_card_release_host(card);
mmc_release_host(card->host);

spin_lock_irq(&md->lock);
while (ret) {
Expand Down Expand Up @@ -526,12 +523,12 @@ mmc_blk_set_blksize(struct mmc_blk_data *md, struct mmc_card *card)
if (mmc_card_blockaddr(card))
return 0;

mmc_card_claim_host(card);
mmc_claim_host(card->host);
cmd.opcode = MMC_SET_BLOCKLEN;
cmd.arg = 1 << md->block_bits;
cmd.flags = MMC_RSP_R1 | MMC_CMD_AC;
err = mmc_wait_for_cmd(card->host, &cmd, 5);
mmc_card_release_host(card);
mmc_release_host(card->host);

if (err) {
printk(KERN_ERR "%s: unable to set block size to %d: %d\n",
Expand Down
Loading

0 comments on commit 05f297b

Please sign in to comment.