Michael Walle 714555374f net: dsa: remove master santiy check
Because we probe the master ourselves (and fail if there is no master),
it is not possible that we don't have a master device.

There is one catch though: device removal. We don't support that. It
wasn't supported neither before this patch. Because the master device
was only set in .pre_probe(), if a device was removed master_dev was a
dangling pointer and transmitting a frame cause a panic. I don't see a
good solution without having some sort of notify machanism when a
udevice is removed.

Signed-off-by: Michael Walle <michael@walle.cc>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Tested-by: Michael Walle <michael@walle.cc> [DSA unit tests]
Reviewed-by: Priyanka Jain <priyanka.jain@nxp.com>
2021-03-05 10:25:42 +05:30
..
2020-12-01 10:33:37 -05:00
2020-06-12 13:17:23 -04:00
2020-12-01 10:33:37 -05:00
2021-01-27 08:25:31 -05:00
2020-05-18 21:19:18 -04:00
2019-09-04 11:37:19 -05:00
2020-05-18 21:19:18 -04:00
2020-09-30 16:55:03 -04:00
2018-07-02 14:14:20 -05:00