]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Move power state transitions to init_one
authorMatt Carlson <mcarlson@broadcom.com>
Wed, 13 Jul 2011 09:27:28 +0000 (09:27 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Jul 2011 15:41:59 +0000 (08:41 -0700)
commit799133a13a2c8badfbc6f1d97daf6fc1b20b0655
treef157f4e1dd6ec271c0f21e9c917f814440618873
parent8886e9f62125de6376e36bebd12f3242c2441911
tg3: Move power state transitions to init_one

The tg3 driver is going to require memory mapped register access much
sooner than before.  This patch makes sure the device is in the D0 power
state as soon as possible, and moves the code that enables the memory
arbiter outside tg3_get_eeprom_hw_cfg() where it can be more easily
monitored.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c