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)
commitd7bf3ccb27a27d08668950871441d0fef0a00024
treee1edaf23d87d3efed3307a026740682fa8c602a9
parent7fe706110d89d44db9d34375b8a1d16622403f42
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