LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   pci_register_driver doesnt call prob function.. (https://www.linuxquestions.org/questions/linux-newbie-8/pci_register_driver-doesnt-call-prob-function-4175428363/)

sathyavathi.16 09-21-2012 06:39 AM

pci_register_driver doesnt call prob function..
 
Hi All,

Im trying to insert NVMe driver module i have some doubt in understanding the probe function. the pci_register_driver function never calls the probe function. i dont know what might be the problem.

The value returned from pci_register_driver is 0 which indicates success.. I am using printk in the probe function, but I noticed that probe is never called.
Please can anyboby help me on this.

when i insert the module and check the /var/log/dmesg it show that the Init has occured occurred but the probe is never called.

Thanks in advance

flower.Hercules 09-21-2012 12:13 PM

When pci_register_driver returns 0, it doesn't mean success, it means there wasn't an error. It's possible that the device you want wasn't found. Not finding the device isn't an error and will therefore return 0.

sathyavathi.16 09-22-2012 12:16 AM

what could be the reason for the divice not to be found?? before inserting the module i download the .bit file to the device via JTAG and it is successful.
where might be the problem???

Thanks in advance

sathyavathi.16 09-24-2012 01:42 AM

Hi,

what could be the reason for the divice not to be found?? before inserting the module i download the .bit file to the device via JTAG and it is successful.
where might be the problem???

when i isssue lspci i could see the PCI device being listed but still my probe function is not called..

Thanks in advance

ravisankar 07-09-2015 09:07 AM

pci_register_driver wake up probe function
 
first remove the in built pci ethernet module like (my system having broadcom (module name is tg3).removed by using "rmmod tg3 ". Now insert ur pci device(in our case NVME).It automatically calls probe function.

1.rmmod tg3(see lsmod if broadcom,otherwise other name).
2.insmod pci.ko(my sample pci driver program)
3.dmesg

probe is called.

anydoubt reply this thread


All times are GMT -5. The time now is 11:25 PM.