Hi,<br><br>I am facing a strange problem with a PCI express device. I have written a simple PCI driver(pci_skel sample driver for LDD book) just to detect a PCI device and read its vender and device id from its configuration space. When I connect the device on a standard i386 based PC, it works fine, as expected. But when I run the same driver on the MPC837xERDB board(powerpc arch based processor from freescale), it gives me error. Below is the O/P on both the architectures. Could anyone suggest what can be the cause of this problem? I am new to linux device driver development.<br>
<br>i386 output.<br><br>[ 921.097050] PCI driver: Init function<br>[
921.097415] PCI driver: Probe function<br>[ 921.097442] pci_skel
0000:04:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18<br>[
921.097453] PCI driver Vendor ID = 1204<br>
[ 921.097462] PCI driver Device ID = e250<br>[ 921.097471] PCI driver
Revision = 0<br><br><br>Powerpc output<br><br>PCI driver: Init function<br>PCI
driver: Probe function<br>pci_skel 0001:02:00.0: device not available
(can't reserve [mem 0x00000000-0x0003ffff])<br>
Unable to Enable PCI device:-22<br>pci_skel: probe of 0001:02:00.0
failed with error -22<br><br><br>Thanks in advance<br>Ravi Gupta<br>