[PATCH v2] stmmac: Don't exit mdio registration when mdio subnode is not found in the DTS
David Miller
davem at davemloft.net
Sun Jan 10 15:03:17 PST 2016
From: Romain Perier <romain.perier at gmail.com>
Date: Thu, 7 Jan 2016 21:13:28 +0100
> Originally, most of the platforms using this driver did not define an mdio subnode
> in the devicetree. Commit e34d65 ("stmmac: create of compatible mdio bus for stmmac driver")
> introduced a backward compatibily issue by using of_mdiobus_register explicitly
> with an mdio subnode. This patch fixes the issue by calling the function
> mdiobus_register, when mdio subnode is not found. The driver is now compatible
> with both modes.
>
> Fixes: e34d65696d2e ("stmmac: create of compatible mdio bus for stmmac driver")
> Signed-off-by: Romain Perier <romain.perier at gmail.com>
Applied, thanks.
More information about the Linux-rockchip
mailing list