Skip to content
Commit 5e6eb456 authored by Volodymyr Bendiuga's avatar Volodymyr Bendiuga Committed by David S. Miller
Browse files

net:dsa: check for EPROBE_DEFER from dsa_dst_parse()



Since there can be multiple dsa switches stacked together but
not all of devicetree nodes available at the time of calling
dsa_dst_parse(), EPROBE_DEFER can be returned by it. When this
happens, only the last dsa switch has to be deleted by
dsa_dst_del_ds(), but not the whole list, because next time linux
cames back to this function it will try to add only the last dsa
switch which returned EPROBE_DEFER.

Signed-off-by: default avatarVolodymyr Bendiuga <volodymyr.bendiuga@gmail.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 56b46b43
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment