[TG3]: Split tg3_phy_probe into 2 functions
authorMichael Chan <mchan@broadcom.com>
Fri, 22 Apr 2005 00:06:20 +0000 (17:06 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 22 Apr 2005 00:06:20 +0000 (17:06 -0700)
commit7d0c41ef89dad9008edf1c3c0022721ebad39999
tree2da17c83458f8a84f99d05ea201bc71e8f2155fe
parent85e94cedc44d1c2c1663b5b18f703ca5e7316e59
[TG3]: Split tg3_phy_probe into 2 functions

Split the 1st half of tg3_phy_probe() into tg3_get_eeprom_hw_cfg() so
that the TG3_FLAG_EEPROM_WRITE_PROT can be determined before calling
tg3_set_power_state() in tg3_get_invariants(). This will allow
tg3_set_power_state() to drive the GPIOs correctly based on the config.
information in eeprom.

On the 5752, there are no pull-up resistors on the GPIO pins and it is
necessary to drive the unused GPIOs as output.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c