Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sdmmc Protect ldattach ops with config_pending_intr(...
details: https://anonhg.NetBSD.org/src/rev/98aa9b585bc7
branches: trunk
changeset: 773075:98aa9b585bc7
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Fri Jan 27 14:28:33 2012 +0000
description:
Protect ldattach ops with config_pending_intr(9)/config_pending_decr(9)
so that "boot device: ld0" detection works properly even on slower zaurus.
diffstat:
sys/dev/sdmmc/ld_sdmmc.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r 65306e90c27d -r 98aa9b585bc7 sys/dev/sdmmc/ld_sdmmc.c
--- a/sys/dev/sdmmc/ld_sdmmc.c Fri Jan 27 12:22:02 2012 +0000
+++ b/sys/dev/sdmmc/ld_sdmmc.c Fri Jan 27 14:28:33 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ld_sdmmc.c,v 1.7 2010/11/13 13:52:11 uebayasi Exp $ */
+/* $NetBSD: ld_sdmmc.c,v 1.8 2012/01/27 14:28:33 tsutsui Exp $ */
/*
* Copyright (c) 2008 KIYOHARA Takashi
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ld_sdmmc.c,v 1.7 2010/11/13 13:52:11 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld_sdmmc.c,v 1.8 2012/01/27 14:28:33 tsutsui Exp $");
#include "rnd.h"
@@ -133,6 +133,7 @@
* It is avoided that the error occurs when the card attaches it,
* when wedge is supported.
*/
+ config_pending_incr();
if (kthread_create(PRI_NONE, KTHREAD_MPSAFE, NULL,
ld_sdmmc_doattach, sc, &lwp, "%sattach", device_xname(self))) {
aprint_error_dev(self, "couldn't create thread\n");
@@ -154,6 +155,7 @@
ssc->sc_busclk / 1000, ssc->sc_busclk % 1000);
else
aprint_normal(" %u KHz\n", ssc->sc_busclk % 1000);
+ config_pending_decr();
kthread_exit(0);
}
Home |
Main Index |
Thread Index |
Old Index