RE: Linux hot swap support

Bloch, Jack (Jack.Bloch@icn.siemens.com)
Wed, 18 Sep 2002 17:09:50 -0400


Our HW uses an AMCC S5935 PCI controller. Right now, since we own both
device and SW, we are using a simple interrupt mechanism to accomplish the
hot swap.

Jack Bloch
Siemens ICN
phone (561) 923-6550
e-mail jack.bloch@icn.siemens.com

-----Original Message-----
From: Greg KH [mailto:greg@kroah.com]
Sent: Wednesday, September 18, 2002 5:06 PM
To: Bloch, Jack
Cc: linux-kernel@vger.kernel.org
Subject: Re: Linux hot swap support

On Wed, Sep 18, 2002 at 04:59:08PM -0400, Bloch, Jack wrote:
> Ok, my driver is for a specific cPCI biard which we have developed here. I
> want the Linux Kernel to tell me when this board is inserted and/or
removed.

That will already happen today. /sbin/hotplug will be called whenever a
new PCI card is added or removed, IF you have a PCI Hotplug controller
driver that works for your cPCI board.

> I am running on a 700Mhz PIII with a 2.4.18-3 Kernel (Red Hat 7.3) My
driver
> is written with a call to pci_module_init in the init routine wherein I
> specify a probe and remove routine. According to Linux Device Drivers 2nd
> edition (pages 489 - 493), As long as the HW supports hot swap, I should
get
> called automatically whenevr one of the devices (vendor ID device ID)
which
> I specified in my table gets inserted or ejected. Am I totaly wrong about
> this? I am not trying to write a driver for a hotplug controller but for a
> device.

Yes, you are correct. But odds are there is not a PCI Hotplug
controller for your hardware, so this probably will not work. However,
your driver should work just fine to control your card.

What kind of cPCI controller do you have?

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/