mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 21:25:19 -05:00
sd-as3525v2.c We don't need to disable/enable MCI_CLKENA in send_cmd().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25286 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
2a75da37ae
commit
beaa292199
1 changed files with 0 additions and 6 deletions
|
|
@ -401,8 +401,6 @@ static bool send_cmd(const int drive, const int cmd, const int arg, const int fl
|
||||||
MCI_COMMAND |= CMD_RW_BIT | CMD_CHECK_CRC_BIT;
|
MCI_COMMAND |= CMD_RW_BIT | CMD_CHECK_CRC_BIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
MCI_CLKENA &= (1 << drive);
|
|
||||||
|
|
||||||
MCI_ARGUMENT = arg;
|
MCI_ARGUMENT = arg;
|
||||||
MCI_COMMAND |= CMD_DONE_BIT;
|
MCI_COMMAND |= CMD_DONE_BIT;
|
||||||
|
|
||||||
|
|
@ -410,13 +408,9 @@ static bool send_cmd(const int drive, const int cmd, const int arg, const int fl
|
||||||
while(MCI_COMMAND & CMD_DONE_BIT)
|
while(MCI_COMMAND & CMD_DONE_BIT)
|
||||||
{
|
{
|
||||||
if(--max == 0) /* timeout */
|
if(--max == 0) /* timeout */
|
||||||
{
|
|
||||||
MCI_CLKENA |= (1 << drive);
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
MCI_CLKENA |= (1 << drive);
|
|
||||||
|
|
||||||
if(flags & MCI_RESP)
|
if(flags & MCI_RESP)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue