aboutsummaryrefslogtreecommitdiff
path: root/arch/sparc
diff options
context:
space:
mode:
authorNiklas Cassel <niklas.cassel@axis.com>2018-02-19 18:11:14 +0100
committerDavid S. Miller <davem@davemloft.net>2018-02-20 14:13:21 -0500
commit2ee2132ffb83e38338a85fb6b4eea63d7bc9660c (patch)
tree95849d2f50a459c7c84a88342224d5d4751aba11 /arch/sparc
parent13138de01400762f706c5e956e70660770d61962 (diff)
net: stmmac: add error handling in stmmac_mtl_setup()
The device tree binding for stmmac says: - Multiple TX Queues parameters: below the list of all the parameters to configure the multiple TX queues: - snps,tx-queues-to-use: number of TX queues to be used in the driver [...] - For each TX queue [...] However, if one specifies snps,tx-queues-to-use = 2, but omits the queue subnodes, or defines just one queue subnode, since the driver appears to initialize queues with sane default values, we will get tx queue timeouts. This is because the initialization code only initializes as many queues as it finds subnodes. Potentially leaving some queues uninitialized. To avoid hard to debug issues, return an error if the number of subnodes differ from snps,tx-queues-to-use/snps,rx-queues-to-use. Signed-off-by: Niklas Cassel <niklas.cassel@axis.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
0 files changed, 0 insertions, 0 deletions