linux/drivers/net/ethernet/hisilicon/hns
Kejian Yan 1d1afa2ebf 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>
2016-06-04 21:32:41 -04:00
..
hnae.c net: hns: add uniform interface for phy connection 2016-06-04 21:32:40 -04:00
hnae.h net: hns: add uniform interface for phy connection 2016-06-04 21:32:40 -04:00
hns_ae_adapt.c net: hns: add dsaf misc operation method 2016-06-04 21:32:41 -04:00
hns_dsaf_gmac.c net: hns: add dsaf misc operation method 2016-06-04 21:32:41 -04:00
hns_dsaf_gmac.h
hns_dsaf_mac.c net: hns: register phy device in each mac initial sequence 2016-06-04 21:32:41 -04:00
hns_dsaf_mac.h net: hns: add dsaf misc operation method 2016-06-04 21:32:41 -04:00
hns_dsaf_main.c net: hns: dsaf adds support of acpi 2016-06-04 21:32:41 -04:00
hns_dsaf_main.h net: hns: add dsaf misc operation method 2016-06-04 21:32:41 -04:00
hns_dsaf_misc.c net: hns: dsaf adds support of acpi 2016-06-04 21:32:41 -04:00
hns_dsaf_misc.h net: hns: add dsaf misc operation method 2016-06-04 21:32:41 -04:00
hns_dsaf_ppe.c net: hns: add dsaf misc operation method 2016-06-04 21:32:41 -04:00
hns_dsaf_ppe.h
hns_dsaf_rcb.c net: hns: use platform_get_irq instead of irq_of_parse_and_map 2016-06-04 21:32:40 -04:00
hns_dsaf_rcb.h
hns_dsaf_reg.h
hns_dsaf_xgmac.c net: hns: add dsaf misc operation method 2016-06-04 21:32:41 -04:00
hns_dsaf_xgmac.h
hns_enet.c net: hns: add uniform interface for phy connection 2016-06-04 21:32:40 -04:00
hns_enet.h net: hns: enet specify a reference to dsaf by fwnode_handle 2016-06-04 21:32:40 -04:00
hns_ethtool.c net: hns: add uniform interface for phy connection 2016-06-04 21:32:40 -04:00
Makefile