]> 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)
commitd2efb618087a511fe01374bd072624ab6f34a953
tree94e60756f4765bf537c3776654b86e960aeebc75
parent098a23638f309f579bd7567430a13d8b5364af3b
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