Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325005
b: refs/heads/master
c: 5e0738c
h: refs/heads/master
i:
  325003: b2c483e
v: v3
  • Loading branch information
Toshiaki Yamane authored and Greg Kroah-Hartman committed Sep 10, 2012
1 parent 998f6b7 commit 65bf5e7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 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: c18a261a915cd1acc5ece124fb336fb64cc0b41a
refs/heads/master: 5e0738c1f4a76fa089566b1d528720348c6b5840
11 changes: 4 additions & 7 deletions trunk/drivers/staging/rts_pstor/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -731,21 +731,18 @@ static int sd_update_lock_status(struct rtsx_chip *chip)
u8 rsp[5];

retval = sd_send_cmd_get_rsp(chip, SEND_STATUS, sd_card->sd_addr, SD_RSP_TYPE_R1, rsp, 5);
if (retval != STATUS_SUCCESS) {
if (retval != STATUS_SUCCESS)
TRACE_RET(chip, STATUS_FAIL);
}

if (rsp[1] & 0x02) {
if (rsp[1] & 0x02)
sd_card->sd_lock_status |= SD_LOCKED;
} else {
else
sd_card->sd_lock_status &= ~SD_LOCKED;
}

RTSX_DEBUGP("sd_card->sd_lock_status = 0x%x\n", sd_card->sd_lock_status);

if (rsp[1] & 0x01) {
if (rsp[1] & 0x01)
TRACE_RET(chip, STATUS_FAIL);
}

return STATUS_SUCCESS;
}
Expand Down

0 comments on commit 65bf5e7

Please sign in to comment.