]> git.baikalelectronics.ru Git - kernel.git/commit
net: mediatek: mtk_cal_txd_req() returns bad value
authorJohn Crispin <blogic@openwrt.org>
Thu, 7 Apr 2016 22:54:05 +0000 (00:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Apr 2016 02:41:32 +0000 (22:41 -0400)
commitcf0e73fbdaaad445c3116b4f9c7d1fb60a4fcc28
tree94e60756f4765bf537c3776654b86e960aeebc75
parentbb017555de0ff1c72305215e1c0c089aa70de70e
net: mediatek: mtk_cal_txd_req() returns bad value

The code used to also support the PDMA engine, which had 2 packet pointers
per descriptor. Because of this we had to divide the result by 2 and round
it up. This is no longer needed as the code only supports QDMA.

Signed-off-by: John Crispin <blogic@openwrt.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c