]> git.baikalelectronics.ru Git - kernel.git/commit
e1000e: Clear host wakeup bit on 82577/8 without touching PHY page 800
authorBruce Allan <bruce.w.allan@intel.com>
Fri, 13 May 2011 07:20:14 +0000 (07:20 +0000)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Fri, 10 Jun 2011 03:34:14 +0000 (20:34 -0700)
commit5cb6903bd9aaf2933a2b484163140749dc833909
treefc2b25e45e5eb556040d8beef7262cf9bce251af
parent1d3c49907c0e43773769a1f653f40cb3791dc9e9
e1000e: Clear host wakeup bit on 82577/8 without touching PHY page 800

The Host Wakeup Active bit in the PHY Port General Configuration register
(page 769 register 17) must be cleared after every PHY reset to prevent an
unexpected wake signal from the PHY. Originally, this was accomplished by
simply reading the PHY Wakeup Control register on page 800 which clears the
Host Wakeup Active bit as a side-effect. Unfortunately, a hardware bug on
the 82577 and 82578 PHY can cause unexpected behavior when registers on
page 800 are accessed while in gigabit mode.

This patch changes the remaining instances when the Host Wakeup Active bit
needs to be cleared while possibly in gigabit mode by accessing the Port
General Configuration register directly instead of accessing any register
on page 800.

Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Jeff Pieper <jeffrey.e.pieper@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/e1000e/e1000.h
drivers/net/e1000e/ich8lan.c