]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
net: xilinx_emacps: Fix mdio name initialization
authorMichal Simek <michal.simek@xilinx.com>
Mon, 5 Nov 2012 17:04:33 +0000 (18:04 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 8 Nov 2012 11:44:37 +0000 (12:44 +0100)
commit4f156ebc944e3fa4f5ee4045e94aed169fcf7f4b
tree4871fcd76fb87841516bf07b4dd75daa0dba8fd4
parentc432004a890b9e019542888a44fdc17aefeb85d4
net: xilinx_emacps: Fix mdio name initialization

We are using this mdio bus description which
requires properly setup additional device level.
lp->mii_bus->id is address of device itself
but ethernet device itself is
of_get_parent(of_get_parent(lp->phy_node));

ps7_ethernet_0: ps7-ethernet@e000b000 {
mdio {
#address-cells = <1>;
#size-cells = <0>;
phy0: phy@7 {
compatible = "marvell,88e1111";
device_type = "ethernet-phy";
reg = <7>;
} ;
} ;
} ;

This patch fix the problem with several emacps drivers.

Reported-by: Peter Crosthwaite <peter.crosthwaite@petalogix.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Peter Crosthwaite <peter.crosthwaite@petalogix.com>
Acked-by: John Linn <john.linn@xilinx.com>
drivers/net/ethernet/xilinx/xilinx_emacps.c