diff options
Diffstat (limited to 'firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c')
-rw-r--r-- | firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c b/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c index 6ee18a47d6..63b9913d29 100644 --- a/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c +++ b/firmware/target/mips/ingenic_jz47xx/ata-sd-jz4740.c @@ -1700,6 +1700,8 @@ int sd_read_sectors(IF_MV2(int drive,) unsigned long start, int count, void* buf #ifdef HAVE_MULTIVOLUME (void)drive; #endif + led(true); + struct mmc_request request; struct mmc_response_r1 r1; int retval; @@ -1738,6 +1740,8 @@ int sd_read_sectors(IF_MV2(int drive,) unsigned long start, int count, void* buf if ((retval = mmc_unpack_r1(&request, &r1))) return retval; + led(false); + return retval; } @@ -1746,6 +1750,8 @@ int sd_write_sectors(IF_MV2(int drive,) unsigned long start, int count, const vo #ifdef HAVE_MULTIVOLUME (void)drive; #endif + led(true); + struct mmc_request request; struct mmc_response_r1 r1; int retval; @@ -1782,6 +1788,8 @@ int sd_write_sectors(IF_MV2(int drive,) unsigned long start, int count, const vo if ((retval = mmc_unpack_r1(&request, &r1))) return retval; + led(false); + return retval; } |