You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/01/13 04:18:45 UTC

[nuttx] 01/03: arch/arm/cxd56xx: do not clear enabled callback event on card insertion

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 45ed6f657cac767382f966b6f8e18f7d5a372385
Author: Petro Karashchenko <pe...@gmail.com>
AuthorDate: Thu Jan 12 23:26:39 2023 +0200

    arch/arm/cxd56xx: do not clear enabled callback event on card insertion
    
    Signed-off-by: Petro Karashchenko <pe...@gmail.com>
---
 arch/arm/src/cxd56xx/cxd56_sdhci.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/arch/arm/src/cxd56xx/cxd56_sdhci.c b/arch/arm/src/cxd56xx/cxd56_sdhci.c
index 65b4fe5e85..c59574cc27 100644
--- a/arch/arm/src/cxd56xx/cxd56_sdhci.c
+++ b/arch/arm/src/cxd56xx/cxd56_sdhci.c
@@ -3360,11 +3360,6 @@ void cxd56_sdhci_mediachange(struct sdio_dev_s *dev)
 
   if (cdstatus != priv->cdstatus)
     {
-      if (priv->cdstatus & SDIO_STATUS_PRESENT)
-        {
-          priv->cbevents &= SDIOMEDIA_INSERTED;
-        }
-
       mediachange = 1;
     }