From 19b2964d78b2ad6624a0e7cddd0ac6a49082cca4 Mon Sep 17 00:00:00 2001 From: Michael Sevakis Date: Mon, 30 Oct 2017 16:29:51 -0400 Subject: AMS v1/v2: Remove sd_enabled as an externally-visible variable. Also removes the sd_enable() function call. It was only used in the debug screen on AMSv1 and not used at all on AMS v2. For v1,obtain debug info in a struture passed to a dedicated debug info function so that enabling and disabling the controller isn't racy. Change-Id: I7c44693bc2df5a1f16168b05b3abfe622f9584ce --- firmware/target/arm/as3525/sd-as3525v2.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'firmware/target/arm/as3525/sd-as3525v2.c') diff --git a/firmware/target/arm/as3525/sd-as3525v2.c b/firmware/target/arm/as3525/sd-as3525v2.c index f78345577c..b512cc2ea4 100644 --- a/firmware/target/arm/as3525/sd-as3525v2.c +++ b/firmware/target/arm/as3525/sd-as3525v2.c @@ -323,9 +323,6 @@ static int sd_first_drive = 0; /* for compatibility */ static long last_disk_activity = -1; static struct mutex sd_mtx SHAREDBSS_ATTR; -#ifndef BOOTLOADER -bool sd_enabled = false; -#endif static struct semaphore transfer_completion_signal; static struct semaphore command_completion_signal; @@ -675,7 +672,6 @@ int sd_init(void) return ret; #ifndef BOOTLOADER - sd_enabled = true; enable_controller(false); #endif return 0; @@ -879,13 +875,6 @@ long sd_last_disk_activity(void) { return last_disk_activity; } - -void sd_enable(bool on) -{ - mutex_lock(&sd_mtx); - enable_controller(on); - mutex_unlock(&sd_mtx); -} #endif /* BOOTLOADER */ tCardInfo *card_get_info_target(int card_no) -- cgit v1.2.3