Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 297354
b: refs/heads/master
c: 2378975
h: refs/heads/master
v: v3
  • Loading branch information
Jaehoon Chung authored and Chris Ball committed Mar 27, 2012
1 parent 63ba723 commit 53ce005
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 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: ee698f503442741ca394d55c77b61c9080537686
refs/heads/master: 2378975bd5ed583da555c7e5dee121663b7d5f46
12 changes: 8 additions & 4 deletions trunk/drivers/mmc/core/mmc_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,18 +553,22 @@ int mmc_send_hpi_cmd(struct mmc_card *card, u32 *status)
{
struct mmc_command cmd = {0};
unsigned int opcode;
unsigned int flags;
int err;

if (!card->ext_csd.hpi) {
pr_warning("%s: Card didn't support HPI command\n",
mmc_hostname(card->host));
return -EINVAL;
}

opcode = card->ext_csd.hpi_cmd;
if (opcode == MMC_STOP_TRANSMISSION)
flags = MMC_RSP_R1 | MMC_CMD_AC;
cmd.flags = MMC_RSP_R1B | MMC_CMD_AC;
else if (opcode == MMC_SEND_STATUS)
flags = MMC_RSP_R1 | MMC_CMD_AC;
cmd.flags = MMC_RSP_R1 | MMC_CMD_AC;

cmd.opcode = opcode;
cmd.arg = card->rca << 16 | 1;
cmd.flags = flags;
cmd.cmd_timeout_ms = card->ext_csd.out_of_int_time;

err = mmc_wait_for_cmd(card->host, &cmd, 0);
Expand Down

0 comments on commit 53ce005

Please sign in to comment.