From: Sebastian Smolorz Date: Fri, 22 May 2009 10:16:06 +0200 References: <4A008DC9.1000603@domain.hid> <4A13E8BF.3030703@domain.hid> <4A150514.2030901@domain.hid> In-Reply-To: <4A150514.2030901@domain.hid> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905221016.07433.Sebastian.Smolorz@domain.hid> Subject: Re: [Xenomai-help] IXXAT-PCI-CAN driver hijacks my pci board List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Wolfgang Grandegger Cc: xenomai@xenomai.org Hi Wolfgang, Wolfgang Grandegger wrote: > Stefan Kisdaroczi wrote: > > Hi Wolfgang, > > > > Wolfgang Grandegger schrieb: > >> [...] > >> > >>>> dmesg output, there is no IXXAT-PCI-CAN board installed: > >>>>> RT-Socket-CAN 0.90.2 - (C) 2006 RT-Socket-CAN Development Team > >>>>> RTCAN SJA1000 driver initialized > >>>>> PCI: setting IRQ 12 as level-triggered > >>>>> IXXAT-PCI-CAN 0000:00:11.0: found PCI INT A -> IRQ 12 > >>>>> IXXAT-PCI-CAN: Initializing device 10b5:9050:2503 > >> > >> OK, it finding a variant of the PLX9050, but it will not use the device > >> because of the following lines after the above printout: > >> > >> if (sub_sys_id != IXXAT_PCI_SUB_SYS_ID) > >> return -ENODEV; > >> > >> But ... > >> > >>>> The following patch fixed it for me (my own driver loads again). > >> > >> ... obviously it does not probe again. > > > > it probes again, but pci_request_regions() failed in my driver. > > > > In the -ENODEV case, the function pci_release_regions() is not > > called in the ixxat driver, so access is blocked for other drivers. > > That's a bug. Will fix. please see: https://mail.gna.org/public/xenomai-core/2009-03/msg00055.html I sent a patch for exactly this issue on March 10. -- Sebastian