]> git.baikalelectronics.ru Git - kernel.git/commit
mdio: mux: make child bus walking more permissive and errors more verbose
authorJon Mason <jon.mason@broadcom.com>
Wed, 31 May 2017 19:44:50 +0000 (15:44 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sun, 4 Jun 2017 23:29:54 +0000 (19:29 -0400)
commit24e01b827fd178e5841a0a498cd178601f319c40
tree1e03ecd19e49017cb3aeb848d8d70fc43c7eb310
parent67ab3140f9094578af6bed5ce9d79bf9004a82c1
mdio: mux: make child bus walking more permissive and errors more verbose

If any errors are encountered while walking the device tree structure of
the MDIO bus for children, the code may silently continue, silently
exit, or throw an error and exit.  This make it difficult for device
tree writers to know there is an error.  Also, it makes any error in a
child entry of the MDIO bus be fatal for all entries.  Instead, we
should provide verbose errors describing the error and then attempt to
continue if it all possible.  Also, use of_mdio_parse_addr()

Signed-off-by: Jon Mason <jon.mason@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-mux.c