]> git.baikalelectronics.ru Git - kernel.git/commit
ethernet:ti:cpsw: fix phy identification with multiple slaves on fixed-phy
authorPascal Speck (Iktek) <kernel@iktek.de>
Fri, 4 Dec 2015 15:55:17 +0000 (16:55 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Dec 2015 19:46:05 +0000 (14:46 -0500)
commitd72d06e14d9d7845f9fd536dfeab431cc007ebf3
tree5f2d3c11794775fa2947c6aff0b05034b1acc150
parentee9ad12882c842bbcac7c3ef8ce5964570a14d02
ethernet:ti:cpsw: fix phy identification with multiple slaves on fixed-phy

When using more than one slave with ti cpsw and fixed phy the pd->phy_id
will be always zero, but slave_data->phy_id must be unique. pd->phy_id
means a "phy hardware id" whereas slave_data->phy_id means an "unique id",
so we should use pd->addr which has the same unique meaning.

Fixes: ed0a34c16efb ("drivers: net: cpsw: Add support for fixed-link PHY")
Signed-off-by: Pascal Speck <kernel@iktek.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/cpsw.c