summaryrefslogtreecommitdiff
path: root/firmware/target/arm
diff options
context:
space:
mode:
authorBertrik Sikken <bertrik@sikken.nl>2011-03-21 21:41:50 +0000
committerBertrik Sikken <bertrik@sikken.nl>2011-03-21 21:41:50 +0000
commit3d3c0c51ec4e30a961cab311c17ddeab5c5c6a18 (patch)
tree8cd1a1245005ca578ef1527bbad9bdf9a8c97b6b /firmware/target/arm
parent6bf0f653884948ba7952c1703159bf406b4d91a9 (diff)
AMSv2 SD: wait for previous data transfer completion before sending a command
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29628 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/arm')
-rw-r--r--firmware/target/arm/as3525/sd-as3525v2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c
index 6e1e2f480b..abc58a2619 100644
--- a/firmware/target/arm/as3525/sd-as3525v2.c
+++ b/firmware/target/arm/as3525/sd-as3525v2.c
@@ -423,7 +423,7 @@ static bool send_cmd(const int drive, const int cmd, const int arg, const int fl
/*b10 */ | ((cmd == SD_WRITE_MULTIPLE_BLOCK) ? CMD_RW_BIT: 0)
/*b11 | CMD_TRANSMODE_BIT unused */
/*b12 | CMD_SENT_AUTO_STOP_BIT unused */
- /*b13 */ | (TRANSFER_CMD ? CMD_WAIT_PRV_DAT_BIT: 0)
+ /*b13 */ | ((cmd != SD_STOP_TRANSMISSION) ? CMD_WAIT_PRV_DAT_BIT: 0)
/*b14 | CMD_ABRT_CMD_BIT unused */
/*b15 | CMD_SEND_INIT_BIT unused */
/*b20:16 */ | card_no