* parport_serial and serial driver?
@ 2002-08-28 16:50 Pavel Janík
2002-08-28 17:09 ` Tim Waugh
0 siblings, 1 reply; 2+ messages in thread
From: Pavel Janík @ 2002-08-28 16:50 UTC (permalink / raw)
To: linux-kernel; +Cc: Tim Waugh
Hi,
I use non-modular kernel with parport_serial driver built in (NetMos-based
cards, 2.4.latest-vanilla patched for NetMos PCI IDs). The problem is that
parport_serial is initialized before serial driver and thus both serial
ports on that card are detected as ttyS00. This patch helped me:
--- linux.orig/Makefile Wed Aug 28 13:46:45 2002
+++ linux/Makefile Wed Aug 28 13:46:51 2002
@@ -130,12 +130,13 @@
DRIVERS- :=
DRIVERS-$(CONFIG_ACPI) += drivers/acpi/acpi.o
-DRIVERS-$(CONFIG_PARPORT) += drivers/parport/driver.o
DRIVERS-y += drivers/char/char.o \
drivers/block/block.o \
drivers/misc/misc.o \
drivers/net/net.o \
drivers/media/media.o
+# Change the order of initialization of parport_serial and serial
+DRIVERS-$(CONFIG_PARPORT) += drivers/parport/driver.o
DRIVERS-$(CONFIG_AGP) += drivers/char/agp/agp.o
DRIVERS-$(CONFIG_DRM_NEW) += drivers/char/drm/drm.o
DRIVERS-$(CONFIG_DRM_OLD) += drivers/char/drm-4.0/drm.o
When the same kernel has parport_serial as a module, everything works
fine, because serial is already initialized.
BTW - Is there a way to specify the order of initialization (module_init)
of certain drivers? What is the proper solution to my problem?
--
Pavel Janík
panic("IRQ, you lose...");
-- 2.2.16 arch/mips/sgi/kernel/indy_int.c
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: parport_serial and serial driver?
2002-08-28 16:50 parport_serial and serial driver? Pavel Janík
@ 2002-08-28 17:09 ` Tim Waugh
0 siblings, 0 replies; 2+ messages in thread
From: Tim Waugh @ 2002-08-28 17:09 UTC (permalink / raw)
To: Pavel Janík; +Cc: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 599 bytes --]
On Wed, Aug 28, 2002 at 06:50:50PM +0200, Pavel Janík wrote:
> I use non-modular kernel with parport_serial driver built in (NetMos-based
> cards, 2.4.latest-vanilla patched for NetMos PCI IDs). The problem is that
> parport_serial is initialized before serial driver and thus both serial
> ports on that card are detected as ttyS00. This patch helped me:
Doesn't that then break ppdev? I think the correct solution was
posted here not long ago---to add a call to the serial driver's init
function in parport_serial (with a protection against it being run
multiple times).
Tim.
*/
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-08-28 17:05 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-28 16:50 parport_serial and serial driver? Pavel Janík
2002-08-28 17:09 ` Tim Waugh
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).