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:55:27 +0000 (07:55 +0200)
commitdb890d30b9750f929c0e976972a4d424ac90f8cb
tree06e2c4c0f7a9517f8c3d1557df43aa28943f9858
parent53a1a29a9236978511fb8c8eaad494ec01ba0732
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