From: James Bottomley <James.Bottomley@steeleye.com>
To: torvalds@transmeta.com
Cc: Andrew Morton <akpm@digeo.com>,
greg@kroah.com, Linux Kernel <linux-kernel@vger.kernel.org>
Subject: [PATCH] fix character subsystem initialisation panic
Date: 08 Jun 2003 12:35:25 -0500 [thread overview]
Message-ID: <1055093727.1982.17.camel@mulgrave> (raw)
[-- Attachment #1: Type: text/plain, Size: 733 bytes --]
In 2.5.70 bk latest, I'm getting a panic related to character device
initialisation. The problem seems to be that the new sysfs entries for
character devices require that everything now have a properly
initialised parent. However, the character subsystem is set up in
drivers/char/mem.c as
__initcall(chr_dev_init);
However, __initcall() is the same priority as module_init(), so whether
character devices are initialised before their required subsystem
depends purely on link ordering (on parisc, we initialise devices/parisc
before everything else, so it is panicing reliably with this).
I think the fix is to convert the __initcall to subsys_initcall (patch
attached). The patch allows parisc to boot properly now.
James
[-- Attachment #2: tmp.diff --]
[-- Type: text/plain, Size: 259 bytes --]
===== drivers/char/mem.c 1.39 vs edited =====
--- 1.39/drivers/char/mem.c Fri Jun 6 01:36:40 2003
+++ edited/drivers/char/mem.c Sun Jun 8 12:02:24 2003
@@ -713,4 +713,4 @@
return 0;
}
-__initcall(chr_dev_init);
+subsys_initcall(chr_dev_init);
next reply other threads:[~2003-06-08 17:21 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-08 17:35 James Bottomley [this message]
2003-06-08 18:43 ` Christoph Hellwig
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=1055093727.1982.17.camel@mulgrave \
--to=james.bottomley@steeleye.com \
--cc=akpm@digeo.com \
--cc=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@transmeta.com \
/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
all inboxes | Powered by JetHome®