iwlwifi: reset pci retry timeout

We removed resetting of PCI_RETRY_TIMEOUT register
in merge of suspend resume work.
'Suspend and resume' resets the PCI configuration space, so we
have to disable the RETRY_TIMEOUT register again here.

Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
This commit is contained in:
Abhijeet Kolekar 2010-04-14 10:27:00 -07:00 committed by Reinette Chatre
parent f001b30049
commit cd398c3137
1 changed files with 6 additions and 0 deletions

View File

@ -2930,6 +2930,12 @@ int iwl_pci_resume(struct pci_dev *pdev)
struct iwl_priv *priv = pci_get_drvdata(pdev); struct iwl_priv *priv = pci_get_drvdata(pdev);
int ret; int ret;
/*
* We disable the RETRY_TIMEOUT register (0x41) to keep
* PCI Tx retries from interfering with C3 CPU state.
*/
pci_write_config_byte(pdev, PCI_CFG_RETRY_TIMEOUT, 0x00);
pci_set_power_state(pdev, PCI_D0); pci_set_power_state(pdev, PCI_D0);
ret = pci_enable_device(pdev); ret = pci_enable_device(pdev);
if (ret) if (ret)