]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2b524724710a955fef8ba9f9fb0391e30cfeb781
tree0b19b516e27540f5753fc2142a45f4329682294f
parent4e88c6bee5cc94d17a12afb9b4a9a4b021b749e6
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