From: Greg Kroah-Hartman Date: Fri, 6 Dec 2013 00:19:30 +0000 (-0800) Subject: 3.12-stable patches X-Git-Tag: v3.4.73~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f89db0c522ead7b385ce8044a463defe600df66f;p=thirdparty%2Fkernel%2Fstable-queue.git 3.12-stable patches added patches: net-mv643xx_eth-add-missing-phy_addr_set-in-dt-mode.patch --- diff --git a/queue-3.12/net-mv643xx_eth-add-missing-phy_addr_set-in-dt-mode.patch b/queue-3.12/net-mv643xx_eth-add-missing-phy_addr_set-in-dt-mode.patch new file mode 100644 index 00000000000..88beb0a3021 --- /dev/null +++ b/queue-3.12/net-mv643xx_eth-add-missing-phy_addr_set-in-dt-mode.patch @@ -0,0 +1,43 @@ +From foo@baz Thu Dec 5 16:16:37 PST 2013 +From: Jason Gunthorpe +Date: Mon, 4 Nov 2013 17:27:19 -0700 +Subject: net: mv643xx_eth: Add missing phy_addr_set in DT mode + +From: Jason Gunthorpe + +Commit cc9d4598 'net: mv643xx_eth: use of_phy_connect if phy_node +present' made the call to phy_scan optional, if the DT has a link to +the phy node. + +However phy_scan has the side effect of calling phy_addr_set, which +writes the phy MDIO address to the ethernet controller. If phy_addr_set +is not called, and the bootloader has not set the correct address then +the driver will fail to function. + +Tested on Kirkwood. + +Signed-off-by: Jason Gunthorpe +Acked-by: Sebastian Hesselbarth +Tested-by: Arnaud Ebalard +Signed-off-by: David S. Miller +Signed-off-by: Greg Kroah-Hartman +--- + drivers/net/ethernet/marvell/mv643xx_eth.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/drivers/net/ethernet/marvell/mv643xx_eth.c b/drivers/net/ethernet/marvell/mv643xx_eth.c +index 2c210ec..00e43b5 100644 +--- a/drivers/net/ethernet/marvell/mv643xx_eth.c ++++ b/drivers/net/ethernet/marvell/mv643xx_eth.c +@@ -2890,6 +2890,7 @@ static int mv643xx_eth_probe(struct platform_device *pdev) + PHY_INTERFACE_MODE_GMII); + if (!mp->phy) + err = -ENODEV; ++ phy_addr_set(mp, mp->phy->addr); + } else if (pd->phy_addr != MV643XX_ETH_PHY_NONE) { + mp->phy = phy_scan(mp, pd->phy_addr); + +-- +1.7.11.7 + + diff --git a/queue-3.12/series b/queue-3.12/series new file mode 100644 index 00000000000..0325c5c4ab6 --- /dev/null +++ b/queue-3.12/series @@ -0,0 +1 @@ +net-mv643xx_eth-add-missing-phy_addr_set-in-dt-mode.patch