diff options
author | Kejian Yan <yankejian@huawei.com> | 2016-06-03 10:55:19 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-04 21:32:41 -0400 |
commit | 1d1afa2ebf8234cbeafd719cf964d7d4f4d6ac96 (patch) | |
tree | 49b2296c1f46f85524c7b670a617d87afa2ebe14 /drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c | |
parent | net: hns: dsaf adds support of acpi (diff) | |
download | linux-dev-1d1afa2ebf8234cbeafd719cf964d7d4f4d6ac96.tar.xz linux-dev-1d1afa2ebf8234cbeafd719cf964d7d4f4d6ac96.zip |
net: hns: register phy device in each mac initial sequence
In ACPI case, there is no interface to register phy device to mdio-bus.
Phy device has to be registered itself to mdio-bus, and then enet can
get the phy device's info so that it can config the phy-device to help
to trasmit and receive data.
HNS hardware topology is as below. The MDIO controller may control several
PHY-devices, and each PHY-device connects to a MAC device. PHY-devices
will register when each mac find PHY device in initial sequence.
cpu
|
|
-------------------------------------------
| | |
| | |
| dsaf |
MDIO | MDIO
| --------------------------- |
| | | | | |
| | | | | |
| MAC MAC MAC MAC |
| | | | | |
---- |-------- |-------- | | --------
|| || || ||
PHY PHY PHY PHY
Signed-off-by: Kejian Yan <yankejian@huawei.com>
Signed-off-by: Yisen Zhuang <Yisen.Zhuang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns/hns_dsaf_misc.c')
0 files changed, 0 insertions, 0 deletions