]> git.baikalelectronics.ru Git - uboot.git/commit
net: dsa: return early if there is no master
authorMichael Walle <michael@walle.cc>
Wed, 24 Feb 2021 16:40:39 +0000 (17:40 +0100)
committerPriyanka Jain <priyanka.jain@nxp.com>
Fri, 5 Mar 2021 04:55:42 +0000 (10:25 +0530)
commit0d8a3856cfdbfbf049eb3518b41d538788a153a5
tree31e1767fa9851bd260ad6aa47fcb8c9df4996a66
parent147b2b8bd32325438287caa115a8f585e743bb16
net: dsa: return early if there is no master

It doesn't make sense to have DSA without a master port. Error out early
if there is no master port.

Fixes: 30f394f4206c ("net: Introduce DSA class for Ethernet switches")
Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
net/dsa-uclass.c