From 19801ef984bb443c5334c975c17e91dfe9e1b956 Mon Sep 17 00:00:00 2001 From: Harini Katakam Date: Thu, 14 May 2015 14:21:08 +0530 Subject: [PATCH] xilffs: Card check only if card detect signal is present Check for card detection only if that signal is present (based on HAS_CD macro) Signed-off-by: Srinivas Goud Signed-off-by: Harini Katakam --- lib/sw_services/xilffs/src/diskio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/sw_services/xilffs/src/diskio.c b/lib/sw_services/xilffs/src/diskio.c index d63e8cd9..f4555384 100644 --- a/lib/sw_services/xilffs/src/diskio.c +++ b/lib/sw_services/xilffs/src/diskio.c @@ -74,6 +74,7 @@ * Removed alignment for local buffers as CacheInvalidate * will take care of it. * sg 03/03/15 Added card detection check logic +* 04/28/15 Card detection only in case of card detection signal * * * @@ -212,6 +213,7 @@ DSTATUS disk_initialize ( XSdPs_Config *SdConfig; +#if XPAR_XSDPS_0_HAS_CD /* * Card detection check * If the HC detects the No Card State, power will be cleared @@ -223,6 +225,7 @@ DSTATUS disk_initialize ( (XSDPS_PSR_CARD_DPL_MASK | XSDPS_PSR_CARD_STABLE_MASK | XSDPS_PSR_CARD_INSRT_MASK)))); +#endif /* * Check if card is in the socket