diff options
author | Nithin Sujir <nsujir@broadcom.com> | 2013-06-12 11:08:59 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-06-20 12:01:38 -0700 |
commit | 43553a33ff54c011225967861e34f3f4047a3b7e (patch) | |
tree | 2f89899d7f8d0ff062f106165ec8582cf19b6276 /drivers/pcmcia/pxa2xx_sharpsl.c | |
parent | 70b6bf5ba36ef71e7301553ee79f718380a546a7 (diff) |
tg3: Wait for boot code to finish after power on
commit df465abfe06f7dc4f33f4a96d17f096e9e8ac917 upstream.
Some systems that don't need wake-on-lan may choose to power down the
chip on system standby. Upon resume, the power on causes the boot code
to startup and initialize the hardware. On one new platform, this is
causing the device to go into a bad state due to a race between the
driver and boot code, once every several hundred resumes. The same race
exists on open since we come up from a power on.
This patch adds a wait for boot code signature at the beginning of
tg3_init_hw() which is common to both cases. If there has not been a
power-off or the boot code has already completed, the signature will be
present and poll_fw() returns immediately. Also return immediately if
the device does not have firmware.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/pcmcia/pxa2xx_sharpsl.c')
0 files changed, 0 insertions, 0 deletions