Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 236352
b: refs/heads/master
c: 9fe341e
h: refs/heads/master
v: v3
  • Loading branch information
wwang authored and Greg Kroah-Hartman committed Mar 10, 2011
1 parent 697f60a commit 04df3bc
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 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: 7c31607e165d5edfa13dea5d329e59f322d4cad2
refs/heads/master: 9fe341e834bec1cad92c3f320931d0563674e112
14 changes: 9 additions & 5 deletions trunk/drivers/staging/rts_pstor/ms.c
Original file line number Diff line number Diff line change
Expand Up @@ -1099,7 +1099,14 @@ static int reset_ms_pro(struct rtsx_chip *chip)
struct ms_info *ms_card = &(chip->ms_card);
int retval;
#ifdef XC_POWERCLASS
u8 change_power_class = 2;
u8 change_power_class;

if (chip->ms_power_class_en & 0x02)
change_power_class = 2;
else if (chip->ms_power_class_en & 0x01)
change_power_class = 1;
else
change_power_class = 0;
#endif

#ifdef XC_POWERCLASS
Expand Down Expand Up @@ -1128,10 +1135,7 @@ static int reset_ms_pro(struct rtsx_chip *chip)
}

if (change_power_class && CHK_MSXC(ms_card)) {
u8 power_class_en = 0x03;

if (CHECK_PID(chip, 0x5209))
power_class_en = chip->ms_power_class_en;
u8 power_class_en = chip->ms_power_class_en;

RTSX_DEBUGP("power_class_en = 0x%x\n", power_class_en);
RTSX_DEBUGP("change_power_class = %d\n", change_power_class);
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/staging/rts_pstor/rtsx.c
Original file line number Diff line number Diff line change
Expand Up @@ -850,6 +850,7 @@ static void rtsx_init_options(struct rtsx_chip *chip)
chip->sd_default_rx_phase = 15;
chip->pmos_pwr_on_interval = 200;
chip->sd_voltage_switch_delay = 1000;
chip->ms_power_class_en = 3;

chip->sd_400mA_ocp_thd = 1;
chip->sd_800mA_ocp_thd = 5;
Expand Down

0 comments on commit 04df3bc

Please sign in to comment.