r8169:Avoid to use I/O Space access on new design and others
PATCH 1/1 r8169:Avoid to use I/O Space access on new design and others
Avoid to use on pci express interface I/O Space access
and do not enable Bus Master is set on BIOS. Warning: Do not apply this
patch must apply previously patch first.
To: [email protected]
Signed-off-by Corcodel Marian <[email protected]>
drivers/net/ethernet/realtek/r8169.c +5 -2
@@ -8171,6 +8171,9 @@ static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)if (pci_is_pcie (pdev))pci_intx (pdev,0 ); +if (pci_is_pcie (pdev)) +pci_write_config_word (pdev,PCI_COMMAND , ~PCI_COMMAND_IO ); +/* Identify chip attached to board */ rtl8169_get_mac_version (tp, dev, cfg->default_ver);
@@ -8183,8 +8186,8 @@ static int rtl_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)rtl_hw_reset (tp);rtl_ack_events (tp,0xffff ); - -pci_set_master (pdev); +if (!pci_is_pcie (pdev)) +pci_set_master (pdev);rtl_init_mdio_ops (tp);rtl_init_pll_power_ops (tp);
Signature · 1 line
2.1.4
Quoted 4 lines · Corcodel Marian
Avoid to use on pci express interface I/O Space access
and do not enable Bus Master is set on BIOS. Warning: Do not apply this
patch must apply previously patch first.
To: [email protected]
It is time you carefully read Documentation/SubmittingPatches
Seriously.