tg3: Split APE driver state change out of boot reset signature update
authorNithin Sujir <nsujir@broadcom.com>
Thu, 23 May 2013 11:11:22 +0000 (11:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 25 May 2013 05:23:29 +0000 (22:23 -0700)
commit2e460fc07ef0ebadfb593b564a8c7fa6559ac3d7
treea1761f4f704f1b15d5fa110304414cc276ea72ab
parente6ff4c75f9095f61b3a66c2a78e47b62864022dd
tg3: Split APE driver state change out of boot reset signature update

Unlike the boot signature that needs to be set before every reset, the
ape state only needs to be updated to tell the firmware that the driver
is now taking/releasing control of the hardware. Move the calls to
tg3_ape_driver_state_change() to better, more appropriate places.

Also, the firmware does not distinguish between SUSPEND and START states
anymore. Remove the SUSPEND case in the switch.

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