linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ISAPNP :driver not recognized when compiled in kernel
@ 2001-03-14 13:05 mshiju
  2001-03-14 14:22 ` Tony Nugent
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: mshiju @ 2001-03-14 13:05 UTC (permalink / raw)
  To: linux-net, linux-kernel

Hello,
           I have a basic question. Can we build a PnP ISA driver in kernel
with ISAPNP kernel option enabled so that kernel PnP does the job of
allocating the resources for the driver. The problem being that the
/etc/isapnp.conf should be executed before the device driver. I tried this
and was unsuccessful but worked fine when the driver was compiled as a
module. I read somewhere that ISAPNP drivers with ISAPNP enabled in kernel
should only be build as modules so that we can keep the order of execution
. Is this true.? Have any one of you tried this .


Thanks & Regards
Shiju




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

* Re: ISAPNP :driver not recognized when compiled in kernel
  2001-03-14 13:05 ISAPNP :driver not recognized when compiled in kernel mshiju
@ 2001-03-14 14:22 ` Tony Nugent
  2001-03-14 14:24 ` Christoph Hellwig
  2001-03-14 14:33 ` Brian Gerst
  2 siblings, 0 replies; 4+ messages in thread
From: Tony Nugent @ 2001-03-14 14:22 UTC (permalink / raw)
  To: mshiju; +Cc: linux-net, linux-kernel

On Wed Mar 14 2001 at 18:35, mshiju@in.ibm.com wrote:

> module. I read somewhere that ISAPNP drivers with ISAPNP enabled in kernel
> should only be build as modules so that we can keep the order of execution
> . Is this true.? Have any one of you tried this .

I'd believe what you have read.

The general philosphy is that most device drivers are almost always
best built and made available as modules.

Besides, there really are distinct advantages in being able to
unload device drivers at runtime (eg, you can reconfigure the IRQ or
dma etc for the driver by simply unloading and reloading it -
without otherwise resorting to a system reboot which would be the
case if the driver was compiled into the kernel itself).

If you need to load any device drivers before actually booting the
kernel itself (eg, an nfsroot kernel which needs an ethernet
driver), then that problem is solved by creating (and making
available with lilo or bootp or whatever) an initrd image that can
preload the device drivers it needs before actually attempting to
mount the root filesystem.  (Fairly easy to do this with something
like redhat's mkinitrd utility).

Cheers
Tony
 -=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-
  Tony Nugent <Tony@growzone.com.au>    Systems Administrator, RHCE
  LinuxWorks - PO Box 5747 Gold Coast MC Queensland Australia  9726
  Ph: (07) 5526 8020                           Mobile: 0408 066 336
 -=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-=*#*=-

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

* Re: ISAPNP :driver not recognized when compiled in kernel
  2001-03-14 13:05 ISAPNP :driver not recognized when compiled in kernel mshiju
  2001-03-14 14:22 ` Tony Nugent
@ 2001-03-14 14:24 ` Christoph Hellwig
  2001-03-14 14:33 ` Brian Gerst
  2 siblings, 0 replies; 4+ messages in thread
From: Christoph Hellwig @ 2001-03-14 14:24 UTC (permalink / raw)
  To: mshiju; +Cc: linux-net, linux-kernel

In article <CA256A0F.004A726A.00@d73mta05.au.ibm.com> you wrote:
> Hello,
>            I have a basic question. Can we build a PnP ISA driver in kernel
> with ISAPNP kernel option enabled so that kernel PnP does the job of
> allocating the resources for the driver.

Yes you can.  Look at drivers/sound/ad1816.c or drivers/sound/sb_card.c for
examples.

> The problem being that the
> /etc/isapnp.conf should be executed before the device driver. I tried this
> and was unsuccessful but worked fine when the driver was compiled as a
> module. 

The Linux 2.4 isapnp code does _not_ use isapnp.conf.
Did you write your driver using the isapnp_ kernel APIs (Documented in
Documentation/isapnp.txt)?  Or is it a plain isa driver that needs help
from the isapnp tools to work?

> I read somewhere that ISAPNP drivers with ISAPNP enabled in kernel
> should only be build as modules so that we can keep the order of execution
> . Is this true.? Have any one of you tried this .

This was true for Linux 2.2 and earlier as those did not actually support
isapnp and needed the help of the uselevel isapnp tools.  Because they can
only be used after the system is up isapnp drivers for theses kernel have to
be modules.

	Christoph

-- 
Of course it doesn't work. We've performed a software upgrade.

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

* Re: ISAPNP :driver not recognized when compiled in kernel
  2001-03-14 13:05 ISAPNP :driver not recognized when compiled in kernel mshiju
  2001-03-14 14:22 ` Tony Nugent
  2001-03-14 14:24 ` Christoph Hellwig
@ 2001-03-14 14:33 ` Brian Gerst
  2 siblings, 0 replies; 4+ messages in thread
From: Brian Gerst @ 2001-03-14 14:33 UTC (permalink / raw)
  To: mshiju; +Cc: linux-net, linux-kernel

mshiju@in.ibm.com wrote:
> 
> Hello,
>            I have a basic question. Can we build a PnP ISA driver in kernel
> with ISAPNP kernel option enabled so that kernel PnP does the job of
> allocating the resources for the driver. The problem being that the
> /etc/isapnp.conf should be executed before the device driver. I tried this
> and was unsuccessful but worked fine when the driver was compiled as a
> module. I read somewhere that ISAPNP drivers with ISAPNP enabled in kernel
> should only be build as modules so that we can keep the order of execution
> . Is this true.? Have any one of you tried this .
> 
> Thanks & Regards
> Shiju

If you build ISAPnP support into the kernel you should not be using the
isapnp userspace tools.  Use on or the other, but not both.  The ISAPnP
system when non-modular is initialized before built-in drivers, so they
do not have to be modular.  With the old userspace tools they must be
modular.

--

				Brian Gerst

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

end of thread, other threads:[~2001-03-14 14:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-14 13:05 ISAPNP :driver not recognized when compiled in kernel mshiju
2001-03-14 14:22 ` Tony Nugent
2001-03-14 14:24 ` Christoph Hellwig
2001-03-14 14:33 ` Brian Gerst

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).