From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4A150514.2030901@domain.hid> Date: Thu, 21 May 2009 09:39:00 +0200 From: Wolfgang Grandegger MIME-Version: 1.0 References: <4A008DC9.1000603@domain.hid> <1242812539.31033.12.camel@domain.hid> <4A13D9F6.30602@domain.hid> <4A13E8BF.3030703@domain.hid> In-Reply-To: <4A13E8BF.3030703@domain.hid> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: Stefan Kisdaroczi Cc: xenomai@xenomai.org 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. Thanks, Wolfgang.