Skip to content
Snippets Groups Projects
Commit d64888ff authored by Gabor Juhos's avatar Gabor Juhos
Browse files

generic: ar8216: register the switch from the probe routine


Currently the switch gets registered when an ethernet
driver connects to a PHY of the switch. This method does
not work with the ethernet drivers which are connecting
to the PHY from their ndo_open callback. With those
ethernet drivers, the driver tries to register the switch
each time when the etherned device is opened and this causes
a deadlock.

Move the switch registration into the probe routine to fix
this problem.

Signed-off-by: default avatarGabor Juhos <juhosg@openwrt.org>

SVN-Revision: 35602
parent 31dc805f
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment