How to add PCI ID to serial port driver?

linux-y3pi:~ # lspci | grep -i ethernet 01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 01) linux-y3pi:~ # lspci -n | grep 01:00.0 01:00.0 0200: 10ec:8136 (rev 01) 

From here: http://www.cyberciti.biz/tips/linux-find-supported-pci-hardware-drivers.html

Sampling Result:
00: 1b.0 0403: 8086: 27d8 (rev 01) Where,

  • 00: 1b.0 - Device
  • 8086 - Designer Code for Intel Corporation
  • 27d8 is the model identifier.

So, I discovered:
/usr/src/f/rtnet/drivers/experimental/rt_r8169.c

Relevant Code (IMO):

 static struct pci_device_id rtl8169_pci_tbl[] __devinitdata = { { 0x10ec, 0x8169, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, { 0x1186, 0x4300, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 }, /* <kk> D-Link DGE-528T */ {0,}, }; 

So for me this information will be:
{ 0x10ec, 0x8136, PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0 },

Is this the place where I have to add this PCI info and just do make and install?

+4
source share
1 answer

If this is the correct driver for this device, then this is the correct location for this line. You might want to find out if the existing module has some way of forcing identifiers so that you can verify this.

0
source

All Articles