+ initialize-ieee1394-early-when-built-in.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled

     Initialize ieee1394 early when built in

has been added to the -mm tree.  Its filename is

     initialize-ieee1394-early-when-built-in.patch

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

------------------------------------------------------
Subject: Initialize ieee1394 early when built in
From: Andi Kleen <ak@xxxxxxx>

This makes debugging with firescope easier.


Update:
 - no need for #ifdef MODULE
 - add comment in ieee1394_core, more verbose comment in ohci1394

Signed-off-by: Andi Kleen <ak@xxxxxxx>
Signed-off-by: Stefan Richter <stefanr@xxxxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxx>
---

 drivers/ieee1394/ieee1394_core.c |    2 +-
 drivers/ieee1394/ohci1394.c      |    4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff -puN drivers/ieee1394/ieee1394_core.c~initialize-ieee1394-early-when-built-in drivers/ieee1394/ieee1394_core.c
--- a/drivers/ieee1394/ieee1394_core.c~initialize-ieee1394-early-when-built-in
+++ a/drivers/ieee1394/ieee1394_core.c
@@ -1170,7 +1170,7 @@ static void __exit ieee1394_cleanup(void
 	unregister_chrdev_region(IEEE1394_CORE_DEV, 256);
 }
 
-module_init(ieee1394_init);
+fs_initcall(ieee1394_init); /* same as ohci1394 */
 module_exit(ieee1394_cleanup);
 
 /* Exported symbols */
diff -puN drivers/ieee1394/ohci1394.c~initialize-ieee1394-early-when-built-in drivers/ieee1394/ohci1394.c
--- a/drivers/ieee1394/ohci1394.c~initialize-ieee1394-early-when-built-in
+++ a/drivers/ieee1394/ohci1394.c
@@ -3719,5 +3719,7 @@ static int __init ohci1394_init(void)
 	return pci_register_driver(&ohci1394_pci_driver);
 }
 
-module_init(ohci1394_init);
+/* Register before most other device drivers.
+ * Useful for remote debugging via physical DMA, e.g. using firescope. */
+fs_initcall(ohci1394_init);
 module_exit(ohci1394_cleanup);
_

Patches currently in -mm which might be from ak@xxxxxxx are

initialize-ieee1394-early-when-built-in.patch

-
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux