linux_dsm_epyc7002/drivers/net/ethernet/hisilicon/hns3/hns3pf
Fuyun Liang 39e2151f10 net: hns3: fix a bug when getting phy address from NCL_config file
Driver gets phy address from NCL_config file and uses the phy address
to initialize phydev. There are 5 bits for phy address. And C22 phy
address has 5 bits. So 0-31 are all valid address for phy. If there
is no phy, it will crash. Because driver always get a valid phy address.

This patch fixes the phy address to 8 bits, and use 0xff to indicate
invalid phy address.

Fixes: 46a3df9f97 (net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support)
Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: Lipeng <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-11-11 15:17:56 +09:00
..
hclge_cmd.c net: hns3: Refactor the initialization of command queue 2017-11-02 21:28:35 +09:00
hclge_cmd.h net: hns3: fix a bug when getting phy address from NCL_config file 2017-11-11 15:17:56 +09:00
hclge_dcb.c net: hns3: Add mqprio hardware offload support in hns3 driver 2017-10-19 12:45:45 +01:00
hclge_dcb.h net: hns3: Add hclge_dcb module for the support of DCB feature 2017-09-28 10:35:12 -07:00
hclge_main.c net: hns3: hns3:fix a bug about statistic counter in reset process 2017-11-02 21:28:36 +09:00
hclge_main.h net: hns3: Add reset process in hclge_main 2017-11-02 21:28:35 +09:00
hclge_mdio.c net: hns3: fix a bug for phy supported feature initialization 2017-11-03 21:36:50 +09:00
hclge_mdio.h net: hns3: Add MDIO support to HNS3 Ethernet driver for hip08 SoC 2017-08-03 15:08:17 -07:00
hclge_tm.c net: hns3: remove a couple of redundant assignments 2017-11-02 15:53:14 +09:00
hclge_tm.h net: hns3: Add some interface for the support of DCB feature 2017-09-28 10:35:11 -07:00
hns3_dcbnl.c net: hns3: Add hns3_get_handle macro in hns3 driver 2017-10-09 09:46:54 -07:00
hns3_enet.c net_sch: mqprio: Change TC_SETUP_MQPRIO to TC_SETUP_QDISC_MQPRIO 2017-11-08 12:23:38 +09:00
hns3_enet.h net: hns3: Add timeout process in hns3_enet 2017-11-02 21:28:35 +09:00
hns3_ethtool.c net: hns3: add support for nway_reset 2017-11-03 21:36:49 +09:00
Makefile net: hns3: Add dcb netlink interface for the support of DCB feature 2017-09-28 10:35:12 -07:00