phylink: Improve error message when validate failed
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 1 Mar 2020 23:55:02 +0000 (00:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Mar 2020 02:01:33 +0000 (18:01 -0800)
commit20d8bb0d172d87dcc52727cb7174ae9994de8978
tree0b19b516e27540f5753fc2142a45f4329682294f
parent43de81b0601df7d7988d3f5617ee0987df65c883
phylink: Improve error message when validate failed

This should improve the error message when the PHY validate in the MAC
driver failed. I ran into this problem multiple times that I put wrong
interface values into the device tree and was searching why it is
failing with -22 (-EINVAL). This should make it easier to spot the
problem.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Acked-by: Russell King <rmk+kernel@armlinux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/phylink.c