]> git.baikalelectronics.ru Git - kernel.git/commit
net/cadence/macb: add support for dt phy definition
authorBoris BREZILLON <b.brezillon@overkiz.com>
Thu, 22 Aug 2013 15:57:28 +0000 (17:57 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Aug 2013 20:02:27 +0000 (16:02 -0400)
commit7f45e1bf91a729c9056af6ae8ce8a020fb4dff32
treec371463b27bd414dc95c0e5f7f47f42857c6e8e7
parent45c9dc30b782282b3be294941d74f27093843a47
net/cadence/macb: add support for dt phy definition

The macb driver only handle PHY description through platform_data
(macb_platform_data).
Thus, when using dt you cannot define phy properties like phy address or
phy irq pin.

This patch makes use of the of_mdiobus_register to add support for
phy device definition using dt.
A fallback to the autoscan procedure is added in case there is no phy
devices defined in dt.

Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cadence/macb.c