diff options
Diffstat (limited to 'firmware/target/arm/as3525/sd-as3525v2.c')
-rw-r--r-- | firmware/target/arm/as3525/sd-as3525v2.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c index ad55a15b5d..7d1c2bfb18 100644 --- a/firmware/target/arm/as3525/sd-as3525v2.c +++ b/firmware/target/arm/as3525/sd-as3525v2.c | |||
@@ -401,8 +401,6 @@ static bool send_cmd(const int drive, const int cmd, const int arg, const int fl | |||
401 | MCI_COMMAND |= CMD_RW_BIT | CMD_CHECK_CRC_BIT; | 401 | MCI_COMMAND |= CMD_RW_BIT | CMD_CHECK_CRC_BIT; |
402 | } | 402 | } |
403 | 403 | ||
404 | MCI_CLKENA &= (1 << drive); | ||
405 | |||
406 | MCI_ARGUMENT = arg; | 404 | MCI_ARGUMENT = arg; |
407 | MCI_COMMAND |= CMD_DONE_BIT; | 405 | MCI_COMMAND |= CMD_DONE_BIT; |
408 | 406 | ||
@@ -410,13 +408,9 @@ static bool send_cmd(const int drive, const int cmd, const int arg, const int fl | |||
410 | while(MCI_COMMAND & CMD_DONE_BIT) | 408 | while(MCI_COMMAND & CMD_DONE_BIT) |
411 | { | 409 | { |
412 | if(--max == 0) /* timeout */ | 410 | if(--max == 0) /* timeout */ |
413 | { | ||
414 | MCI_CLKENA |= (1 << drive); | ||
415 | return false; | 411 | return false; |
416 | } | ||
417 | } | 412 | } |
418 | 413 | ||
419 | MCI_CLKENA |= (1 << drive); | ||
420 | 414 | ||
421 | if(flags & MCI_RESP) | 415 | if(flags & MCI_RESP) |
422 | { | 416 | { |