]> git.droids-corp.org - dpdk.git/commit
net/hns3: fix device capabilities for copper media type
authorHuisong Li <lihuisong@huawei.com>
Thu, 4 Mar 2021 07:44:47 +0000 (15:44 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 4 Mar 2021 14:07:14 +0000 (15:07 +0100)
commit68ed5ee49de7f6e3a57c5ecca812b3bbcced6bbf
treec47b0c63a3242d990de79e11a75426a78fc35d39
parentd75e0b4ff3984cd45778ad1db282531f2181df7b
net/hns3: fix device capabilities for copper media type

The configuration operation for PHY is implemented by firmware. And
a capability flag will be report to driver, which means the firmware
supports the PHY driver.  However, the current implementation only
supports obtaining the capability bit, but some basic functions of
copper ports in driver, such as, the query of link status and link
info, are not supported.

Therefore, it is necessary for driver to set the copper capability
bit to zero when the firmware supports the configuration of the PHY.

Fixes: 438752358158 ("net/hns3: get device capability from firmware")
Fixes: 95e50325864c ("net/hns3: support copper media type")
Cc: stable@dpdk.org
Signed-off-by: Huisong Li <lihuisong@huawei.com>
drivers/net/hns3/hns3_cmd.c