net: dsa: qca8k: Allow overwriting CPU port setting
authorMichal Vokáč <vokac.m@gmail.com>
Wed, 23 May 2018 06:20:22 +0000 (08:20 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:50:44 +0000 (07:50 +0200)
commit20556dc7f239f8ad724f8ff5fec289961439cd6b
tree279246a504681bb9c782f26329e77e1a44577a28
parent2eda475b0849ba898abf99a61e8926b1335f6988
net: dsa: qca8k: Allow overwriting CPU port setting

commit 9bb2289f90e671bdb78e306974187424ac19ff8e upstream.

Implement adjust_link function that allows to overwrite default CPU port
setting using fixed-link device tree subnode.

Signed-off-by: Michal Vokáč <michal.vokac@ysoft.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/dsa/qca8k.c
drivers/net/dsa/qca8k.h