mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] fix character subsystem initialisation panic
@ 2003-06-08 17:35 James Bottomley
  2003-06-08 18:43 ` Christoph Hellwig
  0 siblings, 1 reply; 2+ messages in thread
From: James Bottomley @ 2003-06-08 17:35 UTC (permalink / raw)
  To: torvalds; +Cc: Andrew Morton, greg, Linux Kernel

[-- 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);

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-06-08 18:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-08 17:35 [PATCH] fix character subsystem initialisation panic James Bottomley
2003-06-08 18:43 ` Christoph Hellwig

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®