]> asedeno.scripts.mit.edu Git - linux.git/commit
r8169: improve interrupt handling
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 24 Feb 2018 15:53:23 +0000 (16:53 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Feb 2018 16:47:41 +0000 (11:47 -0500)
commit6c6aa15fdea52aa4a19cc0b5478884af591c9351
tree1d45e132b9855d208c88d42e08490c406d5d68b8
parenta52b839752aab7063c38c1cb7b8e63efc54e3c30
r8169: improve interrupt handling

This patch improves few aspects of interrupt handling:
- update to current interrupt allocation API
  (use pci_alloc_irq_vectors() instead of deprecated pci_enable_msi())
- this implicitly will allocate a MSI-X interrupt if available
- get rid of flag RTL_FEATURE_MSI
- remove some dead code, intentionally disabling (unreliable) MSI
  being partially available on old PCI chips.

The patch works fine on a RTL8168evl (chip version 34) and on a
RTL8169SB (chip version 04).

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c