Re: Emulate pci deviceID/vendor for driver debug ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ran,

On Tue, Feb 02, 2016 at 01:39:29PM +0200, Ran Shalit wrote:
> Hello,
> 
> Is there some simple way - just for debug purpose - to make the kernel
> think that the driver matches the board/vendor , so that the driver
> will be called ?
> I don't have the real harware yet (even not a pci physical interface
> for any card), but wanted to start debugging some template driver.

If you haven't seen it already, Linux Device Drivers should answer
many of your questions, and it's freely available online:
https://lwn.net/Kernel/LDD3/

If you write a template driver, you can put whatever vendor/device IDs
you want in the pci_device_id table, and then the driver will match
the device you care about.  You might have to disable the driver (or
unload the driver module) that normally claims the device.

Bjorn
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux