hotplug remove vs. device driver close

linas at austin.ibm.com linas at austin.ibm.com
Fri Jun 4 05:34:23 EST 2004


On Thu, Jun 03, 2004 at 12:02:06PM -0700, Greg KH wrote:
>
> Or you can simply fix up your PCI driver to properly handle reading all
> FF when the device has been removed.  That seems to be what you need to
> do to solve this for your small subset of drivers on your platform,
> correct?

Yes. Well, specifically, the check will be
"if (0xff && pci_unplugged) then close();"

Due to the nature of the existing PPC64 code, this check will occur
in the ppc64 inb()/inw() macros, and thus solves the problem for my
little neck of the woods.

Is there something in writing somewhere that discusses this as a
guideline for Linux device driver authors?  Something that I can
throw at the driver authors and say "here do this, this fixes it
for all arches"?

--linas

** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list