Improve Power Management in SMC911X driver.
authorbertrand.cachet@heig-vd.ch <bertrand.cachet@heig-vd.ch>
Tue, 15 Nov 2011 03:40:53 +0000 (03:40 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 22 Nov 2011 07:39:27 +0000 (08:39 +0100)
commit3c8849df5f2954944578cd2e2af31c001283dbf2
tree2b64cb0548aaf51c9a7e7485bc0f447e34f8be8e
parent27aafe988e1ee7b246c46031283113bdafcb4f75
Improve Power Management in SMC911X driver.

device is already in *normal* (D0) mode => it doesn't need to be wake-up.

With this patch, we only wake-up (writing on TEST_BYTE register) if PM_MODE
bits of PM_CTRL register is in sleep (D1/D2) mode.

Signed-off-by: Bertrand Cachet <bertrand.cachet@heig-vd.ch>
drivers/net/smc911x.h