Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 22665
b: refs/heads/master
c: caf636c
h: refs/heads/master
i:
  22663: 0be0847
v: v3
  • Loading branch information
Michael Chan authored and David S. Miller committed Mar 22, 2006
1 parent 3d866c0 commit 0d5e358
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9a6b9f2e763a1d1492e164f13c13b995a9b98d78
refs/heads/master: caf636c760b33c72ebf018ff03c1b0d79ea6656a
12 changes: 9 additions & 3 deletions trunk/drivers/net/tg3.c
Original file line number Diff line number Diff line change
Expand Up @@ -9436,12 +9436,18 @@ static inline struct subsys_tbl_ent *lookup_by_subsys(struct tg3 *tp)
return NULL;
}

/* Since this function may be called in D3-hot power state during
* tg3_init_one(), only config cycles are allowed.
*/
static void __devinit tg3_get_eeprom_hw_cfg(struct tg3 *tp)
{
u32 val;
u16 pmcsr;

/* On some early chips the SRAM cannot be accessed in D3hot state,
* so need make sure we're in D0.
*/
pci_read_config_word(tp->pdev, tp->pm_cap + PCI_PM_CTRL, &pmcsr);
pmcsr &= ~PCI_PM_CTRL_STATE_MASK;
pci_write_config_word(tp->pdev, tp->pm_cap + PCI_PM_CTRL, pmcsr);
msleep(1);

/* Make sure register accesses (indirect or otherwise)
* will function correctly.
Expand Down

0 comments on commit 0d5e358

Please sign in to comment.