Re: [PATCH 01/18] char: moxa: call disable_pci_device() if pci_probe() failed

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Vasiliy Kulikov
Date: Saturday, August 7, 2010 - 11:02 am

On Sat, Aug 07, 2010 at 11:58 +0200, Dan Carpenter wrote:

Yes, but I can't find more recent answer to this question.

The thing is not in that pci_enable_device() is nestable, but in that
some buggy non-mainline drivers may not use PCI api, but use
request_*(). In this case PCI bus doesn't see this driver and tries to
call mainline driver probe(). It sees that resources are already
grabbed. The only reason can be another driver that rules this device
(or our kernel is crazy). As we are robust driver we don't want to break
this buggy third party driver :-)

If you know better solution please tell me :-)

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 01/18] char: moxa: call disable_pci_device() if ..., Vasiliy Kulikov, (Sat Aug 7, 11:02 am)