ralink: fix hw status almost full not work on mt7620 and mt7621
authorJohn Crispin <john@openwrt.org>
Mon, 9 Feb 2015 19:34:49 +0000 (19:34 +0000)
committerJohn Crispin <john@openwrt.org>
Mon, 9 Feb 2015 19:34:49 +0000 (19:34 +0000)
commit07352ca2c725377b46e316e47b2bb4cb411b8135
tree6b3f2bfff672c19a74ee5dd9a865cb32e85ae8f1
parent525cd8aedb33d26a8f38e6b553e8d83a47d73bcc
ralink: fix hw status almost full not work on mt7620 and mt7621

the old FE_INT_STATUS register becomes two registers.
FE_INT_STATUS and INT_STATUS. so the hw status almost full
must change to read from FE_INT_STATUS register.
tx/rx done read from INT_STATUS register.

mt7620 datasheet define CNT_GDM1_AF at BIT(29).
but after test it should be BIT(13). why?

Signed-off-by: michael lee <igvtee@gmail.com>
SVN-Revision: 44371
target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.c
target/linux/ramips/files/drivers/net/ethernet/ralink/ralink_soc_eth.h
target/linux/ramips/files/drivers/net/ethernet/ralink/soc_mt7620.c
target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt2880.c
target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt305x.c
target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt3883.c