]> git.baikalelectronics.ru Git - kernel.git/commit
phylink: avoid attaching more than one PHY
authorRussell King <rmk+kernel@armlinux.org.uk>
Wed, 20 Dec 2017 23:23:33 +0000 (23:23 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Dec 2017 20:03:10 +0000 (15:03 -0500)
commit85b93c4b763282699e32f17060f2de63294de57f
treeece6c0dee56a378d7c6bba56156fd01e65090b11
parentec3658bf71439b4c47388bbe0d747d521c5b5df8
phylink: avoid attaching more than one PHY

Attaching more than one PHY to phylink is bad news, as we store a
pointer to the PHY in a single location. Error out if more than one
PHY is attempted to be attached.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c