DM9000B: driver initialization upgrade
authorJoseph CHANG <josright123@gmail.com>
Thu, 28 Mar 2013 23:13:42 +0000 (23:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 Mar 2013 23:43:23 +0000 (19:43 -0400)
commit6741f40d198c6a5feb23653a1efd4ca47f93d83d
tree99fd67ba30de5f59d1099e1f18c75247da21973d
parent3340d2aae3433ad9147f6bf0adc452b324e31591
DM9000B: driver initialization upgrade

Fix bug for DM9000 revision B which contain a DSP PHY

DM9000B use DSP PHY instead previouse DM9000 revisions' analog PHY,
So need extra change in initialization, For
explicity PHY Reset and PHY init parameter, and
first DM9000_NCR reset need NCR_MAC_LBK bit by dm9000_probe().

Following DM9000_NCR reset cause by dm9000_open() clear the
NCR_MAC_LBK bit.

Without this fix, Power-up FIFO pointers error happen around 2%
rate among Davicom's customers' boards. With this fix, All above
cases can be solved.

Signed-off-by: Joseph CHANG <josright123@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/davicom/dm9000.c
drivers/net/ethernet/davicom/dm9000.h