Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325035
b: refs/heads/master
c: 35918dd
h: refs/heads/master
i:
  325033: bfb02e5
  325031: 1f77d78
v: v3
  • Loading branch information
Toshiaki Yamane authored and Greg Kroah-Hartman committed Sep 10, 2012
1 parent fc82495 commit e6b858e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 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: 39ab26778bec39fe2a08e43ea0a7c2dc03d600e8
refs/heads/master: 35918dda5f9c20682a3d24702f974eecdc66467e
16 changes: 6 additions & 10 deletions trunk/drivers/staging/rts_pstor/sd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2724,11 +2724,10 @@ static int mmc_switch_timing_bus(struct rtsx_chip *chip, int switch_ddr)
card_type_mask = 0x03;
}
#else
if (chip->sd_ctl & SUPPORT_MMC_DDR_MODE) {
if (chip->sd_ctl & SUPPORT_MMC_DDR_MODE)
card_type_mask = 0x07;
} else {
else
card_type_mask = 0x03;
}
#endif
} else {
card_type_mask = 0x03;
Expand All @@ -2738,11 +2737,10 @@ static int mmc_switch_timing_bus(struct rtsx_chip *chip, int switch_ddr)
u8 rsp[5];

if (card_type & 0x04) {
if (switch_ddr) {
if (switch_ddr)
SET_MMC_DDR52(sd_card);
} else {
else
SET_MMC_52M(sd_card);
}
} else if (card_type & 0x02) {
SET_MMC_52M(sd_card);
} else {
Expand All @@ -2751,16 +2749,14 @@ static int mmc_switch_timing_bus(struct rtsx_chip *chip, int switch_ddr)

retval = sd_send_cmd_get_rsp(chip, SWITCH,
0x03B90100, SD_RSP_TYPE_R1b, rsp, 5);
if ((retval != STATUS_SUCCESS) || (rsp[4] & MMC_SWITCH_ERR)) {
if ((retval != STATUS_SUCCESS) || (rsp[4] & MMC_SWITCH_ERR))
CLR_MMC_HS(sd_card);
}
}

sd_choose_proper_clock(chip);
retval = switch_clock(chip, sd_card->sd_clock);
if (retval != STATUS_SUCCESS) {
if (retval != STATUS_SUCCESS)
TRACE_RET(chip, STATUS_FAIL);
}

/* Test Bus Procedure */
retval = mmc_test_switch_bus(chip, MMC_8BIT_BUS);
Expand Down

0 comments on commit e6b858e

Please sign in to comment.