Merge branch 'mdio-fixes'
authorDavid S. Miller <davem@davemloft.net>
Wed, 18 Aug 2021 09:48:52 +0000 (10:48 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Aug 2021 09:48:52 +0000 (10:48 +0100)
commit97712f8f912fb7f2e305468047421bcac0f6653c
tree1a5b3fef53e35703f3c8cdc1a1f927508b5092fe
parented5d2937a6a8f12e7f815748f991990e79ac4cd1
parent7bd0cef5dac685f09ef8b0b2a7748ff42d284dc7
Merge branch 'mdio-fixes'

Saravana Kannan says:

====================
Clean up and fix error handling in mdio_mux_init()

This patch series was started due to -EPROBE_DEFER not being handled
correctly in mdio_mux_init() and causing issues [1]. While at it, I also
did some more error handling fixes and clean ups. The -EPROBE_DEFER fix is
the last patch.

Ideally, in the last patch we'd treat any error similar to -EPROBE_DEFER
but I'm not sure if it'll break any board/platforms where some child
mdiobus never successfully registers. If we treated all errors similar to
-EPROBE_DEFER, then none of the child mdiobus will work and that might be a
regression. If people are sure this is not a real case, then I can fix up
the last patch to always fail the entire mdio-mux init if any of the child
mdiobus registration fails.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>