diff options
author | Macpaul Lin <macpaul@andestech.com> | 2011-09-20 19:54:32 +0000 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2011-10-22 00:36:12 +0200 |
commit | 55b438a919901e486fae1618e7498cf5e63c2b86 (patch) | |
tree | c8aeb95b882dfca002e5a2fe407faf7ae5247fc1 /drivers/net/ns9750_eth.c | |
parent | 370853aedf9e42aa695a141301e509fd7e06fefa (diff) | |
download | u-boot-imx-55b438a919901e486fae1618e7498cf5e63c2b86.zip u-boot-imx-55b438a919901e486fae1618e7498cf5e63c2b86.tar.gz u-boot-imx-55b438a919901e486fae1618e7498cf5e63c2b86.tar.bz2 |
ftgmac100: reset fix when supports wake on lan
This patch move the reset function from initialization to
driver register procedure.
Some embedded system supports wake on lan nowadays. On this kind of system,
the ftgmac100 will be still supplied power after the system has been
shut-down by Linux. Hence the register used by linux won't be clear
when the system has been powered-off.
The origin ftgmac100 driver in u-boot will only register
driver and functions to network stack and won't reset the ftgmac100
hardware if the network won't be used during boot-up.
This will lead ftgmac100 continue receiving packets and then might corrupt
linux kernel when booting up.
So we reorder the hardware reset function earlier to force the hardware
to be reset whether it will be used or not.
Signed-off-by: Macpaul Lin <macpaul@andestech.com>
Diffstat (limited to 'drivers/net/ns9750_eth.c')
0 files changed, 0 insertions, 0 deletions