aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux
diff options
context:
space:
mode:
authorMichael Walle <michael@walle.cc>2020-05-04 18:52:28 +0200
committerDavid S. Miller <davem@davemloft.net>2020-05-04 11:15:55 -0700
commite90c9fcedc087c8ba1d34da88381838ed68bfb1c (patch)
treec451983291fb828722e354eada178d2f3cf3369c /include/linux
parentMerge branch 'net-smc-add-failover-processing' (diff)
downloadwireguard-linux-e90c9fcedc087c8ba1d34da88381838ed68bfb1c.tar.xz
wireguard-linux-e90c9fcedc087c8ba1d34da88381838ed68bfb1c.zip
net: dsa: felix: allow the device to be disabled
If there is no specific configuration of the felix switch in the device tree, but only the default configuration (ie. given by the SoCs dtsi file), the probe fails because no CPU port has been set. On the other hand you cannot set a default CPU port because that depends on the actual board using the switch. [ 2.701300] DSA: tree 0 has no CPU port [ 2.705167] mscc_felix 0000:00:00.5: Failed to register DSA switch: -22 [ 2.711844] mscc_felix: probe of 0000:00:00.5 failed with error -22 Thus let the device tree disable this device entirely, like it is also done with the enetc driver of the same SoC. Signed-off-by: Michael Walle <michael@walle.cc> Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions