Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sdmmc Clear SMF_CARD_PRESENT, if failed to attach.
details: https://anonhg.NetBSD.org/src/rev/bd4fff6861c2
branches: trunk
changeset: 757737:bd4fff6861c2
user: kiyohara <kiyohara%NetBSD.org@localhost>
date: Mon Sep 20 09:06:03 2010 +0000
description:
Clear SMF_CARD_PRESENT, if failed to attach.
diffstat:
sys/dev/sdmmc/sdmmc.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r cdf0722cc74a -r bd4fff6861c2 sys/dev/sdmmc/sdmmc.c
--- a/sys/dev/sdmmc/sdmmc.c Mon Sep 20 09:03:33 2010 +0000
+++ b/sys/dev/sdmmc/sdmmc.c Mon Sep 20 09:06:03 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sdmmc.c,v 1.2 2010/04/06 15:10:09 nonaka Exp $ */
+/* $NetBSD: sdmmc.c,v 1.3 2010/09/20 09:06:03 kiyohara Exp $ */
/* $OpenBSD: sdmmc.c,v 1.18 2009/01/09 10:58:38 jsg Exp $ */
/*
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdmmc.c,v 1.2 2010/04/06 15:10:09 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdmmc.c,v 1.3 2010/09/20 09:06:03 kiyohara Exp $");
#include <sys/param.h>
#include <sys/device.h>
@@ -291,6 +291,8 @@
if (!ISSET(sc->sc_flags, SMF_CARD_PRESENT)) {
SET(sc->sc_flags, SMF_CARD_PRESENT);
sdmmc_card_attach(sc);
+ if (!ISSET(sc->sc_flags, SMF_CARD_ATTACHED))
+ CLR(sc->sc_flags, SMF_CARD_PRESENT);
}
} else {
if (ISSET(sc->sc_flags, SMF_CARD_PRESENT)) {
Home |
Main Index |
Thread Index |
Old Index