net: ethernet: ti: cpsw: extend limits for cpsw_get/set_ringparam
authorIvan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Sun, 8 Jan 2017 20:12:27 +0000 (22:12 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jan 2017 19:29:07 +0000 (14:29 -0500)
commitf89d21b9c310d43ad8513a3fe345b7677ee7ead7
tree5c752035f1caddcb5680382f4209fb145d1336e2
parent58fa118f3de45481df2ac2b8b41e8114cae2574d
net: ethernet: ti: cpsw: extend limits for cpsw_get/set_ringparam

Allow to set number of descs close to possible values. In case of
minimum limit it's equal to number of channels to be able to set
at least one desc per channel. For maximum limit leave enough descs
number for tx channels.

Signed-off-by: Ivan Khoronzhuk <ivan.khoronzhuk@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c