* [PATCH 2.6.22.y, 2.6.20.y] ieee1394: ohci1394: fix initialization if built non-modular
@ 2007-09-21 6:11 Stefan Richter
2007-09-21 6:16 ` Willy Tarreau
0 siblings, 1 reply; 2+ messages in thread
From: Stefan Richter @ 2007-09-21 6:11 UTC (permalink / raw)
To: stable; +Cc: Willy Tarreau, linux-kernel
Initialization of ohci1394 was broken according to one reporter if the
driver was statically linked, i.e. not built as loadable module. Dmesg:
PCI: Device 0000:02:07.0 not available because of resource collisions
ohci1394: Failed to enable OHCI hardware.
This was reported for a Toshiba Satellite 5100-503. The cause is commit
8df4083c5291b3647e0381d3c69ab2196f5dd3b7 in Linux 2.6.19-rc1 which only
served purposes of early remote debugging via FireWire. This
functionality is better provided by the currently out-of-tree driver
ohci1394_earlyinit. Reversal of the commit was OK'd by Andi Kleen.
Same as pre-2.6.23 commit be7963b7e7f08a149e247c0bf29a4abd174e0929.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
---
drivers/ieee1394/ieee1394_core.c | 2 +-
drivers/ieee1394/ohci1394.c | 4 +---
2 files changed, 2 insertions(+), 4 deletions(-)
Index: linux/drivers/ieee1394/ieee1394_core.c
===================================================================
--- linux.orig/drivers/ieee1394/ieee1394_core.c
+++ linux/drivers/ieee1394/ieee1394_core.c
@@ -1273,7 +1273,7 @@ static void __exit ieee1394_cleanup(void
unregister_chrdev_region(IEEE1394_CORE_DEV, 256);
}
-fs_initcall(ieee1394_init); /* same as ohci1394 */
+module_init(ieee1394_init);
module_exit(ieee1394_cleanup);
/* Exported symbols */
Index: linux/drivers/ieee1394/ohci1394.c
===================================================================
--- linux.orig/drivers/ieee1394/ohci1394.c
+++ linux/drivers/ieee1394/ohci1394.c
@@ -3537,7 +3537,5 @@ static int __init ohci1394_init(void)
return pci_register_driver(&ohci1394_pci_driver);
}
-/* Register before most other device drivers.
- * Useful for remote debugging via physical DMA, e.g. using firescope. */
-fs_initcall(ohci1394_init);
+module_init(ohci1394_init);
module_exit(ohci1394_cleanup);
--
Stefan Richter
-=====-=-=== =--= =-=-=
http://arcgraph.de/sr/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 2.6.22.y, 2.6.20.y] ieee1394: ohci1394: fix initialization if built non-modular
2007-09-21 6:11 [PATCH 2.6.22.y, 2.6.20.y] ieee1394: ohci1394: fix initialization if built non-modular Stefan Richter
@ 2007-09-21 6:16 ` Willy Tarreau
0 siblings, 0 replies; 2+ messages in thread
From: Willy Tarreau @ 2007-09-21 6:16 UTC (permalink / raw)
To: Stefan Richter; +Cc: stable, linux-kernel
On Fri, Sep 21, 2007 at 08:11:08AM +0200, Stefan Richter wrote:
> Initialization of ohci1394 was broken according to one reporter if the
> driver was statically linked, i.e. not built as loadable module. Dmesg:
>
> PCI: Device 0000:02:07.0 not available because of resource collisions
> ohci1394: Failed to enable OHCI hardware.
>
> This was reported for a Toshiba Satellite 5100-503. The cause is commit
> 8df4083c5291b3647e0381d3c69ab2196f5dd3b7 in Linux 2.6.19-rc1 which only
> served purposes of early remote debugging via FireWire. This
> functionality is better provided by the currently out-of-tree driver
> ohci1394_earlyinit. Reversal of the commit was OK'd by Andi Kleen.
>
> Same as pre-2.6.23 commit be7963b7e7f08a149e247c0bf29a4abd174e0929.
>
> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
> ---
thanks Stefan. I still have a few fixes pending for 2.6.20, I'll release
another one soon including your patch.
regards,
willy
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-09-21 6:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-21 6:11 [PATCH 2.6.22.y, 2.6.20.y] ieee1394: ohci1394: fix initialization if built non-modular Stefan Richter
2007-09-21 6:16 ` Willy Tarreau
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox