net: mvmdio: allow up to four clocks to be specified for orion-mdio
authorJosua Mayer <josua@solid-run.com>
Tue, 9 Jul 2019 13:00:59 +0000 (15:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jul 2019 05:28:43 +0000 (07:28 +0200)
commit 4aabed699c400810981d3dda170f05fa4d782905 upstream.

Allow up to four clocks to be specified and enabled for the orion-mdio
interface, which are required by the Armada 8k and defined in
armada-cp110.dtsi.

Fixes a hang in probing the mvmdio driver that was encountered on the
Clearfog GT 8K with all drivers built as modules, but also affects other
boards such as the MacchiatoBIN.

Cc: stable@vger.kernel.org
Fixes: 96cb43423822 ("net: mvmdio: allow up to three clocks to be specified for orion-mdio")
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Josua Mayer <josua@solid-run.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/marvell/mvmdio.c

index c8e3c11193131d64d5619ec64d0d32842e3bf136..b6ff143c9cffed776ce25b6d06510e6b03c2113e 100644 (file)
@@ -64,7 +64,7 @@
 
 struct orion_mdio_dev {
        void __iomem *regs;
-       struct clk *clk[3];
+       struct clk *clk[4];
        /*
         * If we have access to the error interrupt pin (which is
         * somewhat misnamed as it not only reflects internal errors