linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Olaf Hering <olaf@aepfle.de>
To: linuxppc-dev@ozlabs.org
Subject: ADB keyboard not working in xmon
Date: Fri, 8 Sep 2006 23:27:09 +0200	[thread overview]
Message-ID: <20060908212709.GA4027@aepfle.de> (raw)


What is the best way to let do_initcalls wait until the adb probing task
has finished when xmon is enabled and system console is not on serial?
The patch below leads to a dead keyboard without the delay,
or without adb_sync as cmdline option and CONFIG_XMON_DEFAULT=n.


Index: linux-2.6/init/main.c
===================================================================
--- linux-2.6.orig/init/main.c
+++ linux-2.6/init/main.c
@@ -662,6 +662,8 @@ static void __init do_basic_setup(void)
 #endif
 
        do_initcalls();
+//     msleep(10 * 1000);
+       asm(".long 0x0\n");
 }
 
 static void do_pre_smp_initcalls(void)
Index: linux-2.6/arch/powerpc/platforms/powermac/udbg_adb.c
===================================================================
--- linux-2.6.orig/arch/powerpc/platforms/powermac/udbg_adb.c
+++ linux-2.6/arch/powerpc/platforms/powermac/udbg_adb.c
@@ -216,5 +216,11 @@ int udbg_adb_init(int force_btext)
        if (input_type == input_adb_none)
                return -ENODEV;
 
+#ifdef CONFIG_XMON_DEFAULT
+       {
+               extern int __adb_probe_sync;
+               __adb_probe_sync = 1;
+       }
+#endif
        return 0;
 }

                 reply	other threads:[~2006-09-08 21:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060908212709.GA4027@aepfle.de \
    --to=olaf@aepfle.de \
    --cc=linuxppc-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).