commit 9f4324c2d79b28d387df32a25fbd192e7ca160cb Author: Jiri Slaby Date: Thu Jun 21 10:52:31 2007 +0200 write byte to pci 0x41, not anded dword diff --git a/ath/if_ath_pci.c b/ath/if_ath_pci.c index fbdeb1e..dc414f1 100644 --- a/ath/if_ath_pci.c +++ b/ath/if_ath_pci.c @@ -708,7 +708,6 @@ static int __devinit ath_pci_probe(struct pci_dev *pdev, struct ieee80211_hw *hw; const char *athname; int retval; - u32 val; u8 csz; retval = pci_enable_device(pdev); @@ -752,12 +751,8 @@ static int __devinit ath_pci_probe(struct pci_dev *pdev, /* * Disable the RETRY_TIMEOUT register (0x41) to keep * PCI Tx retries from interfering with C3 CPU state. - * - * Code taken from ipw2100 driver - jg */ - pci_read_config_dword(pdev, 0x40, &val); - if ((val & 0x0000ff00) != 0) - pci_write_config_dword(pdev, 0x40, val & 0xffff00ff); + pci_write_config_byte(pdev, 0x41, 0); retval = pci_request_region(pdev, 0, "ath"); if (retval) { @@ -855,7 +850,6 @@ static int ath_pci_resume(struct pci_dev *pdev) { struct ieee80211_hw *hw = pci_get_drvdata(pdev); struct ath_softc *sc = hw->priv; - u32 val; int err; err = pci_set_power_state(pdev, PCI_D0); @@ -871,12 +865,8 @@ static int ath_pci_resume(struct pci_dev *pdev) * Suspend/Resume resets the PCI configuration space, so we have to * re-disable the RETRY_TIMEOUT register (0x41) to keep * PCI Tx retries from interfering with C3 CPU state - * - * Code taken from ipw2100 driver - jg */ - pci_read_config_dword(pdev, 0x40, &val); - if ((val & 0x0000ff00) != 0) - pci_write_config_dword(pdev, 0x40, val & 0xffff00ff); + pci_write_config_byte(pdev, 0x41, 0); // ath_init(hw); if (sc->sc_softled) {